{"id":18459037,"url":"https://github.com/liatrio/prune-stale-branches-action","last_synced_at":"2026-02-03T19:32:52.689Z","repository":{"id":221014937,"uuid":"750551953","full_name":"liatrio/prune-stale-branches-action","owner":"liatrio","description":"A GitHub Action that can be used to prune/cleanup stale and/or unused branches in a repository.","archived":false,"fork":false,"pushed_at":"2024-08-27T15:10:45.000Z","size":1746,"stargazers_count":1,"open_issues_count":2,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-27T17:50:32.110Z","etag":null,"topics":["actions","github-actions","stale"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liatrio.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-30T21:16:43.000Z","updated_at":"2024-09-16T17:47:31.000Z","dependencies_parsed_at":"2024-02-22T18:02:10.073Z","dependency_job_id":"b207bb3c-2c8f-4c1a-8ac5-b3ad866d06b3","html_url":"https://github.com/liatrio/prune-stale-branches-action","commit_stats":null,"previous_names":["liatrio/o11y-stale-branch-poc","liatrio/prune-stale-branches-action"],"tags_count":29,"template":false,"template_full_name":null,"purl":"pkg:github/liatrio/prune-stale-branches-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fprune-stale-branches-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fprune-stale-branches-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fprune-stale-branches-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fprune-stale-branches-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liatrio","download_url":"https://codeload.github.com/liatrio/prune-stale-branches-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liatrio%2Fprune-stale-branches-action/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29054723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-03T15:43:47.601Z","status":"ssl_error","status_checked_at":"2026-02-03T15:43:46.709Z","response_time":96,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions","stale"],"created_at":"2024-11-06T08:21:29.799Z","updated_at":"2026-02-03T19:32:52.669Z","avatar_url":"https://github.com/liatrio.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Prune Stale Branches GitHub Action\n\nThis repository is home to a GitHub Action that can be used to prune/cleanup stale/unused branches in a repository.\n\nPruning/cleaning up stale branches reduces overall cognitive overhead. This falls directly in line with the Engineering Defaults defined in [openo11y.dev][0].\n\n## Sample Usage\n\nTo use this action in your repository/repositories, simply add a workflow that'll call this action and provide the necessary inputs/config values.\n\nFor example, the following snippet is a workflow that will run the Prune Stale Branches Action once day at midnight (`cron: 0 0 * * *`) or whenever manually triggered (`workflow_dispatch`):\n\n```yaml\nname: Find \u0026 Prune Stale Branches\n\non:\n  workflow_dispatch: {}\n  schedule:\n    - cron: 0 0 * * *\n\njobs:\n  prune-stale-branches:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: liatrio/prune-stale-branches-action@v0.6.0\n        name: Run Prune Stale Branches Action\n        with:\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n          stale-branch-age: 1 month\n          stale-branch-issue-age: 7 days\n```\n\n## Reason for Creation\n\nReducing technical debt and cognitive overhead is essential for effective engineering.\nHaving tons of stale branches that have diverged from trunk is in-itself technical debt.\nThis stale action will automatically delete them if not addressed.\n\n\u003e Is 1000 open branches indicative of a poor engineering experience? Yes.\n\u003e\n\u003e One valid opinion on this is to reduce cognitive overhead and by running automation regularly to cleanup branches in the remote. We should POC a bot that:\n\u003e\n\u003e 1. automatically runs against n number of repos\n\u003e 2. checks the time they've been open\n\u003e 3. notifies a slack channel that a list of branches having been open longer than the given time are about to be deleted\n\u003e 4. deletes them if no\n\n[0]: https://openo11y.dev\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliatrio%2Fprune-stale-branches-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliatrio%2Fprune-stale-branches-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliatrio%2Fprune-stale-branches-action/lists"}