Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions .github/workflows/sycl-check-ready-to-merge-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
steps:
- name: Check
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GATEKEEPER_NOTIFICATION_TOKEN }}
run: |
# Number of days before repeating the gatekeepers ping
days=3
Expand All @@ -44,15 +44,6 @@ jobs:
continue
fi

# Looks like GH doesn't issue a notification/email if the team was mentioned by the github-actions bot.
# Therefore, ensure the gatekeepers are added as reviewers.
has_gatekeepers=$(gh pr view "$pr" --repo intel/llvm --json reviewRequests \
--jq '([.reviewRequests[]?.login, .reviewRequests[]?.slug, .reviewRequests[]?.name, (.reviewRequests[]?.users[]?.login), (.reviewRequests[]?.teams[]?.slug), (.reviewRequests[]?.teams[]? | (.organization.login + "/" + .slug))] | map(select(. != null)) | any(. == "intel/llvm-gatekeepers" or . == "llvm-gatekeepers"))')
if [[ "$has_gatekeepers" != "true" ]]; then
gh pr edit "$pr" --repo intel/llvm --add-reviewer intel/llvm-gatekeepers
echo "Added intel/llvm-gatekeepers to reviewers for https://github.com/intel/llvm/pull/$pr"
fi

# Get the timestamp of the latest comment mentioning @intel/llvm-gatekeepers
latest_ts=$(gh pr view $pr --repo intel/llvm --json comments \
--jq '[.comments[] | select(.body | test("@intel/llvm-gatekeepers")) | .createdAt] | last')
Expand Down
Loading