Skip to content

Consider using a prefix in the title of backport PRs #23

Description

@berkerpeksag

Can we use a prefix like [backport to X.Y] or [3.6] for backport PRs? For example:

[backport to X.Y] bpo-1234: Fix comment in tokenizer.c

This way we can easily see which PRs are backports on GitHub and we can also set appropriate email filters.

Activity

  1. brettcannon commented on Feb 13, 2017

    @brettcannon
    Member

    I think appropriate labels would be better, otherwise we have to remember what the format is while a label is just right there and labels are more searchable.

    Since we have "backport to 3.6" we could add "cherry-pick for 3.6" for PRs which are an actual backport. Does that sound reasonable?

  2. berkerpeksag commented on Feb 13, 2017

    @berkerpeksag
    MemberAuthor

    "cherry-pick for 3.6" sounds good to me. I don't know how can I create email filters for labels though :)

  3. brettcannon commented on Feb 13, 2017

    @brettcannon
    Member

    Ah, that's why you want the prefix in the title. 😉 I've gone ahead and added the appropriate labels so we can give them a try and see how it works out.

  4. Mariatta commented on Feb 13, 2017

    @Mariatta
    Member

    Can we have backport pending label, to identify that the PR should be backported but it hasn't happened yet?

  5. Mariatta commented on Feb 13, 2017

    @Mariatta
    Member

    Nvm just read your email to python-dev. So backport to X.Y is to be removed once cherry-pick for X.Y PR is created.

  6. Mariatta commented on Feb 14, 2017

    @Mariatta
    Member

    🤔 I realize that @berkerpeksag still wants to be able to filter out the backport emails.
    Is [backport to X.Y] still the desired prefix in this case? :)

  7. brettcannon commented on Feb 14, 2017

    @brettcannon
    Member

    The way I read "backport to 3.6" is this needs to be backported to 3.6, not that it's a backport for 3.6. So if we do decide to drop the labels and go with title prefixes I would argue for [backport for 3.6] or [cherry-pick for 3.6] or [cp for 3.6].

  8. berkerpeksag commented on Feb 14, 2017

    @berkerpeksag
    MemberAuthor

    All of your suggestions look good to me, @brettcannon. The reason I prefer title prefixes is that it's easy to notice backport PRs without using GitHub UI.

    See the attached screenshot. Both of them backport PRs (for 3.5 and 3.6 branches) with almost same title so it's a little bit hard to notice the difference :)

    backport-prs

  9. brettcannon commented on Feb 14, 2017

    @brettcannon
    Member

    Then try both labels and prefix for a month and see which one ends up being useful. And to unify with the labels let's go with [cherry-pick for 3.6].

  10. brettcannon commented on Feb 14, 2017

    @brettcannon
    Member

    Actually could GH-24 take care of this by including the labels in the title automatically?

  11. berkerpeksag commented on Feb 14, 2017

    @berkerpeksag
    MemberAuthor

    I might be wrong, but GH-24 is about sending an email to python-checkins when a PR ws merged.

  12. brettcannon commented on Feb 14, 2017

    @brettcannon
    Member

    And so you want an email at creation instead?

  13. ncoghlan commented on Feb 18, 2017

    @ncoghlan
    Contributor

    Another nice thing about issue title notations, is that then a bot can automatically add the label :)

    The two prefixes I've seen so far are:

    BackportXY
    [cherry-pick for X.Y]
    

    Both of those seem really wordy to me, and I think a simple [X.Y] should suffice

  14. Mariatta commented on Mar 18, 2017

    @Mariatta
    Member

    This is already recommended in this section of the devguide :)

  15. brettcannon commented on Mar 20, 2017

    @brettcannon
    Member

    Since we are now documenting this as a thing to do, I'm closing this (I don't think we can drop the label due to the fact that search for [3.6] does not turn up what you expect; although if people start typing out [cherry-pick for 3.6] we might be able to drop the labels.)

  16. methane commented on Mar 21, 2017

    @methane
    Member

    As my understanding, [3.6] prefix is only for pull request title, not for commit message.
    Am I right?

  17. berkerpeksag commented on Mar 21, 2017

    @berkerpeksag
    MemberAuthor

    As my understanding, [3.6] prefix is only for pull request title, not for commit message.

    Correct. I use it in only PR titles, but other projects use it in commit messages too. See Django for example.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions