mirror of
https://github.com/wassname/openrouter-python-sdk-retry-errors.git
synced 2026-09-11 12:31:28 +08:00
fix: address review feedback on auto-merge workflow
Pipe gh pr list output through jq instead of passing --arg to gh --jq, and add a repo-level concurrency group to prevent cross-PR merge races.
This commit is contained in:
@@ -11,6 +11,10 @@ permissions:
|
|||||||
contents: write
|
contents: write
|
||||||
pull-requests: write
|
pull-requests: write
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: auto-merge-speakeasy
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
auto-merge:
|
auto-merge:
|
||||||
if: |
|
if: |
|
||||||
@@ -34,7 +38,8 @@ jobs:
|
|||||||
--search "head:speakeasy-sdk-regen-" \
|
--search "head:speakeasy-sdk-regen-" \
|
||||||
--limit 500 \
|
--limit 500 \
|
||||||
--json number \
|
--json number \
|
||||||
--jq --arg current "$CURRENT_PR" '[.[].number | select(tostring != $current)] | .[]')
|
| jq -r --arg cur "$CURRENT_PR" \
|
||||||
|
'[.[].number | select(tostring != $cur)] | .[]')
|
||||||
|
|
||||||
if [ -z "$PRIOR_JSON" ]; then
|
if [ -z "$PRIOR_JSON" ]; then
|
||||||
echo "No superseded Speakeasy PRs to close"
|
echo "No superseded Speakeasy PRs to close"
|
||||||
|
|||||||
Reference in New Issue
Block a user