-
Notifications
You must be signed in to change notification settings - Fork 48
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
Team does not belong to organization #121
Comments
Hi! Thanks for letting me know! Root causeThis was a side effect of #78 (comment) 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:
Corrective and Preventative MeasuresTo fix that problem, I created this PR: #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. Additional Corrective and Preventative MeasuresIn 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:
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 |
I will release it in a moment 👍 |
@foolioo please let me know if this issue was fixed for you in |
@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
* @org/team
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
The text was updated successfully, but these errors were encountered: