We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5799ce1 commit 1a17236Copy full SHA for 1a17236
.github/workflows/auto-merge-on-demand.yml
@@ -1,8 +1,8 @@
1
-name: Auto Merge Scheduled / On Demand
+name: Auto Merge On Demand
2
on:
3
- schedule:
4
- # Workflow runs every 45 minutes
5
- - cron: '*/45 * * * *'
+ issue_comment:
+ types:
+ - created
6
workflow_dispatch:
7
inputs:
8
pr-number:
@@ -16,7 +16,10 @@ permissions:
16
jobs:
17
# Get all open PRs
18
gather-pull-requests:
19
- if: github.repository_owner == 'sclorg'
+ 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)
23
runs-on: ubuntu-latest
24
25
outputs:
@@ -44,7 +47,7 @@ jobs:
44
47
name: Parse manual input
45
48
run: |
46
49
# shellcheck disable=SC2086
- echo "result="[ ${{ inputs.pr-number }} ]"" >> $GITHUB_OUTPUT
50
+ echo "result="[ ${{ github.event.issue.number }} ]"" >> $GITHUB_OUTPUT
51
shell: bash
52
53
validate-pr:
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments