Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add doc for NewPullRequest #3208

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading