feat(repos): Add audit logs when auto syncing repositories#112056
feat(repos): Add audit logs when auto syncing repositories#112056
Conversation
dc6db0b to
04ffffa
Compare
cefd1e8 to
394be4f
Compare
e1110fd to
9e370c5
Compare
394be4f to
e038a92
Compare
2e87a63 to
a342e00
Compare
e038a92 to
7af940e
Compare
b33f134 to
42a5298
Compare
7af940e to
c7591b2
Compare
c7591b2 to
5a69ed2
Compare
Add in audit logs whenever we automatically add, update or disable a repository via webhooks and periodic syncing
59f330b to
f466517
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 784ec6e. Configure here.
|
|
||
| if missing_repos: | ||
| raise RepoExistsError(repos=missing_repos) | ||
| return created_repos, repos_to_update, missing_repos |
There was a problem hiding this comment.
Spurious REPO_ENABLED logs for already-active repos
Low Severity
The second return value of create_repositories (repos_to_update) is documented as "reactivated" repos, but it also includes repos found via the fallback path at lines 296–303 when create_repository returns None. These repos already exist with the same integration and may already be ACTIVE. Callers treat the entire list as reactivated and emit REPO_ENABLED audit logs for each, producing incorrect customer-facing audit entries for repos that were never actually disabled.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 784ec6e. Configure here.
|
PR reverted: 2765803 |


Add in audit logs whenever we automatically add, update or disable a repository via webhooks and periodic syncing