Skip to content

Conversation

@anandnalya
Copy link

Add validation to detect archived repositories during discovery and sync phases. The extraction will fail with ArchivedRepositoryError if a repository is archived, unless 'extract_archived' is set to 'true' in the config.

Changes:

  • Add ArchivedRepositoryError exception class
  • Add extract_archived config option (default: false)
  • Add check_repo_archived() method to verify repo status via GitHub API
  • Integrate archived check into verify_access_for_repo()
  • Handle archived repos efficiently in get_all_repos() for org/* wildcards

Description of change

(write a short description or paste a link to JIRA)

Manual QA steps

Risks

Rollback steps

  • revert this branch

Add validation to detect archived repositories during discovery and sync
phases. The extraction will fail with ArchivedRepositoryError if a
repository is archived, unless 'extract_archived' is set to 'true' in
the config.

Changes:
- Add ArchivedRepositoryError exception class
- Add extract_archived config option (default: false)
- Add check_repo_archived() method to verify repo status via GitHub API
- Integrate archived check into verify_access_for_repo()
- Handle archived repos efficiently in get_all_repos() for org/* wildcards
@anandnalya anandnalya marked this pull request as ready for review November 25, 2025 01:48
@jcellary jcellary merged commit 39ccb79 into master Dec 4, 2025
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.

4 participants