Skip to content

Commit c34ce15

Browse files
fix: update auto-merge workflow triggers and bot username
- Add 'opened' trigger to catch PRs when bot immediately applies label - Fix bot username from github-actions[bot] to app/github-actions This enables the auto-merge workflow to work with Speakeasy SDK generation PRs.
1 parent 7e29e40 commit c34ce15

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/auto-merge-speakeasy-pr.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Auto-merge Speakeasy PR
55

66
on:
77
pull_request:
8-
types: [labeled]
8+
types: [labeled, opened]
99

1010
permissions:
1111
contents: write
@@ -18,8 +18,8 @@ concurrency:
1818
jobs:
1919
auto-merge:
2020
if: |
21-
github.event.sender.login == 'github-actions[bot]' &&
22-
github.event.pull_request.user.login == 'github-actions[bot]' &&
21+
github.event.sender.login == 'app/github-actions' &&
22+
github.event.pull_request.user.login == 'app/github-actions' &&
2323
startsWith(github.event.pull_request.head.ref, 'speakeasy-sdk-regen-') &&
2424
contains(github.event.pull_request.title, '🐝 Update SDK') &&
2525
contains(fromJSON('["patch", "minor", "major"]'), github.event.label.name)

0 commit comments

Comments
 (0)