Skip to content

laixintao/git-ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-ext

Create PullRequest, view activities/discussion from command line.

A git extension that allows you submit pullrequests from command line.

Current support:

  • gitlab
  • bitbucket

To support:

  • github

install

Use pip to install.:

pip install git-ext

Then run init-git-ext command to write your bitbucket account infomation to ~/.git_ext.yml(Pullrequests need account info with HTTP BASIC AUTH.:

init-git-ext

Or edit ~/.git_ext.yml by hand: :

bitbucket:
  email: ''
  password: ''
gitlab:
  domain: ""
  private_token: ""
git_ext:
  logging: {format: '%(name)s - %(message)s', level: DEBUG}

Optional

You can add a git alias if you are lazy like me :):

git config --global alias.pr pullrequest  

usage

$ git pullrequest create test_b master
Reviewers(start with @):
201 Created!
#2 This is your commit title.[test_b->master]  by boson_laixintao(just now)
Reviewers:

$ git pullrequest list
#2 This is your commit title.[test_b->master]  by boson_laixintao(just now)

$ git pullrequest
Usage: git-pullrequests [OPTIONS] COMMAND [ARGS]...

Options:
  --help  Show this message and exit.

Commands:
  activity  Show a pr's activity, display lastest 10...
  create
  list

Develop

Export a enviroment to see the logs:

export GITEXT=debug

Licenses

GPLv3

About

🛠 A git extension that allows you submit pullrequests from command line.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages