Skip to content

Update CustomOrgRoles and CustomRepoRoles to include all fields returned by the GitHub API - #3216

Merged
gmlewis merged 2 commits into
google:masterfrom
AbhishekAg:abhi/custom_roles
Jul 22, 2024
Merged

Update CustomOrgRoles and CustomRepoRoles to include all fields returned by the GitHub API#3216
gmlewis merged 2 commits into
google:masterfrom
AbhishekAg:abhi/custom_roles

Conversation

@AbhishekAg

@AbhishekAgAbhishekAg commented Jul 21, 2024

Copy link
Copy Markdown
Contributor

Fixes: #3214.

CustomRepoRoles and CustomOrgRoles structures have missing fields, due to which the part of the response from the github API is missed.

Updating the structures as per the github API schema defined.

Ref: google#3214
Signed-off-by: Abhishek Agarwal <abhishek@exaforce.com>
@gmlewisgmlewis changed the title Updating the structure to include all fields returned by the github APIUpdate CustomOrgRoles and CustomRepoRoles to include all fields returned by the GitHub APIJul 21, 2024
@codecov

codecovBot commented Jul 21, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.92%. Comparing base (2b8c7fa) to head (e8f1b83).
Report is 84 commits behind head on master.

Additional details and impacted files
@@ Coverage Diff @@## master #3216 +/- ##
==========================================
- Coverage 97.72% 92.92% -4.80% 
==========================================
Files 153 171 +18 Lines 13390 11582 -1808 ==========================================
- Hits 13085 10763 -2322 - Misses 215 726 +511 - Partials 90 93 +3 

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Excellent... thank you, @AbhishekAg !
Apart from one tiny nit, LGTM.

Comment threadgithub/orgs_custom_roles_test.go Outdated
Signed-off-by: Abhishek Agarwal <abhishek@exaforce.com>

@gmlewisgmlewis left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you, @AbhishekAg !
LGTM.
Merging.

@gmlewis
gmlewis merged commit d5e03d5 into google:masterJul 22, 2024
jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
Sign up for freeto 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.

Missing fields in structure

2 participants

@AbhishekAg@gmlewis