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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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