Skip to content

Add method to invite user to organization#482

Merged
bitwiseman merged 5 commits into
hub4j:masterfrom
martinvanzijl:issue_467_add_user_to_org
Oct 8, 2019
Merged

Add method to invite user to organization#482
bitwiseman merged 5 commits into
hub4j:masterfrom
martinvanzijl:issue_467_add_user_to_org

Conversation

@martinvanzijl

Copy link
Copy Markdown
Contributor

Fixes issue #467.

Added method GHOrganization.add(GHUser user, Role role).

@bitwiseman bitwiseman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks! Can you add some tests so we can verify it works before merging?

@bitwiseman

Copy link
Copy Markdown
Member

@martinvanzijl
I've granted you owner on github-api-test-org so you can write a test for this.

@martinvanzijl

Copy link
Copy Markdown
Contributor Author

@bitwiseman Thanks, I added a test case.

I'm not sure how to test this end-to-end. Can the invitation be accepted automatically?

@bitwiseman bitwiseman left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As with you other PR, this is sufficient testing. I don't see an accept api at this time.

@bitwiseman bitwiseman merged commit ce97eb5 into hub4j:master Oct 8, 2019
@martinvanzijl martinvanzijl deleted the issue_467_add_user_to_org branch October 9, 2019 00:19
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.

2 participants