diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 258676f..1f8db3a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: # and was merged untested. Every PR gets the full suite; push stays main-only so # feature branches do not double-run. pull_request: + branches: [main] + merge_group: + types: [checks_requested] push: branches: [main] diff --git a/.github/workflows/semantic-pr-title.yml b/.github/workflows/semantic-pr-title.yml index d87f773..e528864 100644 --- a/.github/workflows/semantic-pr-title.yml +++ b/.github/workflows/semantic-pr-title.yml @@ -3,12 +3,15 @@ name: Semantic PR Title on: pull_request: types: [opened, edited, synchronize, reopened] + merge_group: + types: [checks_requested] permissions: pull-requests: read jobs: semantic-pr-title: + if: github.event_name == 'pull_request' runs-on: ubuntu-latest steps: - uses: amannn/action-semantic-pull-request@v6 @@ -27,3 +30,10 @@ jobs: perf revert requireScope: false + + semantic-pr-title-merge-group: + if: github.event_name == 'merge_group' + name: semantic-pr-title + runs-on: ubuntu-latest + steps: + - run: echo 'PR title was validated before this merge-group run.'