-
Notifications
You must be signed in to change notification settings - Fork 84
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
feat: Create organisation client to access teams endpoints #135
Conversation
Codecov Report
@@ Coverage Diff @@
## master #135 +/- ##
============================================
+ Coverage 73.77% 74.23% +0.46%
- Complexity 256 263 +7
============================================
Files 40 41 +1
Lines 896 920 +24
Branches 41 41
============================================
+ Hits 661 683 +22
- Misses 210 212 +2
Partials 25 25
|
Optional<String> description(); | ||
|
||
/** | ||
* List GitHub IDs for organization members who will |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IDs
is a bit confusing to me. Are these usernames?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The GitHub ID is the unique integer associated with a user. Which is unfortunately poorly documented :/
I used the documentation for the GitHub API to describe the params here:
https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28#create-a-team
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, then let's leave it as-is 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
What this PR does:
This PR adds an organisation client that exposes the following Teams API endpoints:
What happens next:
This functionality will be extended to expose the memberships endpoints so that team members within a team can be updated/created/deleted.
Tests:
Unit tests have been created for all the above mentioned endpoints.
Fixtures were created using the expected request and response bodies as detailed in the Github Teams API documentation here: https://docs.github.com/en/rest/teams/teams?apiVersion=2022-11-28