Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Clone All Repositories From One GitHub Organization

This repository demonstrates a simple Ona setup for multi-repository workspaces.

When the environment is prebuilt, Ona runs an automation that clones every repository from a GitHub organization into /workspaces/all. VS Code opens at /workspaces, so the source repository and all cloned repositories are visible side by side.

How It Works

Manual or prebuild automation
  -> authenticate gh with the Git credential helper
  -> list repositories in the configured GitHub organization
  -> clone missing repositories into /workspaces/all
  -> skip repositories that already exist locally

Files To Look At

  • .ona/automations.yaml defines the automation and when it runs.
  • scripts/clone-org-repositories.sh contains the cloning logic.
  • .devcontainer/devcontainer.json opens VS Code at /workspaces.
  • .devcontainer/Dockerfile installs the GitHub CLI.

Run It Manually

The automation also runs during prebuilds, but you can run it any time:

gitpod automations task start clone-org-repositories

Repositories are cloned into:

/workspaces/all/<repository-name>

If you run the automation again, existing repositories are skipped.

Customize It

To use this pattern with another organization, change ORGANIZATION in scripts/clone-org-repositories.sh:

ORGANIZATION="your-github-org"

To use another clone location, change DESTINATION_ROOT in the same script.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages