hub4j / github-api

Java API for GitHub
https://github-api.kohsuke.org/
MIT License
1.14k stars 726 forks source link

Can't find API for managing Secrets #1292

Open yolch-yolchyan opened 2 years ago

yolch-yolchyan commented 2 years ago

I was wondering if there is an API to manage GitHub repo secrets? /repos/{owner}/{repo}/actions/secrets/{secret_name}

If we have developed one, could you please point me out how to use it?

bitwiseman commented 2 years ago

Documentation for Secrets REST API: https://docs.github.com/en/rest/reference/actions#secrets

This has not been implemented yet.

This seems like a rather large endpoint. It is too big to implement the whole thing as your first PR. I would suggest creating a class with just read or maybe basic CRUD to start with.

SCHJonathan commented 2 years ago

@bitwiseman Hi, bitwiseman! I am more than happy to start working on supporting this API endpoint! I will start by working on CRUD for repository secret and will submit a PR once it has been throughoutly tested and ready to be reviewed.

bitwiseman commented 2 years ago

@SCHJonathan Feel free to submit a PR as draft for early feedback if you have any questions.