mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
adf03ad76c
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
31 lines
874 B
YAML
31 lines
874 B
YAML
name: Assign Reviewer
|
|
|
|
on:
|
|
pull_request:
|
|
types: ["labeled"]
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
jobs:
|
|
specific_review_requested:
|
|
runs-on: ubuntu-latest
|
|
if: ${{ github.event.label.name == 'dependencies'}}
|
|
steps:
|
|
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
|
|
- 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}"
|