GitXplorerGitXplorer
c

fork-cleaner

public
333 stars
17 forks
4 issues

Commits

List of commits on branch main.
Verified
98862105d23cf2a60d1595517b1a6a6d79d14144

build(deps): bump golang.org/x/oauth2 from 0.24.0 to 0.25.0 (#222)

ddependabot[bot] committed 13 days ago
Verified
9cd3cb17fa0ddcace42442e7c49b60438c1abb89

build(deps): bump golang.org/x/crypto from 0.17.0 to 0.31.0 (#221)

ddependabot[bot] committed a month ago
Verified
41aec4610a79dd3f8dbdd7a1a802c79e6060002a

build(deps): bump github.com/charmbracelet/bubbletea from 1.2.3 to 1.2.4 (#220)

ddependabot[bot] committed 2 months ago
Verified
eacd70da27e6b48ebfa33abc8a7b93b7d91e4c35

build(deps): bump github.com/charmbracelet/bubbletea from 1.2.2 to 1.2.3 (#219)

ddependabot[bot] committed 2 months ago
Verified
af7ef7a5d0a205b014513a54232eb526c97dab1b

build(deps): bump github.com/charmbracelet/bubbletea from 1.2.1 to 1.2.2 (#218)

ddependabot[bot] committed 2 months ago
Verified
34acad0e0241e86224b21637a7300ce49856cd6f

build(deps): bump github.com/charmbracelet/bubbletea from 1.2.0 to 1.2.1 (#217)

ddependabot[bot] committed 2 months ago

README

The README file for this repository.

fork-cleaner

Release Software License Build Status Go Report Card Godoc Powered By: GoReleaser

Quickly clean up old and inactive forks on your GitHub account.

Installation

Homebrew

brew install caarlos0/tap/fork-cleaner

snap

snap install fork-cleaner

apt

echo 'deb [trusted=yes] https://repo.caarlos0.dev/apt/ /' | sudo tee /etc/apt/sources.list.d/caarlos0.list
sudo apt update
sudo apt install fork-cleaner

yum

echo '[caarlos0]
name=caarlos0
baseurl=https://repo.caarlos0.dev/yum/
enabled=1
gpgcheck=0' | sudo tee /etc/yum.repos.d/caarlos0.repo
sudo yum install fork-cleaner

deb/rpm/apk

Download the .apk, .deb or .rpm from the latest release and install with the appropriate commands.

Manually

Download the binaries from the latest release or clone the repository and build from source.

Usage

You'll need to create a personal access token with repo and delete_repo permissions. You'll need to pass this token to fork-cleaner with the --token flag.

fork-cleaner --token "<token>"

fork-cleaner will load your forked repositories, displaying the oldest first. This can take a little while as fork-cleaner will iterate over the page of forks and check the upstream repository's status (e.g. checking for active PRs).

Troubleshooting

Taking forever to load?

The app hits various endpoints in order to collect information on the upstream repository, this can take a while if you have a lot of forks. Setting -skip-upstream=true will skip checking commits, issues, PRs, etc on each upstream repository, potentially alleviating this issue.

I've hit the rate limit.

You can check your current limits by calling GitHub's API:

curl -L \
  -H "Accept: application/vnd.github+json" \
  -H "Authorization: Bearer <YOUR-TOKEN>" \
  -H "X-GitHub-Api-Version: 2022-11-28" \
  https://api.github.com/rate_limit

Stargazers

Stargazers over time