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

Bug in config infrastructure #41

Open
astrofrog opened this issue Nov 26, 2018 · 7 comments
Open

Bug in config infrastructure #41

astrofrog opened this issue Nov 26, 2018 · 7 comments
Labels
bug Something isn't working

Comments

@astrofrog
Copy link
Collaborator

I haven't had a chance to investigate yet, but there is an issue with the following calls, e.g.:

    mc_config = pr_handler.get_config_value("milestones", {})

Basically this looks like it tries to get the config from the master branch of the repository, but we need to get it from the pull request since we want e.g. changes in config in pull requests to be tested immediately.

@Cadair
Copy link
Member

Cadair commented Nov 26, 2018

fwiw, it's very explicitly reading the config from the master branch for the circleci checker, or else anyone who opens a PR can control the statuses on that PR. I assume this is also true for the changelog checker. Perhaps it should only read the config from the PR branch if that person has merge rights?

@astrofrog
Copy link
Collaborator Author

Yeah, I think we do need to have a way for it to work from the PR head as sometimes it helps fix the config if needed, but I see your point. I wonder if the GitHub API includes information about commit rights in the JSON for a PR - like the fact it says 'Member' for both of us on our comments here.

@astrofrog
Copy link
Collaborator Author

It could also be a combination of who opened the PR and if a label is present

@bsipocz
Copy link
Member

bsipocz commented Nov 26, 2018

👍 for doing this if possible using a combination of "white listed" accounts (who control the bot) in addition to a label (that is controlled by repo maintainers).

@Cadair
Copy link
Member

Cadair commented Nov 26, 2018

Actually why not just a label to enable it? People who can add labels have to have sufficient rights on github.

@astrofrog
Copy link
Collaborator Author

Yes, good point!

@pllim
Copy link
Contributor

pllim commented Dec 7, 2018

Is this what you mean by the bug?

RuntimeError: Working outside of application context.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants