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