Commit f5a4c52 1 parent 0f45c90 commit f5a4c52 Copy full SHA for f5a4c52
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -32,14 +32,24 @@ jobs:
32
32
steps :
33
33
- name : Get Pull Requests
34
34
id : get_mergeable_prs
35
- run : >
36
- numbers=$(gh pr list \
35
+ run : |
36
+ prs=$(gh pr list \
37
+ --repo ${{ github.repository }} \
38
+ --base ${{ github.ref_name }} \
39
+ --label 'commit-queue' \
40
+ --json 'number' \
41
+ --search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z")" \
42
+ -t '{{ range . }}{{ .number }} {{ end }}' \
43
+ --limit 100)
44
+ fast_track_prs=$(gh pr list \
37
45
--repo ${{ github.repository }} \
38
46
--base ${{ github.ref_name }} \
39
47
--label 'commit-queue' \
48
+ --label 'fast-track' \
40
49
--json 'number' \
41
50
-t '{{ range . }}{{ .number }} {{ end }}' \
42
51
--limit 100)
52
+ numbers=$(echo $prs' '$fast_track_prs | jq -r -s 'unique | join(" ")')
43
53
echo "numbers=$numbers" >> $GITHUB_OUTPUT
44
54
env :
45
55
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments