Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
MoLow committed Nov 10, 2022
1 parent 03fb789 commit a7d9443
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/commit-queue.yml
Expand Up @@ -12,6 +12,8 @@ on:
# secrets, which it needs to access Jenkins API.
schedule:
- cron: '*/5 * * * *'
workflow_dispatch:


concurrency: ${{ github.workflow }}

Expand All @@ -33,13 +35,24 @@ jobs:
- name: Get Pull Requests
id: get_mergeable_prs
run: >
gh pr list \
prs=$(gh pr list \
--repo ${{ github.repository }} \
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--json 'number' \
-t '::set-output name=numbers::{{ range . }}{{ .number }} {{ end }}' \
--limit 100
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z")"
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
fast_track_prs=$(gh pr list \
--repo ${{ github.repository }} \
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--label 'fast-track' \
--json 'number' \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
numbers=$(echo $prs' '$fast_track_prs | jq -r -s 'unique | join(" ")')
echo "numbers=$numbers" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
commitQueue:
Expand Down

0 comments on commit a7d9443

Please sign in to comment.