From 017d2cda181af717ec5cc7cd0bf9914692c7441a Mon Sep 17 00:00:00 2001 From: Leo Date: Tue, 31 Aug 2021 16:22:19 -0300 Subject: [PATCH] feat(commits): add support for more CherryPickCommitOptions 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 --- commits.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commits.go b/commits.go index acc099870..aade5d0b3 100644 --- a/commits.go +++ b/commits.go @@ -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.