Skip to content

Commit

Permalink
Add doc for NewPullRequest (#3208)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinburkesegment authored Jul 16, 2024
1 parent 4583e71 commit 5f496dd
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions github/pulls.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,16 @@ func (s *PullRequestsService) GetRaw(ctx context.Context, owner string, repo str

// NewPullRequest represents a new pull request to be created.
type NewPullRequest struct {
Title *string `json:"title,omitempty"`
Head *string `json:"head,omitempty"`
HeadRepo *string `json:"head_repo,omitempty"`
Title *string `json:"title,omitempty"`
// The name of the branch where your changes are implemented. For
// cross-repository pull requests in the same network, namespace head with
// a user like this: username:branch.
Head *string `json:"head,omitempty"`
HeadRepo *string `json:"head_repo,omitempty"`
// The name of the branch you want the changes pulled into. This should be
// an existing branch on the current repository. You cannot submit a pull
// request to one repository that requests a merge to a base of another
// repository.
Base *string `json:"base,omitempty"`
Body *string `json:"body,omitempty"`
Issue *int `json:"issue,omitempty"`
Expand Down

0 comments on commit 5f496dd

Please sign in to comment.