{"id":15018150,"url":"https://github.com/lswith/probot-require-label","last_synced_at":"2026-03-16T00:10:37.831Z","repository":{"id":38375578,"uuid":"195313954","full_name":"lswith/probot-require-label","owner":"lswith","description":"A Probot that applies a label to issues and/or PRs that do not have any labels matching a regular expression","archived":false,"fork":false,"pushed_at":"2023-01-06T02:01:17.000Z","size":1998,"stargazers_count":1,"open_issues_count":23,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-18T18:50:13.740Z","etag":null,"topics":["probot","probot-app"],"latest_commit_sha":null,"homepage":null,"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/lswith.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":null,"security":null,"support":null}},"created_at":"2019-07-05T00:21:25.000Z","updated_at":"2023-01-31T17:23:57.000Z","dependencies_parsed_at":"2023-02-05T02:16:26.976Z","dependency_job_id":null,"html_url":"https://github.com/lswith/probot-require-label","commit_stats":null,"previous_names":[],"tags_count":23,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lswith%2Fprobot-require-label","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lswith%2Fprobot-require-label/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lswith%2Fprobot-require-label/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lswith%2Fprobot-require-label/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lswith","download_url":"https://codeload.github.com/lswith/probot-require-label/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":232076831,"owners_count":18469262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["probot","probot-app"],"created_at":"2024-09-24T19:51:33.842Z","updated_at":"2025-09-23T02:32:35.346Z","avatar_url":"https://github.com/lswith.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Require Label Bot\n\n[![Downloads][npm-downloads]][npm-url] [![version][npm-version]][npm-url]\n[![Build Status][travis-status]][travis-url]\n\nA [Probot](https://probot.github.io) bot to make sure that a given label is added\nto specific issues and pull requests when all other labels do not match a regex.\n\n## Setup\n\nAdd a `.github/relabel.yml` file to your repository and then run the bot against it.\n\nIf the config is empty or doesn't exist, the bot will not run.\n\n```yml\n# This example configuration will add the `needs-area` and `needs-type` labels\n# to any new issue and pull request that do not have labels matching `area:.*` or `type:.*`.\n# Once the issue or the pull request has the `area:.....` label added the `needs-area` label will be \n# removed from the issue or pull request.\nissues:\n    # The missing label which will be added to issues if the regex doesn't match any other labels\n  - missingLabel: needs-area\n    regex: area:.*\n  - missingLabel: needs-type\n    regex: type:.*\npulls:\n    # The missing label which will be added to pull requests if the regex doesn't match any other labels\n  - missingLabel: needs-area\n    regex: area:.*\n  - missingLabel: needs-type\n    regex: type:.*\n```\n\n### Backwards compatibility\nPrevious version of the bot will still work with current version, as the schema for the configuration file does not change the structure. So it's possible to upgrade and keep old configuration:\n\n```yaml\n# The old format matches the new one, using a different name\nrequiredLabels:\n  - missingLabel: needs-area\n    regex: area:.*\n  - missingLabel: needs-type\n    regex: type:.*\n```\n\n## Contribute\n\nIf you have suggestions for how this bot could be improved, or want to report a bug, open an issue! We'd love all and any contributions.\n\n[travis-status]: https://travis-ci.org/lswith/probot-require-label.svg?branch=master\n[travis-url]: https://travis-ci.org/lswith/probot-require-label\n[npm-downloads]: https://img.shields.io/npm/dm/probot-require-label.svg?style=flat\n[npm-version]: https://img.shields.io/npm/v/probot-require-label.svg?style=flat\n[npm-url]: https://www.npmjs.com/package/probot-require-label\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flswith%2Fprobot-require-label","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flswith%2Fprobot-require-label","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flswith%2Fprobot-require-label/lists"}