Skip to content

Commit 9fb6c27

Browse files
committed
tools: allow triagers to queue a PR for CI until it's reviewed
1 parent 60f19bc commit 9fb6c27

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.github/workflows/auto-start-ci.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,12 @@ jobs:
2828
- name: Get Pull Requests
2929
id: get_prs_for_ci
3030
run: >
31-
numbers=$(gh pr list \
32-
--repo ${{ github.repository }} \
31+
echo "numbers=$(gh pr list \
32+
--repo "$GITHUB_REPOSITORY" \
3333
--label 'request-ci' \
3434
--json 'number' \
35-
-t '{{ range . }}{{ .number }} {{ end }}' \
36-
--limit 5)
37-
echo "numbers=$numbers" >> $GITHUB_OUTPUT
35+
--search 'review:approved' \
36+
--limit 5)" >> "$GITHUB_OUTPUT"
3837
env:
3938
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4039
start-ci:

0 commit comments

Comments
 (0)