Skip to content

Commit 6bab863

Browse files
committed
More changes
1 parent c4b15e3 commit 6bab863

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sentry/tasks/commits.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)