Fix error retrieving diff

This commit is contained in:
alstr 2021-03-28 10:13:25 +01:00
parent 0e88f71450
commit 8e45236b11

View File

@ -443,7 +443,7 @@ if __name__ == "__main__":
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.
fallback_parser.main()
else:
elif os.getenv('INPUT_BEFORE') != '0000000000000000000000000000000000000000':
# Create a basic client for communicating with GitHub, automatically initialised with environment variables.
client = GitHubClient()
# Get the diff from the last pushed commit.