Skip to content

fix(repositories): Make sure that the repo-sync only disables tasks that haven't had any related activity for 30 days#114005

Merged
wedamija merged 2 commits intomasterfrom
danf/repo-sync-make-sure-repo-has-no-recent-activity
Apr 27, 2026
Merged

fix(repositories): Make sure that the repo-sync only disables tasks that haven't had any related activity for 30 days#114005
wedamija merged 2 commits intomasterfrom
danf/repo-sync-make-sure-repo-has-no-recent-activity

Conversation

@wedamija
Copy link
Copy Markdown
Member

This adds in one more failsafe to the repo-sync to make sure that we don't inadvertently disable repositories that are in use. We Commit, PullRequest and CodeReviewEvent to make sure no recent rows were added that are associated with the repostiory.

…hat haven't had any related activity for 30 days

This adds in one more failsafe to the repo-sync to make sure that we don't inadvertently disable repositories that are in use. We `Commit`, `PullRequest` and `CodeReviewEvent` to make sure no recent rows were added that are associated with the repostiory.
@wedamija wedamija requested a review from a team April 24, 2026 23:41
@wedamija wedamija requested review from a team as code owners April 24, 2026 23:41
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Apr 24, 2026
Copy link
Copy Markdown
Contributor

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 44e34e8. Configure here.

Comment thread src/sentry/integrations/source_code_management/sync_repos.py
Comment thread src/sentry/integrations/source_code_management/sync_repos.py Outdated
@wedamija wedamija merged commit 5c73b35 into master Apr 27, 2026
57 checks passed
@wedamija wedamija deleted the danf/repo-sync-make-sure-repo-has-no-recent-activity branch April 27, 2026 21:06
cleptric pushed a commit that referenced this pull request May 5, 2026
…hat haven't had any related activity for 30 days (#114005)

This adds in one more failsafe to the repo-sync to make sure that we
don't inadvertently disable repositories that are in use. We `Commit`,
`PullRequest` and `CodeReviewEvent` to make sure no recent rows were
added that are associated with the repostiory.

<!-- Describe your PR here. -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants