GitLab API

GitlabTool

Actions1095

Commits → postApiV4ProjectsIdRepositoryCommits

AI-generated

Summary

Create a new commit in a specific GitLab project repository by specifying the project ID or URL-encoded path and providing the commit details in the request body.

Inputs

  • id (required) — The ID or URL-encoded path of the GitLab project where the commit will be created.
  • postApiV4ProjectsIdRepositoryCommits (required) — The request body schema containing the commit details such as branch, commit message, and actions to perform in the commit.
  • skipAuthentication — Boolean to skip authentication; defaults to false.
  • baseUrl — Base URL for the GitLab instance; defaults to 'https://gitlab.com'.

Output shape

a single JSON object representing the newly created commit as returned by the GitLab API

Returns the created commit details according to the GitLab API response. Requires valid authentication unless skipping authentication is enabled.

Links

Discussion