File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
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
You can’t perform that action at this time.
0 commit comments