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

Suggestion: have branch-diff check commit comments for PR metadata #16

Open
gibfahn opened this issue Oct 9, 2017 · 7 comments
Open

Comments

@gibfahn
Copy link
Member

gibfahn commented Oct 9, 2017

We get problems like this: nodejs/node@75318e4#commitcomment-24788304 all the time. The solution we have is to put the PR-URL (or other relevant metadata) in a comment on the commit.

If branch-diff could check this it would alleviate the problem for LTS maintainers.

I was going to have a look at implementing this but never got around to it. Thought I'd put this here in case anyone else has the time and inclination.

cc/ @MylesBorins @rvagg

@MylesBorins
Copy link
Member

@gibfahn I've thought about this a number of times myself.

I believe this would need to be implemented in commit-stream, and branch-diff would inherit the change

@rvagg
Copy link
Member

rvagg commented Oct 16, 2017

We could do it at any point in the chain I think. Given that commit-stream is a fairly dumb stream that doesn't do network at the moment it might make most sense to do it in changelog-maker where we do a lot of GitHub fetching already. When a commit comes in from commit-stream without a prUrl we could call out to the comments on the commit. Unfortunately I don't have any existing libraries to get commit comments, I've never needed that before. I've got issues and pulls. It looks like the API for this hangs off "Repositories" so it could go here pretty simply I think (the comments & pagination code is shared across all of these libraries and should be straightforward to extend for this).

/cc @ralphtheninja FYI

@gibfahn
Copy link
Member Author

gibfahn commented Jan 3, 2018

@ralphtheninja @rvagg what's the status of this? Anything I could do to help out?

@ralphtheninja
Copy link

@gibfahn ghrepos has support for retrieving commit comments so I'm guessing it would be a matter of tweaking changelog-maker.

@MylesBorins
Copy link
Member

@gibfahn should this move to branch-diff?

@gibfahn
Copy link
Member Author

gibfahn commented Feb 19, 2018

@gibfahn should this move to branch-diff?

Sounds like it needs coordination across multiple repos, so I'd prefer to leave this open for now.

@MylesBorins MylesBorins transferred this issue from nodejs/Release Dec 13, 2018
@MylesBorins MylesBorins transferred this issue from nodejs/citgm Dec 13, 2018
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