Skip to content

docs: document automatic cleanup on GitHub repository transfer TAROT-3749#2696

Merged
jorgebraz merged 3 commits into
masterfrom
TAROT-3749-repository-transfer-cleanup
Jul 7, 2026
Merged

docs: document automatic cleanup on GitHub repository transfer TAROT-3749#2696
jorgebraz merged 3 commits into
masterfrom
TAROT-3749-repository-transfer-cleanup

Conversation

@jorgebraz

@jorgebraz jorgebraz commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Summary

  • GitHub only sends the transferred webhook 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.
  • Codacy now automatically removes the repository from the original organization when both the original and destination GitHub organizations are added to Codacy. The destination organization doesn't need a paid plan or any repositories added — just the Codacy GitHub App installed (common for a dedicated "archive" org).
  • Documents this in organizations/managing-repositories.md (new section) and the provider-support table in organizations/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

  • Verified all new internal links/anchors resolve to existing files and section ids
  • Check the preview links above to confirm rendering

…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>
@jorgebraz jorgebraz requested a review from a team as a code owner July 7, 2026 10:05
@codacy-production

Copy link
Copy Markdown
Contributor

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

AI Reviewer: first review requested successfully. AI can make mistakes. Always validate suggestions.

Run reviewer

TIP This summary will be updated as you push new changes.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Overall readability score: 54.3 (🟢 +0.04)

File Readability
what-are-organizations.md 48.49 (🔴 -1.7)
managing-repositories.md 54.21 (🔴 -3.97)
View detailed metrics

🟢 - Shows an increase in readability
🔴 - Shows a decrease in readability

File Readability FRE GF ARI CLI DCRS
what-are-organizations.md 48.49 20.68 10.68 14.1 14.73 6.86
  🔴 -1.7 🔴 -0.31 🔴 -0.02 🔴 -0.6 🔴 -0.46 🔴 -0.03
managing-repositories.md 54.21 26.1 10.31 13.8 13.23 6.35
  🔴 -3.97 🔴 -0.91 🔴 -0.42 🔴 -1.2 🔴 -0.87 🔴 -0.04

Averages:

  Readability FRE GF ARI CLI DCRS
Average 54.3 43.3 10.89 12.3 12.24 8.01
  🟢 +0.04 🟢 +0.12 🟢 +0.01 🟢 +0 🟢 +0 🟢 +0
View metric targets
Metric Range Ideal score
Flesch Reading Ease 100 (very easy read) to 0 (extremely difficult read) 60
Gunning Fog 6 (very easy read) to 17 (extremely difficult read) 8 or less
Auto. Read. Index 6 (very easy read) to 14 (extremely difficult read) 8 or less
Coleman Liau Index 6 (very easy read) to 17 (extremely difficult read) 8 or less
Dale-Chall Readability 4.9 (very easy read) to 9.9 (extremely difficult read) 6.9 or less

@github-actions github-actions Bot temporarily deployed to Netlify July 7, 2026 10:06 Inactive

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

Comment thread docs/faq/repositories/i-moved-my-repository-on-the-git-provider.md Outdated
Comment thread docs/organizations/managing-repositories.md Outdated

@codacy-production codacy-production Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread docs/organizations/what-are-organizations.md Outdated
Comment thread docs/organizations/managing-repositories.md Outdated
Comment thread docs/faq/repositories/i-moved-my-repository-on-the-git-provider.md Outdated
Comment thread docs/organizations/what-are-organizations.md Outdated
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>
@github-actions github-actions Bot temporarily deployed to Netlify July 7, 2026 10:15 Inactive
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>
@github-actions github-actions Bot temporarily deployed to Netlify July 7, 2026 10:26 Inactive
@jorgebraz jorgebraz merged commit 8be27f8 into master Jul 7, 2026
5 checks passed
@jorgebraz jorgebraz deleted the TAROT-3749-repository-transfer-cleanup branch July 7, 2026 15:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants