Skip to content

Add organization option to back up public repos of an org/group - #47

Open
gebi wants to merge 4 commits into
ChappIO:mainfrom
gebi:organization-backup
Open

gebi wants to merge 4 commits into
ChappIO:mainfrom
gebi:organization-backup

Conversation

@gebi

@gebi gebi commented Oct 14, 2026 •

Copy link
Copy Markdown

Adds an organization config option for both GitHub and GitLab jobs to back up all publicly reachable repositories of an organization or user (GitHub) or a group incl. subgroups or user (GitLab), also when you are not a member of it.

  • Found repos are merged with the other discovery mechanisms, just like repositories
  • User accounts work too, not just organizations/groups
  • exclude is applied to them as usual (whole org or single repo)
  • README config example updated for both providers
github:
  - access_token: ...
    organization:
      - golang
    exclude:
      - golang/go

Tested against the live APIs: GitHub org golang (60 public repos, golang/go excluded) and GitLab group gnuwget (4 projects, gnuwget/wget2 excluded).

🤖 Generated with Claude Code

gebi and others added 4 commits October 14, 2026 12:27
Lists all public repositories of the given GitHub organizations or
GitLab groups (including subgroups), also when not a member. Results are
merged with the other discovery mechanisms and filtered by exclude.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/orgs/{name}/repos returns 404 for user accounts. Use /users/{name}/repos
instead, which lists public repos of both organizations and users.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/groups/{id}/projects returns 404 for user namespaces. Fall back to
/users/{id}/projects in that case, and name the failing entry in the
error.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.

1 participant