Skip to content

Add basic support for tag objects#375

Merged
kohsuke merged 1 commit into
hub4j:masterfrom
stephenc:tag-object-support
Sep 8, 2017
Merged

Add basic support for tag objects#375
kohsuke merged 1 commit into
hub4j:masterfrom
stephenc:tag-object-support

Conversation

@stephenc
Copy link
Copy Markdown
Contributor

@stephenc stephenc commented Sep 1, 2017

@reviewbybees

@ghost
Copy link
Copy Markdown

ghost commented Sep 1, 2017

This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation.

* @return the annotated tag object
*/
public GHTagObject getTagObject(String sha) throws IOException {
return root.retrieve().to(getApiTailUrl("git/tags/" + sha), GHTagObject.class).wrap(this);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is really only sha?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope it's the tagged and the tag date and the sha of the tagged commit.

For an annotated tag object the tag ref points to a tag object that points to the commit

For a lightweight tag, the tag ref just points to the commit.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

S/tagged/tagger/

Copy link
Copy Markdown
Contributor

@jglick jglick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems OK from a quick perusal.

@kohsuke kohsuke merged commit 612139f into hub4j:master Sep 8, 2017
@stephenc stephenc deleted the tag-object-support branch November 1, 2017 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants