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 directorydownloadPullrequestPatch
downloads the patch for the given pull requestfindPatchLine
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. Returnsundefined
if the patch doesn't contain the given line number.