🛠A toolkit for building GitHub Actions in Node.js
MIT License
Bot releases are hidden (Show)
Published by JasonEtco over 5 years ago
Published by JasonEtco over 5 years ago
This release furthers the beta of v2.0.0 (#62). It reverts the changes added in #41 for exiting with a failing status with missing environment variables - this is due to additional friction and inconsistent lists that made the feature a little unreliable, so better to remove it.
secrets
option (#66) @JasonEtcotools.log
(#69) @JasonEtcoPublished by JasonEtco over 5 years ago
Nothing to see here, just fixing a release process that borked for 2.0.0-beta.1
and resulted in an empty publish.
Published by JasonEtco over 5 years ago
This release introduces a few breaking changes, for reliability and for clarity.
The first is a change to the Toolkit constructor - the list of environment variables that are available in the GitHub Actions runtime is now required when using actions-toolkit. This is to encourage predictability, and while it won't break any Actions being run by GitHub, it may affect automated tests that don't set all of the expected environment variables. I'm really looking for feedback on this change - if it feels too heavy handed, let me know in #62!
context.repo
and context.issue
are objects, not functions #61I love this change (shoutout @jclem) - tools.context.repo
and tools.context.issue
are no longer functions that take an object parameter, but are rather helper getter
s that return an object:
- const params = tools.context.repo({ foo: true })
+ const params = { ...tools.context.repo, foo: true }
This is much more semantic and standard, and should result in less confusion for folks that aren't familiar with Probot's API.
Published by JasonEtco over 5 years ago
Some improvements to the Toolkit#command
method:
Published by JasonEtco over 5 years ago
This is the first beta release containing a new method, Toolkit#command
being worked on in #53. Still missing docs, but this beta release should help to test it out in real Actions.
Published by JasonEtco almost 6 years ago