-
Notifications
You must be signed in to change notification settings - Fork 183
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
Implement tools for diffing sets of owners of repo paths; update the regex-based CODEOWNERS matching logic #5165
Merged
Conversation
This file contains 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
konrad-jamrozik
added
the
Central-EngSys
This issue is owned by the Engineering System team.
label
Jan 19, 2023
konrad-jamrozik
force-pushed
the
users/kojamroz/co_co2_diff
branch
2 times, most recently
from
January 19, 2023 02:20
11eaa5d
to
a2396b2
Compare
This was referenced Jan 19, 2023
weshaggard
reviewed
Jan 19, 2023
tools/code-owners-parser/CodeOwnersParser/MatchedCodeownersEntry.cs
Outdated
Show resolved
Hide resolved
weshaggard
reviewed
Jan 19, 2023
@weshaggard I updated the matcher logic. Please have a look once you have a moment :) Thanks! Before merging I'll make a pass over comments and PR description to ensure they correctly reflect the new implementation. These comments might be outdated a bit right now. |
konrad-jamrozik
changed the title
Implement tools for diffing sets of owners of repo paths; fix bug in regex-based CODEOWNERS matching logic
Implement tools for diffing sets of owners of repo paths; update the regex-based CODEOWNERS matching logic
Jan 20, 2023
weshaggard
approved these changes
Jan 20, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
konrad-jamrozik
force-pushed
the
users/kojamroz/co_co2_diff
branch
from
January 23, 2023 20:34
04c6f7e
to
f17ba9b
Compare
This was referenced Jan 27, 2023
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.
Overview
This PR implements tools for diffing list of owners for all files in given repository, allowing one to quickly determine how the resolved list of owners for all repository file paths will change if a different CODEOWNERS matcher is used, or the contents of the file are changed.
And as such, this PR contributes to:
And contributes to providing information necessary to unblock this PR:
Per this comment:
This PR builds upon the logic implemented in:
retrieve-codeowners
tool support for returning owners for all paths matching given glob path. #5134Changes made
CodeownersDiffTests
class, a series of tools to be used manually to diff owners of files based on differing sets of settingsMatchedCodeownersEntry
, i.e. the regex-based CODEOWNERS matcher, where the matcher was "eating up slashes too aggressively" when interpreting**
, resulting in more matches being made than desired. I added tests toCodeownersFileTests
to cover these cases.