Skip to content

Align Installation Permissions to latest GitHub v3 API reference#1880

Merged
gmlewis merged 2 commits intogoogle:masterfrom
xun-guo-anzx:update-app-installation-permission-list
Jun 1, 2021
Merged

Align Installation Permissions to latest GitHub v3 API reference#1880
gmlewis merged 2 commits intogoogle:masterfrom
xun-guo-anzx:update-app-installation-permission-list

Conversation

@xun-guo-anzx
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Collaborator

gmlewis commented Jun 1, 2021

Thank you, @wesleimp !
Merging.

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

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

@gmlewis
Copy link
Copy Markdown
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.

4 participants