From 4a228a824b04b4438bbcfd9205b75e8417e91a7d Mon Sep 17 00:00:00 2001 From: Brandon Keepers Date: Fri, 1 Jun 2018 16:17:49 -0500 Subject: [PATCH] chore: Rename `robot` to `app` --- _data/toc.yml | 4 ++-- index.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) 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!' });