Repository navigation
feat(rjc): default profile and per-owner co-author (RIG-12374) - #249
Open
rigel-mintaka wants to merge 2 commits into
Open
rigel-mintaka wants to merge 2 commits into
rigel-mintaka wants to merge 2 commits into
Conversation
A profile file may now set `default`, used for a repository absent from `repos`, and `coAuthorByOwner`, which overrides `coAuthor` per GitHub owner. Both are optional, so existing profile files load unchanged. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
Review round 1 at f5a988a0 high, 1 medium, 3 low.
|
The test default now has its own prefix, so a listed-repo case can fail if default ever replaces a listed entry. A second owner checks the global co-author fallback. The coAuthor tag matches the schema again. Co-authored-by: Matt Wilkinson <matt@rigel.build>
Contributor
Author
|
All-clear at b4c1071 All-clear at b4c1071 Round 2: 0 high, 0 medium, 0 low. All four round-1 findings are fixed. The six
|
This branch had an error being deployed
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.
What does this do
Adds two optional fields to the rjc profile file:
default: a#Repopolicy used whenreposhas no entry for the repository. Without it, unlisted repositories are still refused.coAuthorByOwner: a map from GitHub owner to co-author trailer that overridescoAuthor, which becomes the fallback.#Repo.namebecomes optional so the default profile needs no name. The README documents both fields.Why do we need it
A deployment that wraps rjc with its own profile file needs unlisted repositories to fall back to a policy. It also needs a different co-author for one GitHub owner. Neither is expressible today.
Summary
Both fields are optional, so existing profile files load unchanged.
Verification
TestProfileForDefaultAndOwnerCoAuthor: all six cases pass, including a listed repo winning overdefaultand a second owner falling back tocoAuthor. ForcingProfileForto always usedefaultfails the listed-repo case.gofmtandgo vet: rc 0.Risks
The full
tools/rjcsuite times out at 600s on the build host. It also times out onmainwithout this change, in a different test, so the hang predates this PR.Additional required section
Not applicable.
Checks skipped:
nebula has no pre-push hook config; GitHub Actions ci.yaml runs its checksRefs RIG-12374
Co-authored-by: Matt Wilkinson matt@rigel.build