dseven labs

Archive stale Bitbucket repos. Start new ones from a template.

Repo Gardener for Bitbucket is an Atlassian Forge app by dseven labs. It archives Bitbucket Cloud repositories (making them read-only), lists the stale ones, and creates new repositories from templates that copy your branch rules, reviewers and settings. Free to try.

  • Works on Bitbucket Cloud
  • Data stays in Atlassian Forge
  • Free evaluation
The Repo Gardener dashboard inside Bitbucket: a list of repositories with their status and an Archive button on each row

Bitbucket Cloud has no archive button and no templates. Repo Gardener adds both.

Archive a Bitbucket repository (read-only)

Archiving makes a repository read-only, and unarchive puts everything back.

  • Pushes, force-pushes, branch deletes and merges are blocked on every branch
  • The description gets an ARCHIVED prefix so lists show it
  • Optionally moves the repository into an archive project
  • A required merge check blocks merges even if someone deletes a rule
What this is not. Bitbucket Cloud has no archive flag, so this uses branch restrictions and a merge check. Tags, comments and wiki edits are not frozen, and a repository admin can remove the rules. If that happens, Repo Gardener puts them back on the next push and records it.
The Stale repos tab in Repo Gardener with buttons for 90, 180 and 365 days

Find stale repositories

The Stale repos tab lists active repositories with no push for 90, 180 or 365 days, oldest first, with an Archive button on each row.

It uses Bitbucket’s repository updated time, which moves on a push. Pull request and comment activity does not move it, so look before you archive. You can always unarchive.

The Create repository from template form in Repo Gardener, with fields for the new slug, project, description, service name and owner team

Create Bitbucket repositories from a template

Save any repository as a template, then create new repositories from it with one form. A new repository gets:

  • Text files (up to 150 files or 800 KB), committed fresh with no history
  • Branch restrictions, default reviewers, the branching model and settings
  • Pipeline variable names. Secured values cannot be read, so they are created as CHANGE_ME

Put {{service_name}} and {{owner_team}} in README.md, bitbucket-pipelines.yml or CODEOWNERS and the form fills them in. History, binaries, Git LFS, symlinks and executable bits are not copied.

Plans are per Bitbucket workspace, not per user. Try it free. Pay when you need more.

Evaluation

Free

To see it work in your workspace.

  • 3 archived repositories
  • 3 templates
  • No license key needed
Install free

Business

$99 / month

For a large workspace with many repositories.

  • 500 archived repositories
  • 100 templates
  • License key for one workspace
Request a Business key

Install in one click and choose your workspace. To upgrade, email us and we reply with a payment link and your license key. If a subscription lapses, existing archives stay locked and you can still unarchive them. You never pay to unarchive.

Questions people ask first Straight answers.

How do I archive a repository in Bitbucket Cloud?

Bitbucket Cloud has no archive button. Atlassian’s own workaround is a separate project for inactive repositories with restricted permissions. Repo Gardener does it in one click instead: it blocks pushes, force-pushes, branch deletes and merges on every branch and adds an ARCHIVED prefix, and you can unarchive at any time.

Does Bitbucket Cloud have repository templates?

Not built in. Repo Gardener saves any repository as a template, then creates new repositories that copy its files, branch rules, default reviewers and settings.

What do I need to use it?

A Bitbucket Cloud workspace. Repository admin permission archives or unarchives a repository, and workspace admin changes settings, redeems a license key and deletes templates. There is one setup step: enable the custom merge check Archived repositories are read-only as Required for branch pattern *. The app’s settings page walks you through it.

Does it work on Bitbucket Data Center or Server?

No. Repo Gardener is for Bitbucket Cloud only.

Does Repo Gardener see or store my code?

It reads files from a template repository only to copy them into the new repository. It does not store file contents, and there is no external server. See the privacy policy for what is stored.

Where is my data kept?

In Atlassian’s Forge storage for your workspace, not on our servers.

What happens if I stop paying?

Existing archives stay locked and you can still unarchive them. New archives and templates beyond the free limits need an active plan.

Is there a free plan?

Yes. The evaluation covers 3 archived repositories and 3 templates with no license key.

Is this made by Atlassian?

No. Repo Gardener is made by dseven labs and is not endorsed by Atlassian.

Something went wrong. Who do I ask?

Email support@dsevenlabs.com. The support page lists fixes for the common problems.

Tidy your Bitbucket today.

Install it free in one click. Upgrade later only if you need more.