Skip to content

Commit 27d5545

Browse files
Use activity type in pull_request_review trigger
- Move 'submitted' from if condition to trigger types - Cleaner and more idiomatic GitHub Actions syntax - Simplifies the if condition by removing redundant action check Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent a83e9fb commit 27d5545

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/dependabot-auto-merge.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Dependabot Auto-Merge
22

3-
on: pull_request_review
3+
on:
4+
pull_request_review:
5+
types: [submitted]
46

57
permissions:
68
contents: write
@@ -9,7 +11,7 @@ permissions:
911
jobs:
1012
auto-merge:
1113
runs-on: ubuntu-latest
12-
if: github.event.action == 'submitted' && github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]'
14+
if: github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]'
1315
steps:
1416
- name: Get Dependabot metadata
1517
id: metadata

0 commit comments

Comments
 (0)