GithubHelp home page GithubHelp logo

isabella232 / cr-update-reviewers Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joyent/cr-update-reviewers

0.0 0.0 0.0 13 KB

update a commit message in Gerrit based on approvals

License: MIT License

Makefile 44.77% JavaScript 55.23%

cr-update-reviewers's Introduction

This repository has a tool called cr-update-reviewers that takes a Gerrit change on cr.joyent.us and updates the commit message for that change based on the approvals already there. It will create a new patchset for the change with the updated commit message.

Install with:

$ npm install -g git+https://github.com/joyent/cr-update-reviewers

Or clone this repo and build with make or npm install.

Here's an example of using it:

$ ./bin/cr-update-reviewers 684
Change 684 current commit message:
----------------------------------------------
joyent/node-fast#2 update dependencies to support Node v4
----------------------------------------------

+1s found in Gerrit:
    Code-Review          Brian Bennett <[email protected]>
    Integration-Approval Alex Wilson <[email protected]>

Suggested commit message:
------------------------------------------------
joyent/node-fast#2 update dependencies to support Node v4
Reviewed by: Brian Bennett <[email protected]>
Approved by: Alex Wilson <[email protected]>
------------------------------------------------

Create a new patchset with the suggested commit message? (y/[n]) 
Cloning joyent/node-fast to /var/tmp/cr-update-reviewers.32942.
Fetching patchset reference refs/changes/84/684/1.
Checking out patchset reference refs/changes/84/684/1.
Amending commit.
Pushing new patchset: git push origin HEAD:refs/changes/684
remote: Processing changes: updated: 1, refs: 1, done            
remote: (W) 2f8b6fe: no files changed, message updated        
remote: 
remote: Updated Changes:        
remote:   https://cr.joyent.us/684 joyent/node-fast#2 update dependencies to support Node v4 Reviewed by: Brian ...        
remote: 
To git+ssh://cr.joyent.us/joyent/node-fast.git
 * [new branch]      HEAD -> refs/changes/684

Cleaning up: rm -rf /var/tmp/cr-update-reviewers.32942

Note that there's a bug that sometimes causes it to hang on input even after you've answered the question. If you hit enter again, it should proceed.

cr-update-reviewers's People

Contributors

davepacheco avatar kodykantor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.