gitops-repo-pruner

command module
v0.0.0-...-dda0456 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

README

gitops-repo-pruner

NOTE This repository has been archived

Usage:

The tool requires that the GITHUB_TOKEN environment variable be exported before using it. The token that you use, must have sufficient permissions to delete repositories from the specified org.

To delete invalid repositories in the GitOps org (up to 1000 at a time) run:

./gitops-repo-gc --operation delete-invalid

To delete repositories by a given keyword run:

./gitops-repo-gc --operation delete-by-keyword --keyword some-keyword

Build

To build, run:

make build

Deploy

To deploy the CronJob for the Pruner, run:

make deploy

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL