Skip to content
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

Align Installation Permissions to latest GitHub v3 API reference #1880

Merged

Conversation

xun-guo-anzx
Copy link
Contributor

This PR is to fix issue #1879 by updating InstallationPermissions struct with new properties included in API Document.

Changes include:

  • Update document URL in comment
  • Add support for environments, organization_secrets, organization_self_hosted_runners, secrets, secret_scanning_alerts, security_events and workflows
  • Align test code with new fields

* Update document URL in comment
* Add support for environments, organization_secrets, organization_self_hosted_runners, secrets, secret_scanning_alerts, security_events and workflows
* Align test code with new fields
@google-cla google-cla bot added the cla: yes Indication that the PR author has signed a Google Contributor License Agreement. label May 31, 2021
@gmlewis gmlewis changed the title Align Installation Permissions to latest Github v3 API reference Align Installation Permissions to latest GitHub v3 API reference May 31, 2021
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, @xun-guo-anzx !
Please run go generate ./... and then push (please do not force push) the commit to this PR to make the tests pass (as described in our CONTRIBUTING.md document).

@xun-guo-anzx
Copy link
Contributor Author

Thanks @gmlewis for looking into this. I've run go generate ./... command as well as go test and go vet as described in CONTRIBUTING.md. Sorry for missing out one step before submitting the PR.

@codecov
Copy link

codecov bot commented Jun 1, 2021

Codecov Report

Merging #1880 (a0b4195) into master (8b2866e) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1880   +/-   ##
=======================================
  Coverage   97.65%   97.65%           
=======================================
  Files         105      105           
  Lines        6783     6783           
=======================================
  Hits         6624     6624           
  Misses         86       86           
  Partials       73       73           
Impacted Files Coverage Δ
github/apps.go 95.29% <ø> (ø)

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 8b2866e...a0b4195. Read the comment docs.

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 @xun-guo-anzx !
LGTM.

Awaiting second LGTM before merging.

@gmlewis gmlewis requested a review from wesleimp June 1, 2021 00:56
Copy link
Collaborator

@wesleimp wesleimp left a comment

Choose a reason for hiding this comment

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

LGTM 💙

@gmlewis
Copy link
Collaborator

gmlewis commented Jun 1, 2021

Thank you, @wesleimp !
Merging.

@gmlewis gmlewis merged commit 8751f3d into google:master Jun 1, 2021
@patrickmarabeas
Copy link
Contributor

@gmlewis Would it be possible to create a new release? Thanks!

@gmlewis
Copy link
Collaborator

gmlewis commented Jun 6, 2021

@gmlewis Would it be possible to create a new release? Thanks!

Certainly! Here you go: https://github.com/google/go-github/releases/tag/v35.3.0

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.

None yet

4 participants