fix(rules): rule triggering on late-connecting targets #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Request Review | |
on: | |
issue_comment: | |
types: | |
- created | |
jobs: | |
request-review: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
if: github.repository_owner == 'cryostatio' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/request_review') | |
env: | |
REVIEWERS_TEAM: 'cryostatio/reviewers' | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Add label and request review | |
run: | | |
echo "Adding label 'review-requested' to the PR" | |
gh pr edit ${{ github.event.issue.number }} --add-label "review-requested" | |
echo "Requesting review from @$REVIEWERS_TEAM" | |
gh pr edit ${{ github.event.issue.number }} --add-reviewer $REVIEWERS_TEAM | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |