commits

Retrieve a commit signature

Retrieves the signature from a commit, if it is signed. For unsigned commits, it results in a 404 response.

get/api/v4/projects/{id}/repository/commits/{sha}/signature

Request

  • Base URL
    https://gitlab.com
  • Auth
    none declared

Path parameters

idstring required

The ID or URL-encoded path of the project

shastring required

A commit sha, or the name of a branch or tag

Response

Retrieve a commit signature

signature_typestring required
signatureobject required
commit_sourcestring required

Example response

{
  "signature_type": "PGP",
  "commit_source": "gitaly"
}

Changes

No recorded changes to this operation across all 5 revisions of this API.