Skip to content

Retrieve a commit signature

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

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

id
required
One of:
string

The ID or URL-encoded path of the project

sha
required
string

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

OK

Media type application/json
object
signature_type
string
signature
object
commit_source
string
Example
{
"signature_type": "PGP",
"commit_source": "gitaly"
}

Bad Request

Not found