print("Post does not contain valid JSON: "+str(post_id))
self.send_comment(post_id,"An error occurred while parsing this post. Maybe it’s just not a submission, but if it should, then it is not well formatted.")
self.forge.make_pr_between_branches(new_branch_name,"main","Add submission from Lemmy post "+str(post_id),"Add submission from Lemmy post "+str(post_id))
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))
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)