Commit 797376ec authored by marius david's avatar marius david
Browse files

fix gitlab check pr script

parent 9f6a12d1
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -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)