Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jehiah/git-open-pull
convert a github issue into a pull request
https://github.com/jehiah/git-open-pull
git-workflow pull-request-template pull-requests
Last synced: 9 days ago
JSON representation
convert a github issue into a pull request
- Host: GitHub
- URL: https://github.com/jehiah/git-open-pull
- Owner: jehiah
- License: mit
- Created: 2011-11-08T03:12:34.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2024-03-27T02:33:49.000Z (7 months ago)
- Last Synced: 2024-10-14T13:59:12.578Z (23 days ago)
- Topics: git-workflow, pull-request-template, pull-requests
- Language: Go
- Homepage:
- Size: 74.2 KB
- Stars: 54
- Watchers: 6
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
git open-pull
-------------Create a pull request from the command line, or attach a branch to an open GitHub issue converting it into a pull request.
### USAGE
$ git open-pull
git-open-pull takes the following optional arguments:
--interactive - boolean flag to turn off interactive mode; this is default set to true
--description-file - path to a file that contains your PR description
--title - string title for your PR
--labels - comma separated list of labels to be added to you PR
--version - print version of git-open-pull and Go$ git open-pull --interactive=false --description-file="description.txt" --labels="label1, label2" --title="My PR Title"
### Installing
Install from source, or visit the [releases page](https://github.com/jehiah/git-open-pull/releases)
```sh
go install github.com/jehiah/git-open-pull@latest
````### 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 GitHub API credentials this way is
not secure. Your API credentials will be stored in plain text.[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/viHooks. 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/exegit-open-pull will also look for the following environment variables, which will take precendence over values found in the config file.
```
GITOPENPULL_TOKEN
GITOPENPULL_USER
GITOPENPULL_BASE_ACCOUNT
GITOPENPULL_BASE_REPO
GITOPENPULL_PRE_PROCESS
GITOPENPULL_POST_PROCESS
GITOPENPULL_CALLBACK
GITOPENPULL_BASE_BRANCH
GITOPENPULL_MAINTAINERS_CAN_MODIFY
GITOPENPULL_EDITOR
```### 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 Go Modules to manage dependencies.
```
go build
```