File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3838## --------------------------------------------------------------------------- #
3939
4040
41+ ### Environment Variables ----
42+ TOKEN : str | None = os .environ .get ("GITHUB_TOKEN" )
43+ REPOSITORY_NAME : str | None = os .environ .get ("REPOSITORY_NAME" )
44+ if TOKEN is None :
45+ raise RuntimeError (
46+ "Environment variable `GITHUB_TOKEN` is not set. Please set it before running the script."
47+ )
48+ if REPOSITORY_NAME is None :
49+ raise RuntimeError (
50+ "Environment variable `REPOSITORY_NAME` is not set. Please set it before running the script."
51+ )
52+
53+
54+ ### Static ----
4155OUTPUT_FILENAME : str = "CHANGELOG.md"
4256OUTPUT_FILEPATH : Path = Path (OUTPUT_FILENAME )
43- TOKEN : str = os .environ ["GITHUB_TOKEN" ]
44- REPOSITORY_NAME : str = os .environ ["REPOSITORY_NAME" ]
4557AUTH : Token = Auth .Token (TOKEN )
4658NEW_LINE : str = "\n "
4759BLANK_LINE : str = "\n \n "
You can’t perform that action at this time.
0 commit comments