v2.0.0
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
- Use GITHUB_REPOSITORY for context.repo (#75) @JasonEtco
- Make
context.issue
andcontext.repo
objects (#61) @jclem - [email protected] (#62) @JasonEtco