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

Comment on an issue when a PR is created to fix it #77

Open
not-an-aardvark opened this issue Jul 27, 2018 · 8 comments
Open

Comment on an issue when a PR is created to fix it #77

not-an-aardvark opened this issue Jul 27, 2018 · 8 comments

Comments

@not-an-aardvark
Copy link
Member

As suggested here, this would allow people who follow the issue to also keep up with discussion that moves to a PR. This would probably work by having the bot listen for PRs that are created/edited to have an issue number in the title, and leave a comment on the corresponding issue.

We might also want to have some safeguard for preventing abuse if someone creates a PR with a title like #1 #2 #3 #4 #5 #6 #7 ... with the intent of having the bot create a bunch of spam comments.

@ljharb
Copy link

ljharb commented Jul 27, 2018

Also, the bot need not create a comment unless it's never been directly referenced before - once it's been referenced, I think it's safe to assume that interested parties can find it and subscribe to it.

@not-an-aardvark
Copy link
Member Author

The bot doesn't have a database, so remembering that type of thing might be tricky. I suppose it could search through its old comments on any given issue.

I assume we would want the bot to leave multiple comments on an issue if there are multiple PRs opened for it, right? Sometimes a PR gets initially created and then abandoned later.

@ljharb
Copy link

ljharb commented Jul 27, 2018

Yes - the goal is to ensure that by subscribing to the issue, I won't miss any relevant pull requests that might show up later.

@fatcerberus
Copy link

Worth noting that if the original issue number is referenced in the PR description GitHub will automatically create a crosslink in the issue thread. I’m not sure if that generates an email notification, though.

On a side note I’ve found GitHub subscriptions to be unreliable - sometimes it just fails to send out a notification altogether, even for issues I’ve manually subscribed to.

@ljharb
Copy link

ljharb commented Jul 27, 2018

It does not generate a notification.

I’ve never seen Github fail to notify (note that i don’t care about emails, i care about it appearing in my notifications list on the website)

@platinumazure
Copy link
Member

GitHub issues currently show "May be fixed by #nnnn" when there is at least one PR with "fixes"/"closes" in its commit message.

Additionally, this has been open for over a year with no movement.

Are there any objections if I close this soon? Is this requested feature still needed?

@ljharb
Copy link

ljharb commented Oct 25, 2019

Yes, it’s still needed - the new metadata still does not generate a notification.

@platinumazure
Copy link
Member

PR would be welcome in that case.

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

No branches or pull requests

4 participants