GitLab API icon

GitLab API

Gitlab

Actions1062

Projects → postApiV4ProjectsIdStatusesSha

AI-generated

Summary

Post a new status to a specific commit in a GitLab project by providing the project ID or URL-encoded path and the commit SHA, along with the required status details in the request body.

Inputs

  • id (required) — ID or URL-encoded path of the GitLab project where the commit exists.
  • sha (required) — The commit hash (SHA) to which the status will be posted.
  • postApiV4ProjectsIdStatusesSha (required) — Request body containing the status information to post to the commit, matching the expected schema for the GitLab API endpoint.
  • baseUrl — Optional base URL of the GitLab instance; defaults to https://gitlab.com if not specified.
  • skipAuthentication — Optional flag to skip authentication for this request; defaults to false.

Output shape

a single record representing the status object created for the commit

The response includes details of the posted commit status as returned by the GitLab API. The operation requires authentication unless skipAuthentication is set to true.

Examples

Example 1: Post a commit status

Specify the project ID or path, the commit SHA, and the status details in the request body to add a new commit status.

Links

Discussion