Skip to content

add rolename field to user struct - #2386

Merged
gmlewis merged 1 commit into
google:masterfrom
joshua-hancox:role-name-user-struct
Jun 16, 2022
Merged

gmlewis merged 1 commit into
google:masterfrom
joshua-hancox:role-name-user-struct

Conversation

@joshua-hancox

@joshua-hancox joshua-hancox commented Jun 16, 2022 •

Copy link
Copy Markdown
Contributor

As a follow on from this PR - I also need to be able to access the role_name returned from the Repositories.ListCollaborators endpoint, and therefore have raised this PR to include the field in the user struct.

@google-cla

google-cla Bot commented Jun 16, 2022

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@codecov

codecov Bot commented Jun 16, 2022

Copy link
Copy Markdown

Codecov Report

Merging #2386 (7d99f0c) into master (74c4599) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2386   +/-   ##
=======================================
  Coverage   98.06%   98.06%           
=======================================
  Files         119      119           
  Lines       10545    10545           
=======================================
  Hits        10341    10341           
  Misses        140      140           
  Partials       64       64           
Impacted Files Coverage Δ
github/users.go 94.17% <ø> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74c4599...7d99f0c. Read the comment docs.

@gmlewis gmlewis 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, @joshua-hancox !
LGTM.
Merging.

@gmlewis
gmlewis merged commit 697804f into google:master Jun 16, 2022
@joshua-hancox
joshua-hancox deleted the role-name-user-struct branch June 21, 2022 06:55
@joshua-hancox

Copy link
Copy Markdown
Contributor Author

Hey @gmlewis - any chance we could get a release with this functionality?

@gmlewis

gmlewis commented Jun 21, 2022

Copy link
Copy Markdown
Collaborator

Hey @gmlewis - any chance we could get a release with this functionality?

Hi @joshua-hancox - yes, this is now included in v45.2.0:
https://github.com/google/go-github/releases/tag/v45.2.0

jlaportebot added a commit to jlaportebot/go-github that referenced this pull request Jun 28, 2026
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