pr-check: Fetch PRs by updated at

This commit is contained in:
bbhtt
2025-06-07 07:35:03 +05:30
parent 63df2b44ab
commit 1ae25a5807
+2 -2
View File
@@ -18,10 +18,10 @@ jobs:
steps:
- name: Fetch recent PR numbers
run: |
prs_raw=$(gh pr list --base "new-pr" -L 50 --state open --json number,createdAt,isDraft \
prs_raw=$(gh pr list --base "new-pr" -L 50 --state open --json number,updatedAt,isDraft \
| jq -r '[.[]
| select(.isDraft == false
and .createdAt >= (now - (2 * 24 * 60 * 60) | todate))
and .updatedAt >= (now - (2 * 24 * 60 * 60) | todate))
| .number]
| .[]')
prs_list=$(printf '%s\n' $prs_raw | head -30 | paste -sd "," -)