Skip to content

Swap codeowners parsing order#222

Merged
trunk-io[bot] merged 1 commit intomainfrom
max/swap-codeowners-parsing-order
Dec 12, 2024
Merged

Swap codeowners parsing order#222
trunk-io[bot] merged 1 commit intomainfrom
max/swap-codeowners-parsing-order

Conversation

@max-trunk
Copy link
Copy Markdown
Contributor

Modifies the codeowners parsing logic to first trying parsing a file as a GitLab codeowners file, else try parsing as a GitHub codeowners file.

In integrating with the ETL, we observed GitLab codeowners files being successfully parsed by the GitHub parser, and thus yielding incorrect results with respect to associating owners with a test file. Swapping the order here fixes that. GitLab codeowners syntax is generally a superset of GitHub syntax, so it should be ok if a GitHub codeowners file gets parsed as a GitLab file by our parser so long as it yields the correct results - and it has in local ETL testing.

The relevant diff here is small. The overall diff is inflated due to a test file rename

@trunk-io
Copy link
Copy Markdown

trunk-io bot commented Dec 12, 2024

😎 Merged successfully - details.

@trunk-staging-io
Copy link
Copy Markdown

trunk-staging-io bot commented Dec 12, 2024

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants