0.1.0-alpha.0 • Published 3 years ago

@skypilot/github-tools v0.1.0-alpha.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

@skypilot/github-tools

Tools for working with GitHub

npm stable stable build npm next next build license: ISC

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 repo
readOption: Read an option from the config file
setSecret: Create or update a secret in a GitHub repo

[Details to be added.]