示例#1
0
 def post(self, username, repo, pullrequest):
     repo = parse_url(username, repo)
     if repo:
         request = PullRequest.mc_get(pullrequest)
         if request:
             # TODO: Privileges
             request.merge()
             return self.redirect(request.to_repo.link)
     raise tornado.web.HTTPError(404)
示例#2
0
 def get(self, username, repo, pullrequest):
     repo = parse_url(username, repo)
     if repo:
         request = PullRequest.mc_get(pullrequest)
         if request:
             return self.render("/app/repo/pullrequest.html", request=request)
         else:
             return self.redirect(repo.link)
     raise tornado.web.HTTPError(404)