probot-kit
v0.5.0
Published
A collection of high-level tools to build Github bots using Probot
Downloads
140
Readme
ProbotKit
A collection of high-level tools to build Github bots using Probot.
downloadCode downloads the given SHA and extracts it into a tmp directory
downloadPullrequestPatch downloads the patch for the given pull request
findPatchLine Takes a line number in a file and a patch downloaded by the downloadPatch function. Returns the line number that Github expects for comments on this patch according to https://developer.github.com/v3/pulls/comments/#create-a-comment. Returns
undefined
if the patch doesn't contain the given line number.