Skip to content

Commit a7d9443

Browse files
committed
1 parent 03fb789 commit a7d9443

1 file changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/commit-queue.yml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
# secrets, which it needs to access Jenkins API.
1313
schedule:
1414
- cron: '*/5 * * * *'
15+
workflow_dispatch:
16+
1517

1618
concurrency: ${{ github.workflow }}
1719

@@ -33,13 +35,24 @@ jobs:
3335
- name: Get Pull Requests
3436
id: get_mergeable_prs
3537
run: >
36-
gh pr list \
38+
prs=$(gh pr list \
3739
--repo ${{ github.repository }} \
3840
--base ${{ github.ref_name }} \
3941
--label 'commit-queue' \
4042
--json 'number' \
41-
-t '::set-output name=numbers::{{ range . }}{{ .number }} {{ end }}' \
42-
--limit 100
43+
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z")"
44+
-t '{{ range . }}{{ .number }} {{ end }}' \
45+
--limit 100)
46+
fast_track_prs=$(gh pr list \
47+
--repo ${{ github.repository }} \
48+
--base ${{ github.ref_name }} \
49+
--label 'commit-queue' \
50+
--label 'fast-track' \
51+
--json 'number' \
52+
-t '{{ range . }}{{ .number }} {{ end }}' \
53+
--limit 100)
54+
numbers=$(echo $prs' '$fast_track_prs | jq -r -s 'unique | join(" ")')
55+
echo "numbers=$numbers" >> $GITHUB_OUTPUT
4356
env:
4457
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4558
commitQueue:

0 commit comments

Comments
 (0)