Skip to content

team-reviewers option doesn't work anymore #1638

@aswen

Description

@aswen

Subject of the issue

Since 5 days ago the option to request a review from any of the owners, or later, the members of a team doesn't work anymore with the following error:

Reviews may only be requested from collaborators. One or more of the teams you specified is not a collaborator of the company-name/repository-name repository.

Steps to reproduce

Create a PR with:

      - name: Create PR
        id: create-pr
        if: ${{ steps.prepare-pr.outputs.create_pr == 'True' }}
        uses: peter-evans/create-pull-request@v4
        with:
          path: reponame-repo
          add-paths: node/${{ inputs.hostname }}
          token: ${{ env.GITHUB_REPO_TOKEN }}
          branch: EOL_${{ inputs.hostname }}
          commit-message: Remove ${{ inputs.hostname }}
          title: Remove ${{ inputs.hostname }}
          body: ${{ env.pull_request_body }}
          assignees: ${{ github.actor }}
          team-reviewers: owners
          labels: Prepare for removal
          draft: ${{ steps.prepare-pr.outputs.remnants_warning }}

Later, I tried with the same as above, but:

          team-reviewers: company-name/team-name

But that failed with same error. I also tried other things like team-reviewers: team-name and:

          team-reviewers: |
            company-name/team-name

All of them failed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions