Skip to content

Commit e511744

Browse files
committed
Dependabot trimmer only needs to run on merge queues (quantumlib#1034)
1 parent 11e392d commit e511744

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

.github/workflows/dependabot-pr-trimmer.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ name: Dependabot PR trimmer
2020
run-name: Filter message body of PR ${{github.event.pull_request.number}}
2121

2222
on:
23-
pull_request:
24-
types: [opened]
23+
merge_group:
24+
types:
25+
- checks_requested
26+
2527
workflow_dispatch:
2628
inputs:
2729
pr-number:
@@ -37,7 +39,10 @@ jobs:
3739
name: Filter PR message body
3840
runs-on: ubuntu-24.04
3941
timeout-minutes: 5
40-
permissions: write-all
42+
permissions:
43+
contents: read
44+
pull-requests: write
45+
issues: write
4146
steps:
4247
- if: >-
4348
github.event.pull_request.user.login == 'dependabot[bot]' ||

0 commit comments

Comments
 (0)