Movatterモバイル変換


[0]ホーム

URL:


Notice  The highest tagged major version isv80.

commitpr

command
v43.0.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2022 License:BSD-3-ClauseImports:11Imported by:0

Details

Repository

github.com/google/go-github

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`.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp