Skip to content

Commit 5ca44a6

Browse files
authored
Merge pull request #33 from jehiah/convert_to_go_33
Rewrite in Go
2 parents 7531b90 + ae1947e commit 5ca44a6

File tree

14 files changed

+849
-451
lines changed

14 files changed

+849
-451
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vendor
2+
pkg
3+
bin

.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: go
2+
go:
3+
- 1.8
4+
install:
5+
- go get github.com/constabulary/gb/...
6+
- ./vendor.sh
7+
script:
8+
- gb test
9+
- gb build
10+
sudo: false
11+
notifications:
12+
email: false
13+

LICENSE

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Copyright 2017 Jehiah Czebotar
2+
3+
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:
4+
5+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6+
7+
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.

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
git open-pull
2+
-------------
3+
4+
converts creates a pull request from the command line, or attaches a branch to an open github issue converting it into a pull request.
5+
6+
### USAGE
7+
8+
$ git open-pull
9+
10+
### CONFIGURATION
11+
12+
If available, git-open-pull will use the following config values. When not available
13+
They will be requested on the command line. Note storing your git password this way is
14+
not secure.
15+
16+
[github]
17+
user = ....
18+
[gitOpenPull]
19+
token = ..... # GitHub Access Token generated from https://github.com/settings/tokens
20+
baseAccount = ....
21+
baseRepo = .....
22+
base = master
23+
# Allow maintainers of the upstream repo to modify this branch
24+
# https://help.github.com/articles/allowing-changes-to-a-pull-request-branch-created-from-a-fork/
25+
maintainersCanModify = true | false (default: true)
26+
[core]
27+
editor = /usr/bin/vi
28+
29+
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
30+
31+
[gitOpenPull]
32+
preProcess = /path/to/exe
33+
postProcess = /path/to/exe
34+
callback = /path/to/exe
35+
36+
### ABOUT
37+
38+
Because the ideal workflow is `issue -> branch -> pull request` this script
39+
takes a github issue and turns it into a pull request based on your branch
40+
against master in the integration account
41+
42+
43+
### Building From Source
44+
45+
This project uses [gb](https://getgb.io/) the Go Build tool, and has a `vendor.sh` to manage dependencies.
46+
47+
```
48+
go get github.com/constabulary/gb/...
49+
./vendor.sh
50+
gb build
51+
```

0 commit comments

Comments
 (0)