Skip to content

PSA: custom git command for landing PRs #18197

Description

@joyeecheung

node-core-utils v1.9.0 has been released with a custom git command called git-node, which can fetch a PR, check its state, apply the patches, generate the necessary metadata, amend the commit message, and verify the commits.

To land a PR with a single commit you can usually just go with pressing enter until it's complete. To land a PR with multiple commits you can use the command in conjunction with git rebase and friends.

Watch the demos:

  1. Landing multiple commits: https://asciinema.org/a/148627
  2. Landing one commit: https://asciinema.org/a/157445

This has just gone out with little tests (WIP), although I have been using it from my branch for more than two months and it seems to be working pretty well. Would love to have some feedback and see how it works in the wild!

Activity

  1. added
    metaIssues and PRs related to the general management of the project.
    on Jan 17, 2018
  2. fhinkel commented on Jan 17, 2018

    @fhinkel
    Contributor

    Thanks! Does it include the checks from core-validate-commit?

  3. joyeecheung commented on Jan 17, 2018

    @joyeecheung
    MemberAuthor

    @fhinkel "git node land --final" uses core-validate-commit so that has to be installed (still trying to figure out how to bundle it inside)

  4. benjamingr commented on Jan 17, 2018

    @benjamingr
    Member

    I think this is definitely worth a @nodejs/collaborators ping - would probably save quite some time :)

  5. gibfahn commented on Jan 17, 2018

    @gibfahn
    Member

    @fhinkel "git node land --final" uses core-validate-commit so that has to be installed (still trying to figure out how to bundle it inside)

    Could we just make core-validate-commit a dependency of node-core-utils (and maybe also a part of the git repo)?

  6. maclover7 commented on Jan 18, 2018

    @maclover7
    Contributor

    Very neat tool. I had built my own PR lander tool (https://github.com/maclover7/committer-tools-rb), essentially does the same thing. Really happy to see we are working on automating away lots of stuff these days :)

  7. ronkorving commented on Jan 18, 2018

    @ronkorving
    Contributor

    This is great!
    Would be good to document this in https://github.com/nodejs/node/blob/master/COLLABORATOR_GUIDE.md I reckon?

  8. mcollina commented on Jan 18, 2018

    @mcollina
    SponsorMember

    neat! good work!!

  9. targos commented on Feb 23, 2018

    @targos
    Member

    Great tool! I use it every time now :)

    Should we close this issue or keep it open as a reminder to update the collaborator guide?

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

    metaIssues and PRs related to the general management of the project.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions