Skip to content

Commit 7c3530f

Browse files
[CI] Fix sycl-check-ready-to-merge-prs.yml (#20885)
Bring back '--repo' param, as without it, 'gh' has to be called from within checked-out repo. With this param it can be called wherever. ref. #20685
1 parent 6aa0066 commit 7c3530f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

.github/workflows/sycl-check-ready-to-merge-prs.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,27 +27,25 @@ jobs:
2727
days=3
2828
days_in_seconds=$((days*24*60*60))
2929
30-
gh repo set-default intel/llvm
31-
3230
# Function to ping gatekeepers and print debug info
3331
ping_gatekeepers() {
3432
pr_number=$1
35-
gh pr comment "$pr_number" --body "@intel/llvm-gatekeepers please consider merging"
33+
gh pr comment "$pr_number" --repo intel/llvm --body "@intel/llvm-gatekeepers please consider merging"
3634
echo "Pinged @intel/llvm-gatekeepers for https://github.com/intel/llvm/pull/$pr_number"
3735
}
3836
3937
# Get the list of suitable PRs
40-
prs=$(gh pr list --search "is:open review:approved draft:no status:success" --json number --jq '.[].number')
38+
prs=$(gh pr list --search "is:open review:approved draft:no status:success" --repo intel/llvm --json number --jq '.[].number')
4139
now=$(date -u +%s)
4240
for pr in $prs; do
4341
# Skip PRs that don't target the sycl branch
44-
pr_base=$(gh pr view $pr --json baseRefName -q .baseRefName)
42+
pr_base=$(gh pr view $pr --repo intel/llvm --json baseRefName -q .baseRefName)
4543
if [ "$pr_base" != "sycl" ]; then
4644
continue
4745
fi
4846
4947
# Get the timestamp of the latest comment mentioning @intel/llvm-gatekeepers
50-
latest_ts=$(gh pr view $pr --json comments \
48+
latest_ts=$(gh pr view $pr --repo intel/llvm --json comments \
5149
--jq '[.comments[] | select(.body | test("@intel/llvm-gatekeepers")) | .createdAt] | last')
5250
# If there is no previous mention, ping the gatekeepers
5351
if [[ -z "$latest_ts" ]]; then

0 commit comments

Comments
 (0)