issue2essay
v1.0.0
Published
A webHookServer to convert git issue to a blogPost
Downloads
10
Readme
A webHookServer to convert git issue to a blogPost
const Server = require('issue2essay')
const server = new Server({
port : 5080, // opational
sercet: 'your webhook sercet', //required
path: '/'
})
event
listen
server.on('listen', port => {
})
essay
server.on('essay', essay => {
// essay = {
// oldTitle: origionTitle of the issue
// title: issue['title'],
// date: issue['created_at'],
// content: issue['body'],
// tags: ['tagA', 'tagB']
// }
})
test
npm run test