-
-
Notifications
You must be signed in to change notification settings - Fork 519
Closed
Labels
has workaroundThis issue has a workaroundThis issue has a workaround
Description
Subject of the issue
Providing a GitHub team to request a review from doesn't work.
Steps to reproduce
- name: Push changes to Github and create pull request
if: ${{ env.CREATE_PR == 1 }}
id: pull_request
uses: peter-evans/create-pull-request@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
title: 'Some text here...'
body: |
Some text here...
- Some text here...
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
labels: binupdate, automated pr
team-reviewers: developers
branch: binbase/update
branch-suffix: timestamp
In the example above, developers is a valid Github team. When I base64 decode MDQ6VGVhbTE3NTI3NjE= in the error below, it resolves to: 04:Team1752761 and I can confirm that 1752761 is the correct id for our developers Github team.
The error message we see is:
Requesting team reviewers 'developers'
Traceback (most recent call last):
File "/home/runner/work/_actions/peter-evans/create-pull-request/v2/dist/cpr/create_pull_request.py", line 213, in <module>
coupr.create_or_update_pull_request(
File "/home/runner/work/_actions/peter-evans/create-pull-request/v2/dist/cpr/create_or_update_pull_request.py", line 143, in create_or_update_pull_request
pull_request.create_review_request(
File "/opt/hostedtoolcache/Python/3.8.2/x64/lib/python3.8/site-packages/github/PullRequest.py", line 511, in create_review_request
headers, data = self._requester.requestJsonAndCheck(
File "/opt/hostedtoolcache/Python/3.8.2/x64/lib/python3.8/site-packages/github/Requester.py", line 317, in requestJsonAndCheck
return self.__check(
File "/opt/hostedtoolcache/Python/3.8.2/x64/lib/python3.8/site-packages/github/Requester.py", line 342, in __check
raise self.__createException(status, responseHeaders, output)
github.GithubException.GithubException: 422 {"message": "Validation Failed", "errors": ["Could not resolve to a node with the global id of 'MDQ6VGVhbTE3NTI3NjE='."], "documentation_url": "https://developer.github.com/v3/pulls/review_requests/#create-a-review-request"}
##[error]The process '/opt/hostedtoolcache/Python/3.8.2/x64/bin/python' failed with exit code 1
/usr/bin/git config --local --add http.https://github.com/.extraheader AUTHORIZATION: basic ***
ryanwilsonperkin and peter-majeed
Metadata
Metadata
Assignees
Labels
has workaroundThis issue has a workaroundThis issue has a workaround