-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from jehiah/convert_to_go_33
Rewrite in Go
- Loading branch information
Showing
14 changed files
with
849 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
vendor | ||
pkg | ||
bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
``` |
Oops, something went wrong.