Gets the tag object of an annotated tag (not lightweight tags)
const url = 'https://gitea.com/api/v1/repos/example/example/git/tags/example';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/repos/example/example/git/tags/example \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Owner of the repo
Name of the repo
Sha of the tag. The Git tags API only supports annotated tag objects, not lightweight tags.
Responses
Section titled “Responses”AnnotatedTag
AnnotatedTag represents an annotated tag
object
The message associated with the annotated tag
AnnotatedTagObject contains meta information of the tag object
object
The SHA hash of the tagged object
The type of the tagged object (e.g., commit, tree)
The URL to access the tagged object
The SHA hash of the annotated tag
The name of the annotated tag
object
Date is the commit date in string format
Name is the person’s name
The URL to access the annotated tag
PayloadCommitVerification represents the GPG verification of a commit
object
The signed payload content
The reason for the verification status
The GPG signature of the commit
PayloadUser represents the author or committer of a commit
object
Full name of the commit author
Username of the user
Whether the commit signature is verified
Examplegenerated
{ "message": "example", "object": { "sha": "example", "type": "example", "url": "example" }, "sha": "example", "tag": "example", "tagger": { "date": "example", "email": "hello@example.com", "name": "example" }, "url": "example", "verification": { "payload": "example", "reason": "example", "signature": "example", "signer": { "email": "hello@example.com", "name": "example", "username": "example" }, "verified": true }}APIError is error format response
Headers
Section titled “Headers”APINotFound is a not found empty response