Skip to content

Add link to rfcbot post from original post #222

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

Open
RalfJung opened this issue Jun 21, 2018 · 9 comments
Open

Add link to rfcbot post from original post #222

RalfJung opened this issue Jun 21, 2018 · 9 comments

Comments

@RalfJung
Copy link
Member

In a long RFC/tracking issue, it can be really hard to find the post where rfcbot keeps track of checkboxes and concerns. Would it be possible for rfcbot to edit the original post of that issue/PR and add a link to the rfcbot post, so that it always just is one click away from the top of the page? That would make finding that post (and, in fact, finding out if that post even exists already) much easier.

To make things worse, GitHub sometimes folds the rfcbot post into the hidden comments, and then links which go directly to that post fail because it is not loaded. Is there a place to ask GitHub to please make it so that links directly to posts (using the anchor) keep working for hidden posts, e.g. by automatically un-hiding the post when it is referenced by the URL anchor? GitLab does something like that successfully for PRs, so it's certainly possible.

@Centril
Copy link
Contributor

Centril commented Jun 21, 2018

cc #213

@dwijnand
Copy link
Member

cc #213

👍 To workaround the comment folding issue, how about rfcbot posts a comment when the PR is opened, and then when someone requests a "fcp merge" perhaps rfcbot could (1) edit its initial comment (comment number 2 of the thread) with the concerns and checkboxes, (2) and post a comment linking to that comment.

WDYT? Would a pull request along these lines be of interest?

More generally, are pull requests welcome to rfcbot or is it in low maintenance mode at the moment?

@Centril
Copy link
Contributor

Centril commented Jan 12, 2019

@dwijnand What you describe is basically what I had in mind but I never got around to implementing it.

A PR(s) would be nice, me or anp can review. :)

@Centril
Copy link
Contributor

Centril commented Jan 12, 2019

One drawback of this approach is however that if rfcbot proposals get cancelled and then changed (e.g. first merge then close) then you lose the history of the merge comment (they are distinct today).

@RalfJung
Copy link
Member Author

Doesn't GH allow seeing the edit history nowadays?

Alternatively, the bot could keep old proposals on a folded block at the bottom of the post.

@dwijnand
Copy link
Member

Let's rely on comment history for now and defer snapshotting the previous fcp to further down the road.

I'll try and give this a shot.

@dwijnand
Copy link
Member

Also, care must be taken for already ongoing RFCs.

@Centril
Copy link
Contributor

Centril commented Jan 12, 2019

Yeah GH history makes sense; I think you'll want to be extra careful with the DB :)

@dwijnand
Copy link
Member

(Btw, probably not going to do this one, at least any time soon, given the care it needs.)

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