1
0
Fork 0

Update merge-prs.yml: Filter out conflict-free Pull Requests created by bots

This commit is contained in:
pooneyy 2025-08-16 17:22:13 +08:00
parent 95cc84404d
commit 06e2f373a1
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ jobs:
- name: 获取可合并的 PR
id: get-prs
run: |
pr_list=$( gh pr list --state open --json number,mergeable --limit 1000 --jq 'sort_by(.number) | .[] | .number' )
pr_list=$( gh pr list --state open --author "app/renovate" --json number,mergeStateStatus --limit 1000 --jq 'sort_by(.number) | .[] | select(.mergeStateStatus == "CLEAN") | .number' )
pr_list=$(echo "$pr_list" | tr '\n' ' ')