mirror of
https://github.com/ditkrg/todo-to-issue-action.git
synced 2026-01-23 06:16:43 +00:00
Fix error retrieving diff
This commit is contained in:
parent
0e88f71450
commit
8e45236b11
2
main.py
2
main.py
@ -443,7 +443,7 @@ if __name__ == "__main__":
|
|||||||
if os.getenv('INPUT_COMMENT_MARKER') and os.getenv('INPUT_LABEL'):
|
if os.getenv('INPUT_COMMENT_MARKER') and os.getenv('INPUT_LABEL'):
|
||||||
# The user doesn't want to use the v3.x parser for whatever reason.
|
# The user doesn't want to use the v3.x parser for whatever reason.
|
||||||
fallback_parser.main()
|
fallback_parser.main()
|
||||||
else:
|
elif os.getenv('INPUT_BEFORE') != '0000000000000000000000000000000000000000':
|
||||||
# Create a basic client for communicating with GitHub, automatically initialised with environment variables.
|
# Create a basic client for communicating with GitHub, automatically initialised with environment variables.
|
||||||
client = GitHubClient()
|
client = GitHubClient()
|
||||||
# Get the diff from the last pushed commit.
|
# Get the diff from the last pushed commit.
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user