File tree Expand file tree Collapse file tree
.github/actions/link-check Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,7 +73,8 @@ def generate_issue_body(broken_links: list[BrokenLink]) -> str:
7373
7474---
7575This issue will be auto updated regularly if link issues are found.
76- You may close it if you wish, though a new one will be created if link issues are still present.
76+ You may close it if you wish.
77+ Though a new one will be created if link issues are still present.
7778
7879"""
7980
@@ -85,11 +86,11 @@ def strip_ansi_codes(text: str) -> str:
8586
8687
8788if __name__ == "__main__" :
88- argparse = argparse .ArgumentParser (
89+ arg = argparse .ArgumentParser (
8990 description = "Parse broken links from Sphinx log and generate issue body."
9091 )
91- argparse .add_argument ("logfile" , type = str , help = "Path to the Sphinx log file." )
92- args = argparse .parse_args ()
92+ arg .add_argument ("logfile" , type = str , help = "Path to the Sphinx log file." )
93+ args = arg .parse_args ()
9394 with open (args .logfile ) as f :
9495 log_content_raw = f .read ()
9596 log_content = strip_ansi_codes (log_content_raw )
You can’t perform that action at this time.
0 commit comments