This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
___________________________________________ | |
_ _ _ _ _ | |
__| |__ __| |__ __| |__ __| |__ __| |__ | |
___________________________________________ | |
H I I M B E X |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "hio", | |
"url": "https://example.com", | |
"hook_attributes": { | |
"url": "https://example.com/github/events" | |
}, | |
"redirect_url": "http://localhost:4000/probot/setup", | |
"public": true, | |
"default_permissions": { | |
"issues": "write", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* This is the entry point for your Probot App. | |
* @param {import('probot').Application} app - Probot's Application class. | |
*/ | |
module.exports = app => { | |
// Your code here | |
app.log('Yay, the app was loaded!') | |
// For more information on building apps: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm start | |
> [email protected] start /Users/hiimbex/Desktop/lock-threads | |
> probot run ./index.js | |
18:40:53.086Z DEBUG Probot: Loaded ./index.js | |
18:40:53.089Z TRACE Probot: Listening on http://localhost:3000 | |
Listening on https://hiimbex.localtunnel.me | |
18:41:06.392Z TRACE Probot: webhook received (event=issue_comment, id=a9170ff0-9d68-11e7-99a3-84cb6873af3e, protocol=http, host=hiimbex.localtunnel.me, url=/) | |
payload: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const expect = require('expect'); | |
const plugin = require('../index'); | |
const createProbot = require('probot'); | |
describe('plugin', () => { | |
beforeEach(() => { | |
config = { | |
data: { | |
content: Buffer.from('Thanks for making your first PR here!').toString('base64') | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = robot => { | |
robot.on('issues', async context => { | |
robot.log(context, "testing", context.payload); | |
}); | |
}; |