Skip to content

chore: fix typos across codebase #149

chore: fix typos across codebase

chore: fix typos across codebase #149

Workflow file for this run

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