File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,9 @@ def fetch_commits(
215215 pass
216216
217217 organization = release .organization
218+ github_compare_commits_cache_feature_enabled = features .has (
219+ GITHUB_FETCH_COMMITS_COMPARE_CACHE_FEATURE , organization , actor = user
220+ )
218221
219222 for ref in refs :
220223 resolved = get_repo_and_provider_for_ref (release = release , ref = ref , user_id = user_id )
@@ -259,9 +262,7 @@ def fetch_commits(
259262 try :
260263 provider_name = repo .provider
261264 compare_commits_cache_enabled = (
262- features .has (
263- GITHUB_FETCH_COMMITS_COMPARE_CACHE_FEATURE , organization , actor = user
264- )
265+ github_compare_commits_cache_feature_enabled
265266 and isinstance (provider_name , str )
266267 and provider_name in GITHUB_CACHEABLE_REPOSITORY_PROVIDERS
267268 and start_sha is not None
You can’t perform that action at this time.
0 commit comments