codeowners
codeowners copied to clipboard
Feature Request: Flag to ignore files in .gitignore
A great feature would be having the option to filter out all the files that are included in the .gitignore.
Something like:
codeowners audit --unowned --no-ignored
We're looking to adopt this as part of a pre-commit workflow and we'd need this for things to work appropriately. Would love to see this one added @beaugunderson !
will look at this tonight—would also love some maintenance help if either of you are up for it!
On Mon, Jul 15 2024 at 17:21, Vincent Pizzo @.***> wrote:
We're looking to adopt this as part of a pre-commit workflow and we'd need this for things to work appropriately. Would love to see this one added @beaugunderson https://github.com/beaugunderson !
— Reply to this email directly, view it on GitHub https://github.com/beaugunderson/codeowners/issues/38#issuecomment-2229535186, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAPCX7L5F6FBSVY5QO4HKDZMRDPNAVCNFSM6AAAAABK5MPGFGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMRZGUZTKMJYGY . You are receiving this because you were mentioned.Message ID: @.***>
@vincentjames501 can you pull this PR locally, npm link
, and run it against your repo to see if it works for you? https://github.com/beaugunderson/codeowners/pull/43
I implemented it so that .gitignore
is used by default and you have to specify a flag if you want it NOT used
tested #43 and it works if it is a single .gitignore
at the root - i don't think it currently takes into account nested .gitignore files though^