Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ae1947e

Browse filesBrowse files
committed
Rewrite git-open-pull in Go; new template
Populate issue template w/ commit messages and provide pre/post processing hooks
1 parent 7531b90 commit ae1947e
Copy full SHA for ae1947e

File tree

Expand file treeCollapse file tree

14 files changed

+849
-451
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

14 files changed

+849
-451
lines changed
Open diff view settings
Collapse file

‎.gitignore‎

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

‎.travis.yml‎

Copy file name to clipboard
+13Lines 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+
Collapse file

‎LICENSE‎

Copy file name to clipboard
+7Lines 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.
Collapse file

‎README.md‎

Copy file name to clipboard
+51Lines changed: 51 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.