Add to the retrieve-codeowners tool support for returning owners for all paths matching given glob path.#5134
Conversation
tools/code-owners-parser/CodeOwnersParser/Azure.Sdk.Tools.CodeOwnersParser.csproj
Show resolved
Hide resolved
f88fb89 to
5659e9e
Compare
5659e9e to
95c3691
Compare
retrieve-codeowners tools support for returning owners for all paths matching given glob path.retrieve-codeowners tool support for returning owners for all paths matching given glob path.
|
The following pipelines have been queued for testing: |
95c3691 to
f7a5ade
Compare
f7a5ade to
762bdf4
Compare
|
The following pipelines have been queued for testing: |
|
|
||
| <PropertyGroup> | ||
| <TargetFramework>net6.0</TargetFramework> | ||
| <LangVersion>10.0</LangVersion> |
There was a problem hiding this comment.
Is this necessary to specify? What is the default language feature?
There was a problem hiding this comment.
@weshaggard Prompted by your question I investigated a bit and I think it is coming from Directory.Build.props. I will make a PR to update this to 10.0, now that we have moved everything to net6.0.
There was a problem hiding this comment.
...e-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners/Azure.Sdk.Tools.RetrieveCodeOwners.csproj
Show resolved
Hide resolved
tools/code-owners-parser/Azure.Sdk.Tools.RetrieveCodeOwners/Program.cs
Outdated
Show resolved
Hide resolved
weshaggard
left a comment
There was a problem hiding this comment.
A few questions/comments but otherwise seems reasonable.
2eb8b7e to
b1d1774
Compare
b1d1774 to
3ed5c92
Compare
|
The following pipelines have been queued for testing: |
|
Hello @azure-sdk! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
This PR implements for the
retrieve-codeownerstool the ability to return not only owners for a single path, but a list of all owners for all paths resolved when matching a glob path given as input.As such, this PR contributes to:
This work is necessary to be able to compare and diff the owners of all files in repository before and after the regex matcher is turned on, per this comment:
In other words, this PR contributes to unblocking to the following PR:
And as such, also contributes to:
This PR will require some upstream changes, which are captured by:
get-codeowners.ps1to work with the updatedRetrieveCodeOwnersexecutable + add some tests; make assorted refactorings #5103Additional changes
CodeOwnersParser; replaced withConsole.OutandConsole.Error. This addresses the following comment:*in them - such paths are malformed anyway (at least on Windows).Implementation notes
This PR leverages
Microsoft.Extensions.FileSystemGlobbing.Doc: https://learn.microsoft.com/en-us/dotnet/core/extensions/file-globbing