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

Automate the issue creation for PR that don't refer to any existing issue. #25

Closed
Mariatta opened this issue Feb 11, 2017 · 4 comments
Closed

Comments

@Mariatta
Copy link
Member

Brought up by @ezio-melotti in python/devguide#104 :)

@ezio-melotti
Copy link
Member

If the great majority of PRs refer to a bpo issue, we might just make this completely automated: i.e. if a new PR doesn't refer to any bpo issue, one will be created.

If however people forget to refer to bpo issues or do it wrong, this will end up creating extra issues that we will have to remove manually, so we can't completely automate this.

One option might be to create a bot (or something else), that detects new PRs that are not linked to any bpo issue, and adds a message asking if the user wants to create the issue, with a link to the "new issue" page (I'm assuming there's no way to add a "create issue" button that sends a request via POST, so we are limited to GET). It's currently possible to pass the title and the body of the message via GET (assuming the message is not too long), but not the PR number. If updating the PR title retriggers the webhook, users can then submit a PR, click the "new issue" link provided by the bot, create a new issue, and update the PR title in order to link it to the issue.

@warsaw
Copy link
Member

warsaw commented Feb 25, 2017 via email

@brettcannon
Copy link
Member

GH-28 ties into this. If we have a bot that always leaves a comment upon PR creation which is either a link to bugs.python.org or a mention that there's no bug and how to create one then this should cover this. Then the bot can automatically add links in the future per PR comments or title changes to pick up when people add issue references.

@brettcannon
Copy link
Member

Closing this thanks to Bedevere launching.

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

4 participants