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
2
2
on :
3
- schedule :
4
- # Workflow runs every 45 minutes
5
- - cron : ' */45 * * * * '
3
+ issue_comment :
4
+ types :
5
+ - created
6
6
workflow_dispatch :
7
7
inputs :
8
8
pr-number :
@@ -16,7 +16,10 @@ permissions:
16
16
jobs :
17
17
# Get all open PRs
18
18
gather-pull-requests :
19
- if : github.repository_owner == 'sclorg'
19
+ if : |
20
+ github.repository_owner == 'sclorg'
21
+ || (contains(github.event.comment.body, '/auto-merge')
22
+ && contains(fromJson('["OWNER", "MEMBER"]'), github.event.comment.author_association))
20
23
runs-on : ubuntu-latest
21
24
22
25
outputs :
44
47
name : Parse manual input
45
48
run : |
46
49
# shellcheck disable=SC2086
47
- echo "result="[ ${{ inputs.pr- number }} ]"" >> $GITHUB_OUTPUT
50
+ echo "result="[ ${{ github.event.issue. number }} ]"" >> $GITHUB_OUTPUT
48
51
shell : bash
49
52
50
53
validate-pr :
You can’t perform that action at this time.
0 commit comments