Skip to content
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

fixing multiple issues #28

Closed
wants to merge 21 commits into from
Closed

fixing multiple issues #28

wants to merge 21 commits into from

Conversation

rwese
Copy link

@rwese rwese commented May 31, 2024

fixes #21, #20, #19, #24, #25

schlehlein and others added 20 commits June 13, 2023 14:37
This commit updates file parsing so that lines that contain solely
whitespace (as defined by by Unicode) are ignored. It's fairly common
for people to accidentally create CODEOWNERS files with lines containing
solely whitespace, and as it's semantically meaningless, it's better to
ignore them then raise an error.
While generally disallowed from public github usernames, an underscore
is a key part of github EMU usernames. See
https://docs.github.com/en/enterprise-cloud@latest/admin/identity-and-access-management/understanding-iam-for-enterprises/about-enterprise-managed-users
for more information.
Add `_` as allowed character in usernameRegexp
Update file parsing to handle lines with only whitespace.
integrate haveachin changes
this change adds support for sections, and their inheritance, which are
used in gitlab

what this does not support, yet, is approval configuration
[SECTION][:approval_count:]
or optional marking approval as optional
- support spaces in section names
- adds optional ^ character for sections
parse.go Outdated Show resolved Hide resolved
parse.go Outdated Show resolved Hide resolved
parse.go Outdated Show resolved Hide resolved
@hmarr
Copy link
Owner

hmarr commented Jun 25, 2024

Hi @rwese, thanks for submitting this. I've (separately) merged several of the PRs that you'd merged into this one, but it looks like this also contains some other useful changes — in particular, adding optional support for GitLab sections via WithSectionSupport. If you'd be interested in submitting a PR with just that change I'd happily merge it.

@hmarr hmarr closed this Jun 25, 2024
@rwese
Copy link
Author

rwese commented Jun 26, 2024

Will do, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] Codeowner files with Giltlab nested teams not parsed properly
4 participants