{"repo":"jimschubert/labeler-action","free":true,"listed":false,"github":"https://github.com/jimschubert/labeler-action","clone":"git clone https://github.com/jimschubert/labeler-action.git","description":"GitHub Action allowing for applying labels to issues and pull requests based on patterns found in the title or description.","language":"Go","stars":44,"topics":["labeler","labeler-action","github-actions","hacktoberfest","go","golang"],"license":"Apache-2.0","category":"workflow-automation","readme_excerpt":"labeler-action GitHub Action allowing for applying labels to issues and pull requests based on patterns found in the title or description. Deprecation Notice ⚠️ The GITHUB TOKEN input is deprecated and will be removed in v3. Pass the token via env instead: Usage Define .github/labeler.yml This action requires a configuration file defined at .github/labeler.yml in your repository. The contents must follow either the simple schema or the full schema shown below. NOTE The file must exist on your release branch (e.g. master , main , etc.). Feel free to use one of the following schema examples to get started. Simple Schema Full Schema Create a Workflow The action requires the GITHUB TOKEN environment variable. This token allows the action to access the GitHub API for your account. Workflows automatically provide a default GITHUB TOKEN , which provides full API access. You can create a secret from a new token with public repo scope to limit the action's footprint. NOTE Binding to issue or pull request edit actions is not recommended. Create a workflow definition, for example .github/workflows/community.yml : Notice that the PR event is pull request target rather than pull request . The difference is that pull request target is a newer event which runs in the context of the base repository, allowing access to the secrets necessary to label the pull request. If you use pull request , the action will be able to label pull requests originating from the same repository (i.e. no forks!).","default_branch":null,"files":null,"tree":[],"storefront":"/r/jimschubert","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/jimschubert/labeler-action/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}