Example #1
0
    def create_issue_comment(self, HEAD, target_pr):
        parser, sub_parser = parsers()
        command = CheckPRs(sub_parser)
        o = self.sandbox.communicate(
            "git", "log", "--oneline", "-n", "1", HEAD)
        sha1, num, rest = command.parse_pr(o.split("\n")[0])

        pr = PullRequest(self.sandbox.origin.get_pull(num))
        comment = pr.create_issue_comment("--rebased-from #%s" % target_pr)
        return comment
Example #2
0
    def create_issue_comment(self, HEAD, target_pr):
        parser, sub_parser = parsers()
        command = CheckPRs(sub_parser)
        o = self.sandbox.communicate("git", "log", "--oneline", "-n", "1",
                                     HEAD)
        sha1, num, rest = command.parse_pr(o.split("\n")[0])

        pr = PullRequest(self.sandbox.origin.get_pull(num))
        comment = pr.create_issue_comment("--rebased-from #%s" % target_pr)
        return comment
Example #3
0
 def check_directed_links(self):
     assert CheckPRs.check_directed_links(self.links) == self.mismatch