Loading tools/lemmy_fetcher.py +2 −2 Original line number Diff line number Diff line Loading @@ -155,8 +155,8 @@ def process_post(self, post_body, make_pr): # Yes, I used AI assisted tooling. And they work pretty well. Thanks codeium. # get git branch name branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"], text=True).strip() if branch != "main": raise BaseException("Not on main branch, refusing to continue: " + branch) # if branch != "main": # raise BaseException("Not on main branch, refusing to continue: " + branch) # check if any content in entries is dirty if EDITIONS[self.edition]["entry_folder"] in subprocess.check_output(["git", "status", "--porcelain"], text=True): raise BaseException("Some change in entries are uncommited, refusing to continue") Loading Loading
tools/lemmy_fetcher.py +2 −2 Original line number Diff line number Diff line Loading @@ -155,8 +155,8 @@ def process_post(self, post_body, make_pr): # Yes, I used AI assisted tooling. And they work pretty well. Thanks codeium. # get git branch name branch = subprocess.check_output(["git", "rev-parse", "--abbrev-ref", "HEAD"], text=True).strip() if branch != "main": raise BaseException("Not on main branch, refusing to continue: " + branch) # if branch != "main": # raise BaseException("Not on main branch, refusing to continue: " + branch) # check if any content in entries is dirty if EDITIONS[self.edition]["entry_folder"] in subprocess.check_output(["git", "status", "--porcelain"], text=True): raise BaseException("Some change in entries are uncommited, refusing to continue") Loading