github JasonEtco/actions-toolkit v2.0.0

latest releases: v6.0.1, v6.0.0, v5.0.0...
5 years ago

Breaking changes

This release introduces breaking changes to tools.context.repo and tools.context.issue. Those are now properties instead of methods - here's the difference:

-tools.context.repo({
-  foo: true
-})
+{
+  ...tools.context.repo
+  foo: true
+}

Usage is the same as always, but using the object spread operator instead of passing an object to a method:

tools.github.issues.create({
  ...tools.context.repo,
  title: 'New issue'
})

This should help make those getters more clear and easier to use. As always, feel free to open an issue if you have feedback on this change!

What’s Changed

Don't miss a new actions-toolkit release

NewReleases is sending notifications on new releases.