Commit 02f5552c authored by marius david's avatar marius david
Browse files

link to post in MR

parent 797376ec
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -85,7 +85,7 @@ def process_post(self, post_body, make_pr = False):
				pr_url = self.forge.does_pr_already_exist(new_branch_name)
				if pr_url == False:
					print("branch pushed, making PR")
					pr_url = self.forge.make_pr_between_branches(new_branch_name, "main", "Add submission from Lemmy post " + str(post_id), "An automated PR for submission " + str(post_id))
					pr_url = self.forge.make_pr_between_branches(new_branch_name, "main", "Add submission from Lemmy post https://toast.ooo/post/" + str(post_id), "An automated PR for submission " + str(post_id))
				else:
					print("branch pushed, PR already exists")
				self.send_comment(post_id, "Thanks for your submission! The automatic PR has been opened at: " + pr_url)