actions-toolkit

🛠 A toolkit for building GitHub Actions in Node.js

MIT License

Downloads
89.2K
Stars
928
Committers
18

Bot releases are hidden (Show)

actions-toolkit - 2.0.0

Published by JasonEtco over 5 years ago

actions-toolkit - v2.0.0-beta.2

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.

What’s Changed

  • Use logger in exit (#64) @JasonEtco
  • Create CLI questionnaire (#57) @macklinu
  • Add Toolkit.run (#63) @jclem
  • Support non-async functions in Toolkit.run (#67) @JasonEtco
  • Add secrets option (#66) @JasonEtco
  • Fix missing methods on tools.log (#69) @JasonEtco
  • Remove GITHUB_REF and GITHUB_TOKEN from required env vars (#71) @JasonEtco
actions-toolkit - v2.0.0-beta.1

Published 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.

actions-toolkit - v2.0.0-beta.0

Published by JasonEtco over 5 years ago

This release introduces a few breaking changes, for reliability and for clarity.

Required environment variables, #41

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 #61

I 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 getters 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.

actions-toolkit - v1.6.0-beta.2: Toolkit#command improvements

Published by JasonEtco over 5 years ago

Some improvements to the Toolkit#command method:

  • Run multiple times for multiple matches
  • Pass the match array to the handler
  • Improved docs
actions-toolkit - v1.6.0-beta.0: Toolkit#command

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.

actions-toolkit - v0.0.2

Published by JasonEtco almost 6 years ago