{"id":15629857,"url":"https://github.com/timonvs/pr-labeler-action","last_synced_at":"2025-05-16T11:06:23.233Z","repository":{"id":37540341,"uuid":"179831567","full_name":"TimonVS/pr-labeler-action","owner":"TimonVS","description":"Automatically labels your PRs based on branch name patterns like feature/* or fix/*.","archived":false,"fork":false,"pushed_at":"2024-02-13T13:55:00.000Z","size":1222,"stargazers_count":254,"open_issues_count":19,"forks_count":52,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-10T15:57:40.633Z","etag":null,"topics":["actions","github","github-actions"],"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/TimonVS.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-04-06T12:37:20.000Z","updated_at":"2025-05-09T07:46:51.000Z","dependencies_parsed_at":"2023-02-08T12:15:15.608Z","dependency_job_id":"47ccba3c-68d3-4572-844d-f24c79170f91","html_url":"https://github.com/TimonVS/pr-labeler-action","commit_stats":{"total_commits":90,"total_committers":15,"mean_commits":6.0,"dds":"0.30000000000000004","last_synced_commit":"9de3270d8cac2f0be966127f6740b04fe001f9ff"},"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Fpr-labeler-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Fpr-labeler-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Fpr-labeler-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimonVS%2Fpr-labeler-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimonVS","download_url":"https://codeload.github.com/TimonVS/pr-labeler-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254518383,"owners_count":22084374,"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":["actions","github","github-actions"],"created_at":"2024-10-03T10:29:21.911Z","updated_at":"2025-05-16T11:06:18.212Z","avatar_url":"https://github.com/TimonVS.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PR Labeler\n\n[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors)\n\nA GitHub Action that automatically applies labels to your PRs based on branch name patterns like `feature/*` or `fix/*`.\nCan be used in combination with [Release Drafter](https://github.com/toolmantim/release-drafter) to automatically [categorize pull requests](https://github.com/toolmantim/release-drafter#categorize-pull-requests).\n\n## Usage\n\nAdd `.github/workflows/pr-labeler.yml` with the following:\n\n```yml\nname: PR Labeler\non:\n  pull_request:\n    types: [opened]\n\npermissions:\n  contents: read\n\njobs:\n  pr-labeler:\n    permissions:\n      contents: read # for TimonVS/pr-labeler-action to read config file\n      pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR\n    runs-on: ubuntu-latest\n    steps:\n      - uses: TimonVS/pr-labeler-action@v5\n        with:\n          repo-token: ${{ secrets.GITHUB_TOKEN }}\n          configuration-path: .github/pr-labeler.yml # optional, .github/pr-labeler.yml is the default value\n```\n\n## Configuration\n\nConfigure by creating a `.github/pr-labeler.yml` file.\n\nFor example:\n\n```yml\nfeature: ['feature/*', 'feat/*']\nfix: fix/*\nchore :hammer:: chore/*\n```\n\nThen if a pull request is opened with the branch name `feature/218-add-emoji-support` the Action will automatically apply the `feature` label.\n\nSimilarly, if a pull requests is opened with the branch name `fix/weird-bug` or `chore/annual-refactoring-job`, the Action will apply the `fix` or `chore 🔨` label, respectively.\n\nIf the label does not exist in your repo, a new one will be created (with no color and blank description), but it will not be permanently saved to the `github.com/\u003cyour_repo\u003e/labels` page.\n\n### Wildcard branches in configuration\n\nYou can use `*` as a wildcard for matching multiple branch names. See https://www.npmjs.com/package/matcher for more information about wildcard options.\n\n### Default configuration\n\nWhen no configuration is provided, the following defaults will be used:\n\n```yml\nfeature: ['feature/*', 'feat/*']\nfix: 'fix/*'\nchore: 'chore/*'\n```\n\n## Contributors ✨\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --\u003e\n\u003c!-- prettier-ignore --\u003e\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://www.timonvanspronsen.nl/\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/876666?v=4\" width=\"100px;\" alt=\"Timon van Spronsen\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eTimon van Spronsen\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/TimonVS/pr-labeler-action/commits?author=TimonVS\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"#ideas-TimonVS\" title=\"Ideas, Planning, \u0026 Feedback\"\u003e🤔\u003c/a\u003e \u003ca href=\"https://github.com/TimonVS/pr-labeler-action/commits?author=TimonVS\" title=\"Tests\"\u003e⚠️\u003c/a\u003e \u003ca href=\"https://github.com/TimonVS/pr-labeler-action/commits?author=TimonVS\" title=\"Documentation\"\u003e📖\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"http://clemensbastian.de\"\u003e\u003cimg src=\"https://avatars2.githubusercontent.com/u/8781699?v=4\" width=\"100px;\" alt=\"Clemens Bastian\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eClemens Bastian\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/TimonVS/pr-labeler-action/commits?author=amacado\" title=\"Code\"\u003e💻\u003c/a\u003e \u003ca href=\"https://github.com/TimonVS/pr-labeler-action/commits?author=amacado\" title=\"Documentation\"\u003e📖\u003c/a\u003e \u003ca href=\"https://github.com/TimonVS/pr-labeler-action/issues?q=author%3Aamacado\" title=\"Bug reports\"\u003e🐛\u003c/a\u003e\u003c/td\u003e\n    \u003ctd align=\"center\"\u003e\u003ca href=\"https://github.com/hugo-vrijswijk\"\u003e\u003cimg src=\"https://avatars3.githubusercontent.com/u/10114577?v=4\" width=\"100px;\" alt=\"Hugo van Rijswijk\"/\u003e\u003cbr /\u003e\u003csub\u003e\u003cb\u003eHugo van Rijswijk\u003c/b\u003e\u003c/sub\u003e\u003c/a\u003e\u003cbr /\u003e\u003ca href=\"https://github.com/TimonVS/pr-labeler-action/commits?author=hugo-vrijswijk\" title=\"Code\"\u003e💻\u003c/a\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n\u003c!-- ALL-CONTRIBUTORS-LIST:END --\u003e\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonvs%2Fpr-labeler-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimonvs%2Fpr-labeler-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimonvs%2Fpr-labeler-action/lists"}