Skip to content

Commit

Permalink
insert checklist into pull requests
Browse files Browse the repository at this point in the history
fixes #1
  • Loading branch information
tedbreen committed Dec 4, 2015
1 parent a9afc6b commit c2848df
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions server.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,26 @@ app.post('/', function(req, res) {
return res.end();
}

github.repos.getContent({
user: data.repository.owner.login,
repo: data.repository.name,
path: 'docs/qa-checklist.md',
headers: {
Accept: 'application/vnd.github.v3.raw'
}
}, function(err, content) {
if (err) {
console.log('error: ', err)
return
}
github.issues.createComment({
user: data.repository.owner.login, // 'fbsamples'
repo: data.repository.name, // 'bot-testing'
number: data.pull_request.number, // 23
body: content
})
})

github.issues.createComment({
user: data.repository.owner.login, // 'fbsamples'
repo: data.repository.name, // 'bot-testing'
Expand Down

0 comments on commit c2848df

Please sign in to comment.