Skip to content

Commit 6a09136

Browse files
committed
Fix triage for merge_group
1 parent bf2a1b0 commit 6a09136

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/triage.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ on:
1010
# For `skip-label` only.
1111
- "labeled"
1212
- "unlabeled"
13+
merge_group:
14+
branches:
15+
- main
16+
types:
17+
- checks_requested
1318

1419
permissions:
1520
contents: read
@@ -19,7 +24,7 @@ permissions:
1924
jobs:
2025
label:
2126
name: Labeler
22-
if: github.event.action != 'labeled' && github.event.action != 'unlabeled'
27+
if: github.event_name == 'pull_request' && github.event.action != 'labeled' && github.event.action != 'unlabeled'
2328
runs-on: ubuntu-latest
2429
steps:
2530
- uses: actions/labeler@v5
@@ -33,6 +38,8 @@ jobs:
3338
env:
3439
SKIP_LABEL: "skip changeset"
3540
steps:
41+
- if: github.event_name == 'merge_group'
42+
run: echo "passed"; exit 0;
3643
- if: "contains(github.event.pull_request.labels.*.name, 'skip changeset')"
3744
run: echo "passed"; exit 0;
3845
- if: "!contains(github.event.pull_request.labels.*.name, 'skip changeset')"
@@ -44,7 +51,7 @@ jobs:
4451
run: script/check-for-changeset
4552

4653
semver-label:
47-
if: ${{ github.repository == 'primer/view_components' }}
54+
if: ${{ github.repository == 'primer/view_components' && github.event_name == 'pull_request' }}
4855
name: semver label
4956
runs-on: ubuntu-latest
5057
steps:

0 commit comments

Comments
 (0)