github-api icon indicating copy to clipboard operation
github-api copied to clipboard

GitHub Actions Secrets (Repo and Org) simple CRUD operations ( and Get Public Key for Repo and Org as dependency)

Open Jalmeida1994 opened this issue 3 years ago • 0 comments

Description

Added simple CRUD operations to GH Secrets (both Repository wise and Organization):

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!

Jalmeida1994 avatar Aug 01 '22 17:08 Jalmeida1994