Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Fix CODEOWNERS failure due to hardcoded "master" #1128

Merged
merged 2 commits into from
Jan 16, 2021

Conversation

quicksnap
Copy link
Contributor

@quicksnap quicksnap commented Jan 15, 2021

Our repository does not use master as the mainline for bors. Bors is erroneously passing the codeowners check, and in the logs it would get a 404:

[error] GET https://api.github.com/repositories/123456/contents/.github/CODEOWNERS -> 404 (127.281 ms)

I have not tested this PR. I do not know Elixir, but this seems to be a good starting point for a change. An improvement could be that if use_codeowners is true and the http request fails, the codeowners check should fail.

Hopefully this is a good jumping off point. My coworker knows Elixir and has contributed in the past, so maybe they can get this PR into a better state if it's not acceptable as-is :)

Our repository does not use `master` as the mainline for bors. Bors would erroneously pass the codeowners check, and in the logs it would get a 404: 
```
[error] GET https://api.github.com/repositories/123456/contents/.github/CODEOWNERS -> 404 (127.281 ms)
```

*I have not tested this PR*. I do not know Elixir, but this seems to be a good starting point for a change. And improvement could be to fail if `use_codeowners` is true and the http request fails.

Hopefully this is a good jumping off point. My coworker knows Elixir and has contributed in the past, so maybe they can get this PR into a better state if it's not acceptable as-is :)
@quicksnap
Copy link
Contributor Author

Seems like this change has raised some CI hackles ;)

Basically, the old behavior was to use the code owners of the base branch,
which I'm pretty sure is also what GitHub does.
Copy link
Member

@notriddle notriddle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bors r+

@notriddle
Copy link
Member

Not hard to fix the problem, now that you've pointed it out. Thanks!

@bors
Copy link
Contributor

bors bot commented Jan 16, 2021

@bors bors bot merged commit 1fe3e32 into bors-ng:master Jan 16, 2021
notriddle added a commit to bors-ng/bors-ng.github.io that referenced this pull request Feb 1, 2021
Add @quicksnap to new contributors list.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants