diff --git a/_data/toc.yml b/_data/toc.yml index 5892f28..aed48bd 100644 --- a/_data/toc.yml +++ b/_data/toc.yml @@ -15,8 +15,8 @@ Advanced: - docs/persistence.md - docs/best-practices.md Reference: - - title: robot - url: "https://probot.github.io/api/latest/Robot.html" + - title: app + url: "https://probot.github.io/api/latest/Application.html" - title: context url: "https://probot.github.io/api/latest/Context.html" - title: context.github diff --git a/index.html b/index.html index 9659d5c..dd57cae 100644 --- a/index.html +++ b/index.html @@ -81,8 +81,8 @@ layout: default
{% highlight javascript %} -module.exports = robot => { - robot.on('issues.opened', async context => { +module.exports = app => { + app.on('issues.opened', async context => { const params = context.issue({ body: 'Hello World!' });