Skip to content

Conversation

derekjobst
Copy link
Contributor

This PR addresses #1863 by adding a Permissions field to the Team type.

@google-cla
Copy link

google-cla bot commented May 6, 2021

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

📝 Please visit https://cla.developers.google.com/ to sign.

Once you've signed (or fixed any issues), please reply here with @googlebot I signed it! and we'll verify it.


What to do if you already signed the CLA

Individual signers
Corporate signers

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added the cla: no label May 6, 2021
@derekjobst
Copy link
Contributor Author

@googlebot I signed it!

@google-cla google-cla bot added cla: yes Indication that the PR author has signed a Google Contributor License Agreement. and removed cla: no labels May 6, 2021
@gmlewis
Copy link
Collaborator

gmlewis commented May 6, 2021

Also, please make sure to run go generate ./... as described in our CONTRIBUTING.md guide.

@gmlewis
Copy link
Collaborator

gmlewis commented May 6, 2021

You will want to commit/push (not force-push) the changes to the PR once you run go generate ./....

derekjobst and others added 2 commits May 6, 2021 09:22
Co-authored-by: Glenn Lewis <6598971+gmlewis@users.noreply.github.com>
@gmlewis
Copy link
Collaborator

gmlewis commented May 6, 2021

Hmmm... it looks like my go generate ./... code is breaking the tests... sorry about that @derekjobst - let me investigate.

@derekjobst
Copy link
Contributor Author

I got caught up on Stringify returning a string with the empty Permissions{} in it when Team is converted to a string.

This was easy to fix in strings_test, but the auto-generated github-stringify tests for TestTeam_String refer to a parent team, which does not include the empty Permissions in the string.

It seems like the best solution might be to have the stringifyValue function in strings.go omit empty Permissions.

@derekjobst
Copy link
Contributor Author

I've reverted the pointer change to get tests passing — happy to change back if we'd like to change the stringify methods

@codecov
Copy link

codecov bot commented May 6, 2021

Codecov Report

Merging #1864 (66fa351) into master (b1b5e4e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1864   +/-   ##
=======================================
  Coverage   97.65%   97.65%           
=======================================
  Files         105      105           
  Lines        6769     6769           
=======================================
  Hits         6610     6610           
  Misses         86       86           
  Partials       73       73           
Impacted Files Coverage Δ
github/teams.go 98.09% <ø> (ø)

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 b1b5e4e...66fa351. Read the comment docs.

@gmlewis
Copy link
Collaborator

gmlewis commented May 6, 2021

I've reverted the pointer change to get tests passing — happy to change back if we'd like to change the stringify methods

OK, excellent. I've gone ahead and created #1865 and #1866 to address this.

Copy link
Collaborator

@gmlewis gmlewis left a comment

Choose a reason for hiding this comment

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

Thank you, @derekjobst !
LGTM.
Merging.

@gmlewis gmlewis merged commit b3962ed into google:master May 6, 2021
@derekjobst
Copy link
Contributor Author

derekjobst commented May 6, 2021

@gmlewis do you know when we might be able to get this into a release? It looks like there are a few other changes since the last one :)

@gmlewis
Copy link
Collaborator

gmlewis commented May 6, 2021

@derekjobst - here you go: https://github.com/google/go-github/releases/tag/v35.2.0

This was referenced Jul 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes Indication that the PR author has signed a Google Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants