Commit Graph

9 Commits

Author SHA1 Message Date
Bernd Ahlers
1b5b45907b Add github rulesets command 2024-03-06 00:20:29 +01:00
Bernd Ahlers
945d3effaa Update go-github to v60 2024-03-06 00:19:32 +01:00
Marco Pfatschbacher
754e4fcd3f Support reading gh app key directly from env (#39)
* Support reading gh app key directly from env

Pass the app-key directly via GPC_GITHUB_APP_KEY env instead
of reading a file.
A file can still be used with the `app-key-file` flag.

* Fix error output for loading key file

Co-authored-by: Bernd Ahlers <bernd@users.noreply.github.com>

---------

Co-authored-by: Bernd Ahlers <bernd@users.noreply.github.com>
2023-11-07 12:09:42 +01:00
Bernd Ahlers
08e384f468 Add command to generate a GitHub app installation access token
Disable the branch-protection command. We don't use it anymore and it's
now dangerous to use because it would override our manualy brancht
protection configuration.
2023-01-13 12:46:45 +01:00
Bernd Ahlers
0435d365be Check if response is nil before accessing the status code
Fixes a potential null pointer access.
2023-01-03 12:40:14 +01:00
Bernd Ahlers
766a76ba59 Add missing required_approving_review_count to GitHub API call
This is now required.
2019-07-20 10:39:04 +02:00
Bernd Ahlers
7df1dd15bb Update to v27 of the github-go library 2019-07-20 10:38:36 +02:00
Bernd Ahlers
5d00c6ce38 Update to latest dependency versions
Update github library to latest major version.
2019-04-06 10:05:54 +02:00
Bernd Ahlers
7323d14cd1 Add github subcommand for branch protection management 2017-12-22 19:12:11 +01:00