feat: implement RFC 16 to allow emergency node access #2186
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: Assign Reviewer | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- edited | |
- synchronize | |
- review_request_removed | |
- labeled | |
permissions: | |
pull-requests: write | |
jobs: | |
assign_reviewer: | |
runs-on: ubuntu-latest | |
if: contains(github.event.pull_request.labels.*.name, 'dependencies') && toJson(github.event.pull_request.requested_reviewers) == '[]' && github.event.pull_request.user.login == 'renovate[bot]' | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Pick assignee | |
id: pick-assignee | |
uses: ./.github/actions/pick_assignee | |
- name: Assign reviewer | |
env: | |
GH_TOKEN: ${{ github.token }} | |
PR: ${{ github.event.pull_request.number }} | |
ASSIGNEE: ${{ steps.pick-assignee.outputs.assignee }} | |
run: | | |
gh api \ | |
--method POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
"/repos/edgelesssys/constellation/pulls/${PR}/requested_reviewers" \ | |
-f "reviewers[]=${ASSIGNEE}" |