You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
My team has auto-assignment enabled. However, when requesting team as reviewer in a workflow step, it doesn't behave as documented.
When you enable auto assignment, any time your team has been requested to review a pull request, the team is removed as a reviewer and a specified subset of team members are assigned in the team's place.
Create a workflow file that requests your team as reviewer when a PR is created in a repo
name: Sample workflowon:
pull_request:
types:
- opened
- reopenedpermissions:
pull-requests: writejobs:
assign:
runs-on: ubuntu-lateststeps:
- name: Set team as revieweruses: actions/github-script@v6with:
github-token: ${{inputs.custom-github-token}} # need a PAT to add team as reviewerscript: | github.rest.pulls.requestReviewers({ owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, team_reviewers: ["awesomeTeamSlug"] });
Make any change and open a PR
Observe that the team as an entity is assigned to the PR instead of a specified subset of team member.
Expected behavior
"the team is removed as a reviewer and a specified subset of team members are assigned in the team's place"
Additional context
This bug/odd behavior seems to only occur when PR is initially created. If I configure the workflow to run upon PR reopened, it works as expected.
The text was updated successfully, but these errors were encountered:
Describe the bug
My team has auto-assignment enabled. However, when requesting team as reviewer in a workflow step, it doesn't behave as documented.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Additional context
This bug/odd behavior seems to only occur when PR is initially created. If I configure the workflow to run upon PR reopened, it works as expected.
The text was updated successfully, but these errors were encountered: