GitLab API icon

GitLab API

Gitlab

Actions1062

Commits → postApiV4ProjectsIdRepositoryCommitsShaCherryPick

AI-generated

Summary

Trigger a cherry-pick of a specific commit identified by its SHA (or branch/tag name) onto a target branch in a GitLab project.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project where the commit resides.
  • sha (required) — The SHA hash, branch name, or tag name of the commit to cherry-pick.
  • postApiV4ProjectsIdRepositoryCommitsShaCherryPick (required) — An object with details for the cherry-pick operation as specified by the GitLab API, typically including the target branch and commit message.
  • skipAuthentication — Optionally skip authentication if set to true; otherwise, authentication uses the configured GitLab API credentials.

Output shape

a JSON object representing the result of the cherry-pick operation from the GitLab API, including commit details or error information.

The output matches the GitLab API response for the cherry-pick commit endpoint. Success returns commit metadata; failure responses include error details.

Links

Discussion