Details
-
Suggestion
-
Resolution: Unresolved
-
None
-
None
-
2
-
Description
Documentation for the POST /rest/git/1.0/projects/{projectKey}/repos/{repositorySlug}/tags endpoint should be updated to indicate that the value passed for the startPoint parameter should be the SHA of the item to be tagged.
The following line in the API description can be changed from:
'LIGHTWEIGHT' and 'ANNOTATED' are the two type of tags that can be created. The 'startPoint' can either be a ref or a 'commit'.
to:
'LIGHTWEIGHT' and 'ANNOTATED' are the two type of tags that can be created.
The 'startPoint' is a full SHA1 for the object to be tagged.
The sample can be changed from:
{ "force": "true", "message": "A new release tag", "name": "release-tag", "startPoint": "refs/heads/master", "type": "ANNOTATED" }
to:
{ "force": "true", "message": "A new release tag", "name": "release-tag", "startPoint": "ffffb700d5b73a37f7a2058ddd6795bbaf73b09c", "type": "ANNOTATED" }