File tree Expand file tree Collapse file tree 2 files changed +40
-6
lines changed
Expand file tree Collapse file tree 2 files changed +40
-6
lines changed Original file line number Diff line number Diff line change 1+ name : On-Demand Poe Task
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ comment-id :
7+ description : " Optional comment-id of the slash command. Ignore if not applicable."
8+ required : false
9+ pr :
10+ description : " PR Number"
11+ required : false
12+
13+ permissions :
14+ contents : write
15+ pull-requests : write
16+
17+ jobs :
18+ run-poe-command :
19+ env :
20+ GCP_GSM_CREDENTIALS : ${{ secrets.GCP_GSM_CREDENTIALS }}
21+ runs-on : ubuntu-latest
22+ steps :
23+ - name : Run Poe Slash Command Processor
24+ uses : aaronsteers/poe-command-processor@v1
25+ with :
26+ pr : ${{ github.event.inputs.pr }}
27+ comment-id : ${{ github.event.inputs.comment-id }}
28+ github-token : ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
Original file line number Diff line number Diff line change 66
77jobs :
88 slashCommandDispatch :
9- # Only allow slash commands on pull request (not on issues)
10- if : ${{ github.event.issue.pull_request }}
119 runs-on : ubuntu-24.04
1210 steps :
1311 - name : Slash Command Dispatch
@@ -19,17 +17,25 @@ jobs:
1917 repository : ${{ github.repository }}
2018 token : ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
2119 dispatch-type : workflow
22- issue-type : pull-request
20+ issue-type : both
21+
22+ # Only run for users with 'write' permission on the main repository
23+ permission : write
24+
2325 commands : |
2426 autofix
2527 test
2628 poetry-lock
29+ poe
30+
31+ # Notes regarding static-args:
32+ # - Slash commands can be invoked from both issues and comments.
33+ # - If the slash command is invoked from an issue, we intentionally pass 'null' as the PR number.
34+ # - Comment ID will always be sent, and this is sufficient to post back status updates to the originating comment.
2735 static-args : |
28- pr=${{ github.event.issue.number }}
36+ pr=${{ github.event.issue.pull_request != null && github.event.issue. number || '' }}
2937 comment-id=${{ github.event.comment.id }}
3038
31- # Only run for users with 'write' permission on the main repository
32- permission : write
3339
3440 - name : Edit comment with error message
3541 if : steps.dispatch.outputs.error-message
You can’t perform that action at this time.
0 commit comments