Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add configuration to opt out of removal of default reviewers #227

Merged
merged 2 commits into from
Sep 23, 2024

Conversation

jdbaldry
Copy link
Member

It requires extra permissions that can't be satisfied by the default GITHUB_TOKEN. By making it configurable, teams can choose to use the default token and sacrifice this feature, or use a GitHub App if they want it.

@jdbaldry jdbaldry requested a review from a team as a code owner September 20, 2024 14:48
@jdbaldry jdbaldry force-pushed the jdb/2024-09-optional-removal-of-default-reviewers branch 2 times, most recently from 9455f75 to d3c48bc Compare September 23, 2024 08:16
It requires extra permissions that can't be satisfied by the default `GITHUB_TOKEN`.
By making it configurable, teams can choose to use the default token and sacrifice this feature, or use a GitHub App if they want it.

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
@jdbaldry jdbaldry force-pushed the jdb/2024-09-optional-removal-of-default-reviewers branch from d3c48bc to 1532965 Compare September 23, 2024 16:30
I'm getting different output locally...

Signed-off-by: Jack Baldry <jack.baldry@grafana.com>
@jdbaldry jdbaldry merged commit cc775c3 into main Sep 23, 2024
3 checks passed
@jdbaldry jdbaldry deleted the jdb/2024-09-optional-removal-of-default-reviewers branch September 23, 2024 16:46
jdbaldry added a commit to jdbaldry/pyroscope that referenced this pull request Sep 23, 2024
aleks-p pushed a commit to grafana/pyroscope that referenced this pull request Sep 24, 2024
jdbaldry added a commit to grafana/agent that referenced this pull request Sep 27, 2024
Use the default token injected into workflows since the GH_BOT_ACCESS_TOKEN is revoked.

The default token doesn't have the permission used for unassigning default reviewers. If you don't have it, you get cryptic comments posted back on the PR after the backport PRs are opened with the message `Validation Failed: "Could not resolve to a node with the global id of '<NODE ID>."`

Like in grafana/pyroscope#3557 (comment)

Behavior was documented in grafana/grafana-github-actions#226 and made configurable in 
grafana/grafana-github-actions#227

`removeDefaultReviewers: false` instructs the workflow to not try to avoid the error but will of course not remove the default reviewers assigned on the backport PR.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants