File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 1- name : Auto Merge Scheduled / On Demand
1+ name : Auto Merge On Demand
22on :
3- schedule :
4- # Workflow runs every 45 minutes
5- - cron : ' */45 * * * * '
3+ issue_comment :
4+ types :
5+ - created
66 workflow_dispatch :
77 inputs :
88 pr-number :
@@ -16,7 +16,10 @@ permissions:
1616jobs :
1717 # Get all open PRs
1818 gather-pull-requests :
19- if : github.repository_owner == 'sclorg'
19+ if : |
20+ github.repository_owner == 'sclorg'
21+ || (contains(github.event.comment.body, '/auto-merge-on-demand')
22+ && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association)
2023 runs-on : ubuntu-latest
2124
2225 outputs :
4447 name : Parse manual input
4548 run : |
4649 # shellcheck disable=SC2086
47- echo "result="[ ${{ inputs.pr- number }} ]"" >> $GITHUB_OUTPUT
50+ echo "result="[ ${{ github.event.issue. number }} ]"" >> $GITHUB_OUTPUT
4851 shell : bash
4952
5053 validate-pr :
You can’t perform that action at this time.
0 commit comments