File tree Expand file tree Collapse file tree 3 files changed +6
-44
lines changed Expand file tree Collapse file tree 3 files changed +6
-44
lines changed Original file line number Diff line number Diff line change 6
6
helloWorld :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- # Checkout is necessary here due to referencing a local action.
10
- # It's also necessary when using the 'config-from-file' option.
11
- # Otherwise, avoid using checkout to keep this workflow fast.
12
- - uses : actions/checkout@v1
13
-
14
- # For debugging purposes. Remove this in production.
15
- - name : Dump GitHub context
16
- env :
17
- GITHUB_CONTEXT : ${{ toJson(github) }}
18
- run : echo "$GITHUB_CONTEXT"
19
-
20
9
- name : Add reaction
21
- # uses: peter-evans/create-or-update-comment@v1
22
- uses : ./.github/create-or-update-comment
10
+ uses : peter-evans/create-or-update-comment@v1
23
11
with :
24
12
token : ${{ secrets.GITHUB_TOKEN }}
25
13
comment-id : ${{ github.event.client_payload.github.payload.comment.id }}
26
14
reaction-type : hooray
15
+
27
16
- name : Create comment
28
- # uses: peter-evans/create-or-update-comment@v1
29
- uses : ./.github/create-or-update-comment
17
+ uses : peter-evans/create-or-update-comment@v1
30
18
with :
31
19
token : ${{ secrets.GITHUB_TOKEN }}
32
20
issue-number : ${{ github.event.client_payload.github.payload.issue.number }}
Original file line number Diff line number Diff line change 6
6
helloWorld :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
- # Checkout is necessary here due to referencing a local action.
10
- # It's also necessary when using the 'config-from-file' option.
11
- # Otherwise, avoid using checkout to keep this workflow fast.
12
- - uses : actions/checkout@v1
13
-
14
- # For debugging purposes. Remove this in production.
15
- - name : Dump GitHub context
16
- env :
17
- GITHUB_CONTEXT : ${{ toJson(github) }}
18
- run : echo "$GITHUB_CONTEXT"
19
-
20
- # For debugging purposes. Remove this in production.
21
- - name : Output Command
22
- run : |
23
- echo ${{ github.event.client_payload.slash_command.command }}
24
- echo ${{ github.event.client_payload.slash_command.args }}
25
- echo ${{ github.event.client_payload.slash_command.arg1 }}
26
- echo ${{ github.event.client_payload.slash_command.arg2 }}
27
- echo ${{ github.event.client_payload.slash_command.arg3 }}
28
- # etc.
29
-
30
9
- name : Update comment
31
- # uses: peter-evans/create-or-update-comment@v1
32
- uses : ./.github/create-or-update-comment
10
+ uses : peter-evans/create-or-update-comment@v1
33
11
with :
34
12
token : ${{ secrets.GITHUB_TOKEN }}
35
13
comment-id : ${{ github.event.client_payload.github.payload.comment.id }}
Original file line number Diff line number Diff line change 1
1
name : Slash Command Dispatch
2
2
on :
3
3
issue_comment :
4
+ # Type "edited" added here for test purposes. Where possible, avoid
5
+ # using to prevent processing unnecessary events.
4
6
types : [created, edited]
5
7
jobs :
6
8
slashCommandDispatch :
11
13
# Otherwise, avoid using checkout to keep this workflow fast.
12
14
- uses : actions/checkout@v1
13
15
14
- # For debugging purposes. Remove this in production.
15
- - name : Dump GitHub context
16
- env :
17
- GITHUB_CONTEXT : ${{ toJson(github) }}
18
- run : echo "$GITHUB_CONTEXT"
19
-
20
16
# Basic configuration
21
17
- name : Slash Command Dispatch
22
18
uses : ./
You can’t perform that action at this time.
0 commit comments