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

Changelog bot to figure out when changelog is not needed #64

Open
bsipocz opened this issue Dec 14, 2018 · 6 comments
Open

Changelog bot to figure out when changelog is not needed #64

bsipocz opened this issue Dec 14, 2018 · 6 comments

Comments

@bsipocz
Copy link
Member

bsipocz commented Dec 14, 2018

There a few easy cases when the bot could figure out by itself that a changelog is not needed. E.g documentation only changes, changes to the CI setup, etc.

Con: our release scripts are also rely on having the "no-changelog-entry-needed" labels, so it would only work with the bot if it were to add the label (in that case, the automated decision could be super easily overridden by removing the label).

@Cadair
Copy link
Member

Cadair commented Dec 14, 2018

There is no reason why the bot couldn't set the label. I am not sure off the top of my head how we could make the bot remember that it set the label before and not just set it again next time it runs. Currently each run of the bot is stateless, getting just what it needs from the GitHub API. I don't know off the top of my head if you can query GH for the labels that used to be on a PR.

@bsipocz
Copy link
Member Author

bsipocz commented Dec 14, 2018

ahh, good points.
maybe then we could just tell it to remove in a comment? that will stay on the PR so the bot will notice next time again?

@Cadair
Copy link
Member

Cadair commented Dec 15, 2018

That should work. Would need a function to scan all the comments for commands but that sounds like a very handy thing to have anyway.

@pllim
Copy link
Contributor

pllim commented Dec 23, 2018

I looked at this while on the plane and decided it is best to roll out something specific to the core repo first: astropy/astropy-bot#100

To make this generic might be challenging, as all the repositories that use this might have their own definitions of what constitute of a code change that needs changelog or otherwise.

Re: There is no reason why the bot couldn't set the label -- I thought of one reason not to do this. The PR might evolve into a state that needs a changelog after all. When that happens and the bot skips because it set the label before, then this becomes a bug and not a feature.

@bsipocz
Copy link
Member Author

bsipocz commented Dec 24, 2018

Re: There is no reason why the bot couldn't set the label -- I thought of one reason not to do this. The PR might evolve into a state that needs a changelog after all. When that happens and the bot skips because it set the label before, then this becomes a bug and not a feature.

but that's when the comment comes into play, isn't it?

@pllim
Copy link
Contributor

pllim commented Dec 24, 2018

@bsipocz , do you mean that once the bot set that label to skip check, only a manual intervention and re-enable it again even if it is obvious from file listing that it should start checking again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants