Skip to content

Instantly share code, notes, and snippets.

View hiimbex's full-sized avatar

Bex Warner hiimbex

View GitHub Profile
___________________________________________
_ _ _ _ _
__| |__ __| |__ __| |__ __| |__ __| |__
___________________________________________
H I I M B E X
@hiimbex
hiimbex / app.json
Last active September 19, 2018 01:28
{
"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 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:
@hiimbex
hiimbex / output.txt
Last active September 20, 2017 09:05
npm start
> lock-threads@1.0.0 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: {
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')
}
module.exports = robot => {
robot.on('issues', async context => {
robot.log(context, "testing", context.payload);
});
};