github

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2023 License: 0BSD Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPrClient

func NewPrClient(upstreamRepo string, auth *url.Userinfo, client httpClient) (*pullRequestClient, error)

Types

type PullRequestPayload

type PullRequestPayload struct {
	Head                string `json:"head,omitempty"`
	Base                string `json:"base,omitempty"`
	Title               string `json:"title,omitempty"`
	Body                string `json:"body,omitempty"`
	MaintainerCanModify bool   `json:"maintainer_can_modify,omitempty"`
	Draft               bool   `json:"draft,omitempty"`
	Issue               *int   `json:"issue,omitempty"`
}

Example Payload:

{
	"title": "Amazing new feature",
	"body": "Please pull these awesome changes in!",
	"head":"octocat:new-feature",
	"base":"master"
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL