File tree Expand file tree Collapse file tree 2 files changed +32
-3
lines changed
Expand file tree Collapse file tree 2 files changed +32
-3
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+ type : number
12+ required : false
13+
14+ permissions :
15+ contents : write
16+ pull-requests : write
17+
18+ jobs :
19+ run-poe-command :
20+ env :
21+ GCP_GSM_CREDENTIALS : ${{ secrets.GCP_GSM_CREDENTIALS }}
22+ runs-on : ubuntu-latest
23+ steps :
24+ - name : Run Poe Slash Command Processor
25+ uses : aaronsteers/poe-command-processor@v1
26+ with :
27+ pr : ${{ github.event.inputs.pr }}
28+ comment-id : ${{ github.event.inputs.comment-id }}
29+ github-token : ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
Original file line number Diff line number Diff line change 77jobs :
88 slashCommandDispatch :
99 # Only allow slash commands on pull request (not on issues)
10- if : ${{ github.event.issue.pull_request }}
1110 runs-on : ubuntu-24.04
1211 steps :
1312 - name : Slash Command Dispatch
@@ -19,13 +18,14 @@ jobs:
1918 repository : ${{ github.repository }}
2019 token : ${{ secrets.GH_PAT_MAINTENANCE_OCTAVIA }}
2120 dispatch-type : workflow
22- issue-type : pull-request
21+ issue-type : both
2322 commands : |
2423 autofix
2524 test
2625 poetry-lock
26+ poe
2727 static-args : |
28- pr=${{ github.event.issue.number }}
28+ pr=${{ github.event.issue.pull_request != null && github.event.issue. number || '' }}
2929 comment-id=${{ github.event.comment.id }}
3030
3131 # Only run for users with 'write' permission on the main repository
You can’t perform that action at this time.
0 commit comments