Skip to content

Commit

Permalink
♻️ refactor: release note
Browse files Browse the repository at this point in the history
  • Loading branch information
Zerohertz committed Oct 31, 2024
1 parent e0cbb44 commit 4f75e32
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions sphinx/release_note.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,20 @@

import zerohertzLib as zz

if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--token")
args = parser.parse_args()

def main():
logger.info(f"zerohertzLib version: {zz.__version__}")
sphinx = os.path.dirname(__file__)
if args.token is None:
gh = zz.api.GitHub()
else:
gh = zz.api.GitHub(token=args.token)
gh.release_note(sphinx_source_path=os.path.join(sphinx, "source"), per_page=300)


if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--token")
args = parser.parse_args()
logger = zz.logging.Logger("Release Note")
main()

0 comments on commit 4f75e32

Please sign in to comment.