Closed electriquo closed 2 years ago
Hi!
Thanks for letting me know!
This was a side effect of https://github.com/mszostok/codeowners-validator/pull/78#issuecomment-941445181 where not only team was normalized. Unfortunately, it was not detected by the integration test, as I used only the gh-codeowners organization. As you can see, it's all lower-case.
To reproduce the problem, I created a new organization GitHubCODEOWNERS and executed the v0.7 against it and ran into the same problem: https://github.com/GitHubCODEOWNERS/codeowners-samples/runs/5173200010?check_suite_focus=true
I tested that further to check whether GitHub also is case-insensitive for Organization names:
To fix that problem, I created this PR: https://github.com/mszostok/codeowners-validator/pull/122 and tested also against a newly created organization: https://github.com/GitHubCODEOWNERS/codeowners-samples/runs/5173279973?check_suite_focus=true
I also added new integration tests against new GitHubCODEOWNERS organization to ensure no regression in the future.
In this case it's a bit of revers engineering as I don't have access to GitHub code which is responsible for assigning owners. As a result, I will need to create yet another e2e test that will be executed periodically to:
@GiTHubCodeOwners/A-TeAm
is specified and check whether GitHub is still case-insensitive and assigns @GitHubCodeowners/a-team
properly.In this way, I will be notified when GitHub will change its behavior and I will be able to release a new version that will match a changed functionality.
@mszostok THANKS A MILLION any idea when you will release a new version with the fix?
I will release it in a moment 👍
@foolioo please let me know if this issue was fixed for you in mszostok/codeowners-validator@v0.7.1
🙇 then I will close this issue.
@mszostok version 0.7.1 works for me
Description
Upgrading to version 0.7.0 makes the Github action fail, whereas version 0.6.0 passed. The action is configured as follows
With a CODEOWNERS file that looks like so
Expected result
The action should not fail
Actual result
The action fails with the following message
Steps to reproduce
Since the issue relates to Github organization, unable to share a repository for reproduction
Troubleshooting
Is this a bug in version 0.7.0? Is something missing in the action configuration?
Thank you for your work