Skip to content

Conversation

@martinvanzijl
Copy link
Contributor

@martinvanzijl martinvanzijl commented Dec 22, 2019

Description

Adds the createTag() method to GHRepository. Fixes #500.

Possible further enhancements are:

  • Add unit tests for tagging a "tree" and "blob".
  • Add versions of the method which take GHCommit, GHBlob or GHTree instead of the object and type parameters.
  • Add a version of the method which takes parameters for the tagger (name, email and date). This is optional, though, and seems to default to the user's credentials.
  • Add a GHCommit.createTag() method.

martinvanzijl and others added 3 commits December 23, 2019 05:43
This method failed in the automated GitHub build online with a null
pointer exception.

I tried to make it a @Before/@after method, but that fails on
my local PC.
@bitwiseman
Copy link
Member

@martinvanzijl
Looks like a test failed. Otherwise this change looks good.

@martinvanzijl
Copy link
Contributor Author

martinvanzijl commented Jan 10, 2020

@bitwiseman Thanks, I had trouble getting the clean-up method to work in GHRepositoryTest, so I moved the test case to it's own class (GHTagTest). Looks like it's working on my PC. Let's see how it does in the automated CI Build and Test.

@martinvanzijl

This comment has been minimized.

@martinvanzijl

This comment has been minimized.

@martinvanzijl

This comment has been minimized.

@martinvanzijl
Copy link
Contributor Author

Looks like it's working OK now!

@bitwiseman bitwiseman merged commit 30c70bc into hub4j:master Jan 18, 2020
@martinvanzijl martinvanzijl deleted the issue_500_create_tag_method branch January 20, 2020 01:32
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.

Add Create Tags method

2 participants