mirror of
https://github.com/zhigang1992/probot.github.io.git
synced 2026-01-12 22:49:53 +08:00
chore: Rename robot to app
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -81,8 +81,8 @@ layout: default
|
||||
<div class="col-md-6">
|
||||
<div class="rounded-2 overflow-hidden border" style="margin-left: 60px;">
|
||||
{% 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!'
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user