Skip to content

Commit

Permalink
feat(commits): add support for more CherryPickCommitOptions
Browse files Browse the repository at this point in the history
DryRun -> Does not commit any changes. Default is false. Introduced in GitLab 13.3
Message -> A custom commit message to use for the new commit. Introduced in GitLab 14.0
  • Loading branch information
maxice8 committed Aug 31, 2021
1 parent de0117b commit 017d2cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commits.go
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,9 @@ func (s *CommitsService) GetMergeRequestsByCommit(pid interface{}, sha string, o
//
// GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#cherry-pick-a-commit
type CherryPickCommitOptions struct {
Branch *string `url:"branch,omitempty" json:"branch,omitempty"`
Branch *string `url:"branch,omitempty" json:"branch,omitempty"`
DryRun *bool `url:"dry_run,omitempty" json:"dry_run,omitempty"`
Message *string `url:"message,omitempty" json:"message,omitempty"`
}

// CherryPickCommit cherry picks a commit to a given branch.
Expand Down

0 comments on commit 017d2cd

Please sign in to comment.