feat(workflows): automatically assign reviewers - #27698
Closed
grunweg wants to merge 12 commits into
Closed
Conversation
Once per day, automatically assign all proposed reviewers from the automatic assignment algorithm. TODO: need to parse the json file with the data
Co-authored-by: damiano <adomani@gmail.com>
Co-authored-by: Bryan Gin-ge Chen <bryangingechen@gmail.com>
grunweg
force-pushed
the
MR-auto-assign-reviewers
branch
from
July 30, 2025 19:55
2875248 to
c7e6567
Compare
PR summary 8635ef05f0Import changes for modified filesNo significant changes to the import graph Import changes for all files
Declarations diff
You can run this locally as follows## summary with just the declaration names:
./scripts/declarations_diff.sh <optional_commit>
## more verbose report:
./scripts/declarations_diff.sh long <optional_commit>The doc-module for No changes to technical debt.You can run this locally as
|
Contributor
Author
|
Duplicate of #26109; this has fulfilled its purpose. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Once per day, automatically assign all proposed reviewers from the automatic assignment algorithm.
These are initial suggestions; users are free to manually assign to somebody else (or to un-assign themselves; after a day, the algorithm will randomly choose a user again.)
To work around variable quoting issues, we follow a slightly roundabout approach: instead of parsing the json file using a shell script and calling the github API from bash in a loop, we use Python to parse the file, generate a shell script with the desired APIi calls, and execute that script instead.
(This has the advantage of making the output easily auditable; future rewrites are also welcome.)
See the github documentation for the assignment syntax used.