mirror of
https://github.com/stan220/flathub.git
synced 2026-09-08 18:29:08 +00:00
pr-check: Fetch PRs by updated at
This commit is contained in:
@@ -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 "," -)
|
||||
|
||||
Reference in New Issue
Block a user