Skip to content

Commit f94476d

Browse files
authored
Set the PR reviewer instead of assignee (#447)
Signed-off-by: Dan Barr <6922515+danbarr@users.noreply.github.com> Co-authored-by: Dan Barr <6922515+danbarr@users.noreply.github.com>
1 parent 7daa41c commit f94476d

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/update-toolhive-reference.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
required: true
99
default: 'latest'
1010
assign_to:
11-
description: 'GitHub username to assign the PR to (optional)'
11+
description: 'GitHub username to request PR review from (optional)'
1212
required: false
1313
repository_dispatch:
1414
types: [published-release]
@@ -44,19 +44,19 @@ jobs:
4444
echo "version=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT
4545
fi
4646
47-
- name: Determine assignee
48-
id: get-assignee
47+
- name: Determine reviewer
48+
id: get-reviewer
4949
run: |
5050
if [[ "${{ github.event_name }}" == "repository_dispatch" ]]; then
51-
ASSIGNEE="${{ github.event.client_payload.assign_to }}"
51+
REVIEWER="${{ github.event.client_payload.assign_to }}"
5252
else
53-
ASSIGNEE="${{ github.event.inputs.assign_to }}"
53+
REVIEWER="${{ github.event.inputs.assign_to }}"
5454
fi
55-
# Filter out github-actions bot (can't be assigned to PRs)
56-
if [[ "$ASSIGNEE" =~ ^github-actions ]]; then
57-
ASSIGNEE=""
55+
# Filter out github-actions bot (can't be requested as reviewer)
56+
if [[ "$REVIEWER" =~ ^github-actions ]]; then
57+
REVIEWER=""
5858
fi
59-
echo "assign_to=$ASSIGNEE" >> $GITHUB_OUTPUT
59+
echo "assign_to=$REVIEWER" >> $GITHUB_OUTPUT
6060
6161
- name: Run update script
6262
id: imports
@@ -92,6 +92,6 @@ jobs:
9292
Update ToolHive reference docs for ${{ steps.imports.outputs.version }}
9393
labels: |
9494
autogen-docs
95-
assignees: ${{ steps.get-assignee.outputs.assign_to }}
95+
reviewers: ${{ steps.get-reviewer.outputs.assign_to }}
9696
delete-branch: true
9797
sign-commits: true

0 commit comments

Comments
 (0)