docs: document automatic cleanup on GitHub repository transfer TAROT-3749#2696
Conversation
…3749 GitHub only notifies the destination organization when a repository is transferred, so Codacy previously had no way to detect and remove it from the original organization. Document the new automatic cleanup behavior and its requirements (both orgs added to Codacy), including the common "archive org" use case. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Up to standards ✅🟢 Issues
|
|
Overall readability score: 54.3 (🟢 +0.04)
View detailed metrics🟢 - Shows an increase in readability
Averages:
View metric targets
|
There was a problem hiding this comment.
Code Review
This pull request updates the documentation to describe how Codacy automatically handles repository transfers between organizations on GitHub when both the original and destination organizations are added to Codacy. The review feedback points out a logical error in two files where the text incorrectly references the 'original' organization instead of the 'destination' organization as the condition for automatic detection failure, providing suggestions to correct this.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Pull Request Overview
While the PR successfully documents the new automated cleanup feature for GitHub repository transfers, there are logical inconsistencies that could mislead users. The documentation currently states that the 'original' organization must be integrated for cleanup to work; however, since the repository already exists in Codacy under that organization, the real requirement for the automation is that the 'destination' organization is integrated to receive the GitHub transfer webhook. Furthermore, the Git provider support table incorrectly lists GitHub Enterprise (on-premises) as a supported platform for this automation, whereas it is restricted to GitHub Cloud and GitHub Enterprise Cloud. Codacy analysis indicates the PR is otherwise up to standards with no new quality issues reported.
About this PR
- The documentation consistently refers to the 'original' organization as the integration requirement for automated cleanup. However, the automated logic relies on the destination organization receiving the 'transferred' event. If the original organization wasn't already in Codacy, the repository wouldn't exist to be cleaned up. The 'failure to detect' logic should focus on whether the destination organization is added.
Test suggestions
- Verify documentation specifies the 'both organizations' requirement for GitHub transfers.
- Verify documentation clarifies that repositories are not automatically added to the destination.
- Verify the provider support table correctly highlights GitHub-only support for this automation.
- Verify internal links between FAQ and organization management pages are correct and use existing anchors.
TIP Improve review quality by adding custom instructions
TIP How was this review? Give us feedback
The manual GitLab/Bitbucket workaround it described doesn't belong on this page. Point the nav entry, old redirects, and the remaining cross-link to the existing removing-your-repository doc instead. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
The automatic cleanup actually fails to trigger when the destination organization isn't added to Codacy (that's what installs the app and lets the transfer webhook reach Codacy), not the original one, which is already guaranteed to exist since the repository is tracked there. Also fix the "GitHub Enterprise" row in the provider table: it refers to GitHub Enterprise Server, which is Codacy Self-hosted only and can't reach the Cloud-only transfer webhook handler, so it should read "No" rather than "Yes*". Fixes a pre-existing "Se also" typo nearby. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Summary
transferredwebhook event to the destination organization when a repository moves between organizations, so Codacy previously had no way to detect and clean it up from the original organization.organizations/managing-repositories.md(new section) and the provider-support table inorganizations/what-are-organizations.md.Jira: https://codacy.atlassian.net/browse/TAROT-3749
Preview
https://tarot-3749-repository-transfer-clea--docs-codacy.netlify.app
Pages updated:
Test plan