Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to delete a team #276

Merged
merged 1 commit into from
Jun 3, 2016
Merged

Add support to delete a team #276

merged 1 commit into from
Jun 3, 2016

Conversation

thug-gamer
Copy link
Contributor

@thug-gamer thug-gamer commented Apr 29, 2016

Add a method to delete a team.

@kohsuke @oleg-nenashev Could you please review this pull request?

Add a method to delete a team.
* Deletes this team.
*/
public void delete() throws IOException {
org.root.retrieve().method("DELETE").to(api(""));
Copy link
Contributor

Choose a reason for hiding this comment

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

Empty URL for the API method?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

According to GitHub API, the url is /teams/:id, which is what api method creates

Choose a reason for hiding this comment

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

@kohsuke kohsuke merged commit 37c4731 into hub4j:master Jun 3, 2016
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