commitpr
commandThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
The commitpr command utilizes go-github as a CLI tool forpushing files to a branch and creating a pull request from it.It takes an auth token as an environment variable and createsthe commit and the PR under the account affiliated with that token.
The purpose of this example is to show how to use refs, trees and commits tocreate commits and pull requests.
Note, if you want to push a single file, you probably prefer to use thecontent API. An example is available here:https://godoc.org/github.com/google/go-github/github#example-RepositoriesService-CreateFile
Note, for this to work at least 1 commit is needed, so you if you use thisafter creating a repository you might want to make sure you set `AutoInit` to`true`.