Skip to main content

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

Project description

Create PullRequest, view activities/discussion from command line.

https://img.shields.io/badge/pypi-v0.1-green.svg https://img.shields.io/codecov/c/github/laixintao/git-ext.svg https://travis-ci.org/laixintao/git-ext.svg?branch=master

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

https://asciinema.org/a/gWZNPXthrS9gpeDOaf5FTd0ak.png

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

git-ext-0.6.2.tar.gz (10.2 kB view details)

Uploaded Source

File details

Details for the file git-ext-0.6.2.tar.gz.

File metadata

  • Download URL: git-ext-0.6.2.tar.gz
  • Upload date:
  • Size: 10.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/39.1.0 requests-toolbelt/0.8.0 tqdm/4.23.3 CPython/2.7.10

File hashes

Hashes for git-ext-0.6.2.tar.gz
Algorithm Hash digest
SHA256 b8236003c0cf3ca8b2d16a5d635ad63ebfcb0b0223b693c903f15a30d3008b10
MD5 8baeb8ff5da1eacc20314e296a04b1d4
BLAKE2b-256 096b0262ab9edb045974c441547ba409ea2cc1ffdd328890de8cfb678b83dabd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page