Skip to content

Commit

Permalink
Merge pull request #33 from jehiah/convert_to_go_33
Browse files Browse the repository at this point in the history
Rewrite in Go
  • Loading branch information
jehiah authored Jun 26, 2017
2 parents 7531b90 + ae1947e commit 5ca44a6
Show file tree
Hide file tree
Showing 14 changed files with 849 additions and 451 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
vendor
pkg
bin
13 changes: 13 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
language: go
go:
- 1.8
install:
- go get github.com/constabulary/gb/...
- ./vendor.sh
script:
- gb test
- gb build
sudo: false
notifications:
email: false

7 changes: 7 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Copyright 2017 Jehiah Czebotar

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
git open-pull
-------------

converts creates a pull request from the command line, or attaches a branch to an open github issue converting it into a pull request.

### USAGE

$ git open-pull

### CONFIGURATION

If available, git-open-pull will use the following config values. When not available
They will be requested on the command line. Note storing your git password this way is
not secure.

[github]
user = ....
[gitOpenPull]
token = ..... # GitHub Access Token generated from https://github.com/settings/tokens
baseAccount = ....
baseRepo = .....
base = master
# Allow maintainers of the upstream repo to modify this branch
# https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/
maintainersCanModify = true | false (default: true)
[core]
editor = /usr/bin/vi

Hooks. git-open-pull provides the ability to modify an issue template (preProcess or postProcess) or to be notified after a PR is created (callback). pre/post process commands are executed with the first argument continaing a filename with the issue template. Callback is executed with the first argument containing the filename of a file with the json results from the GitHub api of PR details

[gitOpenPull]
preProcess = /path/to/exe
postProcess = /path/to/exe
callback = /path/to/exe

### ABOUT

Because the ideal workflow is `issue -> branch -> pull request` this script
takes a github issue and turns it into a pull request based on your branch
against master in the integration account


### Building From Source

This project uses [gb](https://getgb.io/) the Go Build tool, and has a `vendor.sh` to manage dependencies.

```
go get github.com/constabulary/gb/...
./vendor.sh
gb build
```
Loading

0 comments on commit 5ca44a6

Please sign in to comment.