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

GHOrganization.createTeam now adds team to specified repositories #578

Conversation

martinvanzijl
Copy link
Contributor

@martinvanzijl martinvanzijl commented Oct 29, 2019

Fixes #457.

The full path to the repository needs to be given (e.g. "organization-name/repository-name").

GHRepository repo = org.getRepository(REPO_NAME);

// Clean up team if exists.
GHTeam existingTeam = org.getTeamByName(TEAM_NAME);
Copy link
Member

Choose a reason for hiding this comment

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

This should be done in a @Before method using githubBeforeAfter connection.
https://github.com/github-api/github-api/pull/579/files#diff-ed97d1edac0ae3acc074e2e907870717R23

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, I have moved it now. Can you please check?

Copy link
Member

@bitwiseman bitwiseman left a comment

Choose a reason for hiding this comment

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

Thanks for the PRs!

@bitwiseman bitwiseman merged commit 5026262 into hub4j:master Nov 1, 2019
@martinvanzijl martinvanzijl deleted the issue_457_create_team_with_repo_access_fix branch November 2, 2019 02:23
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.

Bug: GHOrganization::createTeam does not regard argument repositories
2 participants