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

Automatically request review regardless of reviewers' collaborator status #66072

Merged
merged 5 commits into from
Jun 19, 2023

Conversation

Qrox
Copy link
Contributor

@Qrox Qrox commented Jun 8, 2023

Summary

None

Purpose of change

Second attempt at #65838. The codeowner file requires reviewers to have write access to the repo to be requested for review, which isn't what we actually want to achieve with it.

Describe the solution

Use a modified version of auto-request-review to ping non-collaborators for review.

Describe alternatives you've considered

Deal with Github's arbitrary restriction.

Testing

Tested in Qrox#14 and Qrox#15.

  • Collaborators and non-collaborators are requested and mentioned respectively.
  • Reviewers are requested for newly pushed changes.
  • Non-collaborators already pinged by the action are not repeatedly pinged when pushing to or reopening the PR.

Additional context

The original auto-request-review repo has some documentation on how to configure reviewers. It uses minimatch to match file names which seems pretty versatile.

Based on my understanding of its code though, the random reviewers and limit reviewers functions probably won't work correctly, because it may select a different set of reviewers after updating a PR, even before my modifications.

The action also does not rerun when the base branch of a PR changes, but since most PRs are made to the master branch or another branch that is never force pushed, it probably does not actually matter.

@github-actions github-actions bot added the Code: Tooling Tooling that is not part of the main game but is part of the repo. label Jun 8, 2023
@github-actions github-actions bot added astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Jun 8, 2023
@Qrox Qrox closed this Jun 10, 2023
@Qrox Qrox reopened this Jun 10, 2023
@Qrox Qrox force-pushed the request-review branch from a8e3ec5 to 434a5d5 Compare June 14, 2023 17:55
@github-actions github-actions bot added BasicBuildPassed This PR builds correctly, label assigned by github actions and removed BasicBuildPassed This PR builds correctly, label assigned by github actions labels Jun 14, 2023
@bombasticSlacks bombasticSlacks merged commit 0d97f08 into CleverRaven:master Jun 19, 2023
@Qrox Qrox deleted the request-review branch June 21, 2023 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions Code: Tooling Tooling that is not part of the main game but is part of the repo. json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants