{"id":20985137,"url":"https://github.com/dlenski/github-lockify","last_synced_at":"2026-05-01T02:33:35.125Z","repository":{"id":84076987,"uuid":"303038356","full_name":"dlenski/github-lockify","owner":"dlenski","description":"Simple CLI tool for locking GitHub issues en masse.","archived":false,"fork":false,"pushed_at":"2024-11-13T20:29:11.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-03-11T04:20:35.554Z","etag":null,"topics":["cli","github","github-issues","python3"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dlenski.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-11T03:59:57.000Z","updated_at":"2024-11-13T20:29:16.000Z","dependencies_parsed_at":null,"dependency_job_id":"7789a6c3-0ced-4f8a-bb07-621e6b559154","html_url":"https://github.com/dlenski/github-lockify","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dlenski/github-lockify","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlenski%2Fgithub-lockify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlenski%2Fgithub-lockify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlenski%2Fgithub-lockify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlenski%2Fgithub-lockify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dlenski","download_url":"https://codeload.github.com/dlenski/github-lockify/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dlenski%2Fgithub-lockify/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32483406,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","github","github-issues","python3"],"created_at":"2024-11-19T05:55:31.151Z","updated_at":"2026-05-01T02:33:35.107Z","avatar_url":"https://github.com/dlenski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: GPL v3](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n\n# github-lockify\n\nSimple CLI tool for locking GitHub issues _en masse_.\n\nHandy if you have a project where users keep commenting on old, closed issues and you really want them to stop. 😬\n\n## Install\n\nRequires Python 3, `pip`, and [`requests`](https://docs.python-requests.org):\n\n```sh\n$ pip3 install https://github.com/dlenski/github-lockify/archive/master.zip\n```\n\n## How to use\n\nYou'll need a [GitHub personal access token with repo scope](https://github.com/settings/tokens)\nfor authentication.\n\nIf Github's [`hub` CLI](https://github.com/github/hub) and the [PyYAML](https://pyyaml.org) package are installed,\nthe script will attempt to use the token from `~/.config/hub`.\n(You can manually populate this file with `{\"github.com\": [{\"user\": \"$USERNAME\", \"oauth_token\": \"$TOKEN\"}]}` if you prefer.)\n\nIf run from a directory containing a Git repository, it will use `git remote -v` to autodetect\nthe default user and repository from the first `github.com` remote found.\n\n```\n$ github-lockify --help\nusage: github-lockify [-h] [-u USER] [-t TOKEN] [--do-it]\n                      [-r {off-topic,too heated,resolved,spam}] [-U DAYS]\n                      [-C DAYS] [--created-age DAYS] [-l LABEL] [-a USERNAME]\n                      [-c USERNAME]\n                      owner repo\n\nLock closed GitHub issues en masse.\n\npositional arguments:\n  owner                 GitHub repository owner\n  repo                  Github repository name\n\noptional arguments:\n  -h, --help            show this help message and exit\n  --do-it               Actually lock the issues (default is a dry-run where\n                        issues are simply listed).\n  -r {off-topic,too heated,resolved,spam}, --lock-reason {off-topic,too heated,resolved,spam}\n                        Lock-reason to apply (default resolved)\n\nAuthentication:\n  Not required for a dry-run (except on a private repo), but required to\n  actually lock issues.\n\n  -t TOKEN, --token TOKEN\n                        GitHub personal access token with repo scope (see\n                        https://github.com/settings/tokens).\n\nSelecting closed issues to lock:\n  All criteria must match in order for an issue to be locked.\n\n  -U DAYS, --updated-age DAYS\n                        Only lock if last UPDATED at least this many days ago\n  -C DAYS, --closed-age DAYS\n                        Only lock if CLOSED at least this many days ago\n  --created-age DAYS    Only lock if CREATED at least this many days ago\n  -l LABEL, --label LABEL\n                        Only lock if this label is applied (may be specified\n                        repeatedly to require multiple labels)\n  -a USERNAME, --assignee USERNAME\n                        Only lock if assigned to this user (\"none\" for\n                        unassigned)\n  -c USERNAME, --creator USERNAME\n                        Only lock if created by this user\n```\n\n## TODO\n\n* Allow locking open issues?\n\n## License\n\nGPLv3 or later\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlenski%2Fgithub-lockify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdlenski%2Fgithub-lockify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdlenski%2Fgithub-lockify/lists"}