Loading tools/lib/gitlab_forge.py +4 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,10 @@ def does_pr_already_exist(self, from_branch): req = requests.get(url) req.raise_for_status() return len(req.json()) > 0 if len(req.json()) == 0: return False else: return req.json()[0]["web_url"] def make_pr_between_branches(self, from_branch, to_branch, title, body): url = "https://{}/api/v4/projects/{}/merge_requests".format(self.domain, self.project_id) Loading Loading
tools/lib/gitlab_forge.py +4 −1 Original line number Diff line number Diff line Loading @@ -17,7 +17,10 @@ def does_pr_already_exist(self, from_branch): req = requests.get(url) req.raise_for_status() return len(req.json()) > 0 if len(req.json()) == 0: return False else: return req.json()[0]["web_url"] def make_pr_between_branches(self, from_branch, to_branch, title, body): url = "https://{}/api/v4/projects/{}/merge_requests".format(self.domain, self.project_id) Loading