mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-29 11:23:49 +08:00
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.
This commit is contained in:
@@ -5,7 +5,7 @@ name: Auto-merge Speakeasy PR
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [labeled]
|
||||
types: [labeled, opened]
|
||||
|
||||
permissions:
|
||||
contents: write
|
||||
@@ -18,8 +18,8 @@ concurrency:
|
||||
jobs:
|
||||
auto-merge:
|
||||
if: |
|
||||
github.event.sender.login == 'github-actions[bot]' &&
|
||||
github.event.pull_request.user.login == 'github-actions[bot]' &&
|
||||
github.event.sender.login == 'app/github-actions' &&
|
||||
github.event.pull_request.user.login == 'app/github-actions' &&
|
||||
startsWith(github.event.pull_request.head.ref, 'speakeasy-sdk-regen-') &&
|
||||
contains(github.event.pull_request.title, '🐝 Update SDK') &&
|
||||
contains(fromJSON('["patch", "minor", "major"]'), github.event.label.name)
|
||||
|
||||
Reference in New Issue
Block a user