0.1.0-alpha.0 • Published 3 years ago
@skypilot/github-tools v0.1.0-alpha.0
@skypilot/github-tools
Tools for working with GitHub
How to install
$ yarn add @skypilot/github-tools
# or
$ npm add @skypilot/github-tools
How to configure
Add a .skypilot/github-tools.yml
file to your project, replacing OWNER
and REPO_NAME
with the
names from the OWNER/REPO_NAME
repository you want to work with.
gitHub:
owner: <OWNER>
graphQlEndpoint: 'https://api.github.com/graphql'
repoName: <REPO_NAME>
restEndpoint: 'https://api.github.com'
To work with a private repository, you must also add the name of one of your public repositories from which your public key can be fetched:
defaultOwner: <OWNER>
defaultPublicRepoName: <REPO_NAME>
Functionality
fetchPublicKey
: Gets the user's public key from a GitHub reporeadOption
: Read an option from the config filesetSecret
: Create or update a secret in a GitHub repo
[Details to be added.]