github-api
github-api copied to clipboard
GitHub Actions Secrets (Repo and Org) simple CRUD operations ( and Get Public Key for Repo and Org as dependency)
Description
Added simple CRUD operations to GH Secrets (both Repository wise and Organization):
- Get Repository Secret
- Create or Updates Repository Secret
- Delete Repository Secret
- Get Organization Secret
- Create or Updates Organization Secret
- Delete Organization Secret
Also created a utility class for managing public keys, removing duplication between GHOrganization and GHRepository functionality. Created the following method for it and change the latter:
This broke the following, because instead of returning the type GHRepositoryPublicKey, it returns GHPublicKey:
There is at least one incompatibility: org.kohsuke.github.GHRepository.getPublicKey():METHOD_RETURN_TYPE_CHANGED,org.kohsuke.github.GHRepositoryPublicKey.GHRepositoryPublicKey():CONSTRUCTOR_LESS_ACCESSIBLE,org.kohsuke.github.GHRepositoryPublicKey:CLASS_NO_LONGER_PUBLIC,org.kohsuke.github.GHRepositoryPublicKey:METHOD_ABSTRACT_ADDED_IN_SUPERCLASS,org.kohsuke.github.GHRepositoryPublicKey:CLASS_LESS_ACCESSIBLE
Still figuring out the wire mock creation. Only tested it with -Dtest.github.useProxy.
Any support and comments are extremely welcome. Thanks!