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 ff1f8d7 commit 9283e81Copy full SHA for 9283e81
.github/workflows/rules.yml
@@ -0,0 +1,21 @@
1
+
2
+name: rules
3
4
+on:
5
+ workflow_dispatch: {}
6
+ pull_request:
7
+ types:
8
+ - auto_merge_enabled
9
10
+jobs:
11
+ require_merge_commit_on_merge_script_pr:
12
+ name: Merge script PRs must create merge commits
13
+ if: ${{ contains(github.head_ref, '/merge-') }}
14
+ runs-on: ubuntu-latest
15
+ steps:
16
+ - run: |
17
+ if ${{ github.event.pull_request.auto_merge.merge_method != 'merge' }}; then
18
+ echo "Auto-merge method must be 'merge' instead of '${{github.event.pull_request.auto_merge.merge_method}}'"
19
+ exit 1
20
+ fi
21
0 commit comments