Skip to content

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Pull Request Creator

Table of Contents

About

This command line tool can create new pull request easily from simple config file. Config file can set base branch and head branch. This tool compare base branch with head branch. If head branch forwarded than base branch, this tool create new pull request automatically. Therefore this tool makes your development more efficiently.

Requirement

  • Go v1.12 or higher

Build

$ GO111MODULE=on go build -o bin/github-pr-creator

Usage

1. Create config file

At first, you create app.config.json config file, like this.

[
  {
    "owner": "Your owner name",
    "repo": "Your repository name",
    "head": "Head branch name",
    "base": "Base branch name",
    "reviewers": ["Reviewer name"]
  }
]

2. Set environ variable

Next, you must set GITHUB_ACCESS_TOKEN environ variable.

export GITHUB_ACCESS_TOKEN=<Your github token>

Run

$ ./bin/github-pr-creator

Command line options

$ ./bin/github-pr-creator --help
Usage: github-pr-creator [--dry-run]

Options:
  --dry-run              dry run mode
  --help, -h             display this help and exit

Contributing

Open an issue or submit PRs.

License

MIT.

About

Command-line tool for creating new GitHub pull requests easily from a simple config file.

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages