This release mostly centers around the Octokit client. It updates to a new major version of @octokit/rest
, which puts this library more in line with their docs.
New features
tools.github.graphql
A pre-authenticated instance of @octokit/graphql
, for all your GraphQL needs!
Breaking changes
tools.createOctokit()
=> tools.github
In practice, creating a new Octokit client isn't necessary 99% of the time, so this release changes it to be a single pre-authenticated instance.
// Before
const octokit = tools.createOctokit()
octokit.issues.create()
// After
tools.github.issues.create()
What’s Changed
- Fix type exports (#6) @JasonEtco
- Adding Actions to Usage list (#7) @lannonbr
- Update devDependencies (#9) @JasonEtco
- Updating Action name (#10) @lannonbr
- Add documentation for tools#getFile (#13) @JasonEtco
- Updating tools.arguments docs to show usage with .workflow file (#16) @lannonbr
- Update Octokit (#19) @JasonEtco
- Add a table of contents (#20) @JasonEtco
- Release 1.0.0 (#21) @JasonEtco