Package com.spotify.github.v3.clients
Class GitDataClient
- java.lang.Object
-
- com.spotify.github.v3.clients.GitDataClient
-
public class GitDataClient extends Object
Reference Api client
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Tag>
createAnnotatedTag(String tag, String sha, String tagMessage, String taggerName, String taggerEmail)
Create an annotated tag.CompletableFuture<Reference>
createTagReference(String tag, String sha)
Create a git tag reference.CompletableFuture<Void>
delete(String ref)
Deletes a git reference.CompletableFuture<Tag>
getTag(String tag)
Get a git annotated tag.CompletableFuture<Reference>
getTagReference(String tag)
Get a git tag reference.
-
-
-
Method Detail
-
delete
public CompletableFuture<Void> delete(String ref)
Deletes a git reference.- Parameters:
ref
- search parameters
-
getTagReference
public CompletableFuture<Reference> getTagReference(String tag)
Get a git tag reference.- Parameters:
tag
- tag name
-
getTag
public CompletableFuture<Tag> getTag(String tag)
Get a git annotated tag.- Parameters:
tag
- tag name
-
createTagReference
public CompletableFuture<Reference> createTagReference(String tag, String sha)
Create a git tag reference. It must not include the refs/tags.- Parameters:
tag
- tag namesha
- commit to tag
-
createAnnotatedTag
public CompletableFuture<Tag> createAnnotatedTag(String tag, String sha, String tagMessage, String taggerName, String taggerEmail)
Create an annotated tag. First it would create a tag reference and then create annotated tag- Parameters:
tag
- tag namesha
- commit to tagtagMessage
- messagetaggerName
- name of the taggertaggerEmail
- email of the tagger
-
-