Skip to content

utils.py: Do not query GitHub's API at all with '--gh-json-file'#113

Merged
nathanchance merged 1 commit into
ClangBuiltLinux:mainfrom
nathanchance:avoid-gh-api-queries-with-gh-json-file
Aug 21, 2023
Merged

utils.py: Do not query GitHub's API at all with '--gh-json-file'#113
nathanchance merged 1 commit into
ClangBuiltLinux:mainfrom
nathanchance:avoid-gh-api-queries-with-gh-json-file

Conversation

@nathanchance

Copy link
Copy Markdown
Member

Occasionally, I have noticed the occasional failure to query GitHub's
rate limit API for various reasons, even when providing an up to date
release JSON file via '--gh-json-file'. A rate limit query is unneeded
in this instance because we are not going to query GitHub's API for the
latest release information, as it has already been provided to us by the
user.

Restructure the code so that the rate limit API is only queried when we
will actually need to query the API for the latest release.

Occasionally, I have noticed the occasional failure to query GitHub's
rate limit API for various reasons, even when providing an up to date
release JSON file via '--gh-json-file'. A rate limit query is unneeded
in this instance because we are not going to query GitHub's API for the
latest release information, as it has already been provided to us by the
user.

Restructure the code so that the rate limit API is only queried when we
will actually need to query the API for the latest release.

Signed-off-by: Nathan Chancellor <nathan@kernel.org>
@nathanchance nathanchance merged commit 7763678 into ClangBuiltLinux:main Aug 21, 2023
@nathanchance nathanchance deleted the avoid-gh-api-queries-with-gh-json-file branch August 21, 2023 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants