Skip to content

Commit fbea642

Browse files
authored
add comments to workflow
1 parent e4656f6 commit fbea642

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/slash_command_dispatch.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,24 @@ jobs:
1919
token: ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
2020
dispatch-type: workflow
2121
issue-type: both
22+
23+
# Only run for users with 'write' permission on the main repository
24+
permission: write
25+
2226
commands: |
2327
autofix
2428
test
2529
poetry-lock
2630
poe
31+
32+
# Notes regarding static-args:
33+
# - Slash commands can be invoked from both issues and comments.
34+
# - If the slash command is invoked from an issue, we intentionally pass 'null' as the PR number.
35+
# - Comment ID will always be sent, and this is sufficient to post back status updates to the originating comment.
2736
static-args: |
2837
pr=${{ github.event.issue.pull_request != null && github.event.issue.number || '' }}
2938
comment-id=${{ github.event.comment.id }}
3039
31-
# Only run for users with 'write' permission on the main repository
32-
permission: write
3340
3441
- name: Edit comment with error message
3542
if: steps.dispatch.outputs.error-message

0 commit comments

Comments
 (0)