Open
Description
Opening an issue per discussion at #197 (diff).
To save the rfc-pushers some time, it would be nice to auto-merge RFCs that are FFCPed (finished-final-comment-period).
This is a complicated process which involves these steps executed (by a human right now..) in order:
- Find out which team(s) the RFC falls under.
- Fetch RFC pull number (trivial).
- Start a tracking issue using a standard template defined here. One example issue: Tracking issue for RFC 2046, label-break-value rust#48594
- Apply the labels:
C-tracking-issue
,B-RFC-approved
- For each
team
the RFC falls under, apply a labelT-team
. - Substitute mentoring instructions based on team.
- For
T-lang
, mentoring instructions come fromT-compiler
.
- For
- Find the PR
title
of the RFC and substituteXXX
inThis is a tracking issue for the RFC "XXX"
with the title.- But first apply some heuristics removing prefixes such as
RFC:
(case insensitive). This also applies to similar suffixes.
- But first apply some heuristics removing prefixes such as
- Set the issue title to
Tracking issue for RFC <number>, <title>
where<title>
is dependent on step 3.4. - Find all unresolved questions from the RFC and add them to the tracking issue text.
- This will be a bit difficult and will require some heuristics based on common formatting in RFCs.
- Apply the labels:
- Fetch the issue number of the newly created tracking issue.
- Merge the PR into master
- Add a commit substituting
0000
in the file name of the committed file with<number>
.- The commit should be named
RFC <number>
. - It should also adjust the links to the tracking issue and the RFC PR.
- The commit should be named
- Add a comment on the PR saying:
**Huzzah!** This RFC is **merged**! Tracking issue: <issue_link>
- Find the [Rendered] link in the PR summary / original post and change the link to the new location of the file (in the master branch).
- Also add a link to the tracking issue.
- This will also require some heuristics.
This procedure has multiple points of failure for a bot. If a failure does happen, the bot should stop immediately and post a comment on the RFC saying "automated merge procedure failed, please merge manually."
Who will implement this? I will (at some point).
Metadata
Metadata
Assignees
Labels
No labels