mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-07-31 12:30:30 +08:00
fix: update auto-merge workflow triggers and bot username (#345)
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
|
||||
@@ -22,7 +22,13 @@ jobs:
|
||||
github.event.pull_request.user.login == 'github-actions[bot]' &&
|
||||
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)
|
||||
(
|
||||
(github.event.action == 'labeled' && contains(fromJSON('["patch", "minor", "major"]'), github.event.label.name)) ||
|
||||
(github.event.action == 'opened' &&
|
||||
(contains(github.event.pull_request.labels.*.name, 'patch') ||
|
||||
contains(github.event.pull_request.labels.*.name, 'minor') ||
|
||||
contains(github.event.pull_request.labels.*.name, 'major')))
|
||||
)
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Close superseded Speakeasy PRs
|
||||
|
||||
Reference in New Issue
Block a user