Coder Social home page Coder Social logo

bitbucket_pr's Introduction

BitbucketPr

Gem is useful to submit pull-requests to Attlasian Bitbucket through CLI command if you don't like to open new browser tab

Installation

$ gem install bitbucket_pr

Aliasing

This is optional you can always use $ bitbucket_pr as an executable, but we'll be using $ git pr instead.

Create bash executable named git-pr with following snippet:

#!/bin/bash
bitbucket_pr "$@"

and add this to your path. On macOS you can place this in ~/bin

You might also need to

$ chmod +x ~/bin/git-pr

Usage

source destination and title are required options.

username password and repository name are also required, but can be saved for future.

Minimal setup

$ git pr [source] [destination] -t[title] -a[username:password]`

example:

$ git pr middleware-patch master -rdachinat/rack_pg -adachinat:3Edm$51dd2 -t'Patching a middleware'

you can use --title="Patching a middelware" --auth="username:password" style if you want

Save credentials and repository name

Warning: this will create file containing your encrypted password. Use at your own risks!
$ git pr configure -u[username] -p[password] -r[repository_name]

Repository name has to be in username/repository format

example:

$ git pr configure -udachinat -p3Edm$51dd2 -rdachinat/rack_pg

Once you have credentials stored, you can skip -r and -a options

More options

  • -d --description - Optional PR description
  • --reviewers - Optional reviewer username array (i.e.: --reviewers="reviewer1, reviewer2")
  • -c --close - Optional close flag / close branch after PR is merged or not

Help

You can always use git pr help for further help 😄

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/dachinat/bitbucket_pr. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the BitbucketPr project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

bitbucket_pr's People

Contributors

dachinat avatar

Stargazers

 avatar

Watchers

 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.