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

Implement basic section support #26

Closed
wants to merge 9 commits into from

Conversation

rwese
Copy link

@rwese rwese commented May 29, 2024

This PR also includes the PRs #19, #24, #25 since I considered them useful.

Todo's are support for approval configuration, which I am not in immediate need of.

I haven't put in more time than needed to get it working without breaking existing tests.

Sorry I haven't implemented a toggle for the support, yet. Easiest thing would be to add another parser package and have an interface to work against.

schlehlein and others added 9 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
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.

4 participants