Commit 9e81411c authored by Grant's avatar Grant
Browse files

fetcher: detect closed mrs

parent d4a9839b
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -24,7 +24,7 @@ def mr_branch(self, post_id: int):
		return "lemmy-" + str(post_id)

	def does_pr_already_exist(self, from_branch):
		url = "https://{}/api/v4/projects/{}/merge_requests?state=opened&source_branch={}&target_branch={}".format(self.domain, self.project_id, from_branch, "main")
		url = "https://{}/api/v4/projects/{}/merge_requests?source_branch={}&target_branch={}".format(self.domain, self.project_id, from_branch, "main")
		req = requests.get(url)
		req.raise_for_status()