chore: fix typos across codebase #149
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: rules | |
| on: | |
| workflow_dispatch: {} | |
| pull_request: | |
| # expand this list as we add rules, but be careful that rules are properly guarded with necessary null checks or state checks | |
| types: | |
| - auto_merge_enabled | |
| - opened | |
| - reopened | |
| jobs: | |
| check_auto_merge_method_if_enabled: | |
| name: Check auto-merge method if enabled | |
| if: ${{ github.event.pull_request.auto_merge }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - run: | | |
| expected_merge_method="squash" | |
| # for merge PRs, expect "merge" | |
| if [ ${{ contains(github.head_ref, '/merge-') }} == "true" ]; then | |
| expected_merge_method="merge" | |
| fi | |
| if [ ${{ github.event.pull_request.auto_merge.merge_method }} != $expected_merge_method ]; then | |
| echo "Auto-merge method must be '$expected_merge_method' instead of '${{github.event.pull_request.auto_merge.merge_method}}'" | |
| exit 1 | |
| fi | |