{"id":16019472,"url":"https://github.com/actions-ecosystem/action-remove-labels","last_synced_at":"2025-04-04T22:06:21.807Z","repository":{"id":37939771,"uuid":"260787457","full_name":"actions-ecosystem/action-remove-labels","owner":"actions-ecosystem","description":"🏷️ GitHub Action to remove labels","archived":false,"fork":false,"pushed_at":"2024-03-18T16:35:10.000Z","size":598,"stargazers_count":54,"open_issues_count":29,"forks_count":28,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-12T15:50:45.854Z","etag":null,"topics":["actions","github","labels"],"latest_commit_sha":null,"homepage":"https://github.com/marketplace/actions/actions-ecosystem-remove-labels","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/actions-ecosystem.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":"2020-05-02T22:36:30.000Z","updated_at":"2025-02-28T15:24:53.000Z","dependencies_parsed_at":"2024-08-17T23:47:54.819Z","dependency_job_id":null,"html_url":"https://github.com/actions-ecosystem/action-remove-labels","commit_stats":{"total_commits":39,"total_committers":6,"mean_commits":6.5,"dds":"0.46153846153846156","last_synced_commit":"d05162525702062b6bdef750ed8594fc024b3ed7"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-remove-labels","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-remove-labels/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-remove-labels/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/actions-ecosystem%2Faction-remove-labels/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/actions-ecosystem","download_url":"https://codeload.github.com/actions-ecosystem/action-remove-labels/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245084611,"owners_count":20558249,"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","labels"],"created_at":"2024-10-08T17:04:30.791Z","updated_at":"2025-03-28T21:05:10.369Z","avatar_url":"https://github.com/actions-ecosystem.png","language":"TypeScript","readme":"# Action Remove Labels\n\n[![actions-workflow-test][actions-workflow-test-badge]][actions-workflow-test]\n[![release][release-badge]][release]\n[![license][license-badge]][license]\n\n![screenshot](./docs/assets/screenshot.png)\n\nThis is a GitHub Action to remove GitHub labels to an issue or a pull request.\n\nThis action extract the number from an issue or a pull request which has triggered this by default.\nIt means you don't need to care about something annoying like whether you should use `${{ github.event.issue.number }}` or `${{ github.event.pull_request.number }}`.\n\nIt would be more useful to use this with other GitHub Actions' outputs.\n\n## Inputs\n\n|      NAME       |                                           DESCRIPTION                                           |   TYPE   | REQUIRED |                                     DEFAULT                                     |\n| --------------- | ----------------------------------------------------------------------------------------------- | -------- | -------- | ------------------------------------------------------------------------------- |\n| `github_token`  | A GitHub token.                                                                                 | `string` | `false`   | `${{ github.token }}`                                                                           |\n| `labels`        | The labels' name to be removed. Must be separated with line breaks if there're multiple labels. | `string` | `true`   | `N/A`                                                                           |\n| `number`        | The number of the issue or pull request.                                                        | `number` | `false`  | `${{ github.event.issue.number }}` or `${{ github.event.pull_request.number }}`                                                                           |\n| `repo`          | The owner and repository name. e.g.) `Codertocat/Hello-World`                                   | `string` | `false`  |  `N/A` |\n| `fail_on_error` | Whether the action fails or not when getting errors. [true,false]                               | `bool`   | `false`  | `false`                                                                         |\n\n## Example\n\n### Remove a single label with a comment\n\n```yaml\nname: Remove Label\n\non: [issue_comment]\n\njobs:\n  remove_label:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions-ecosystem/action-remove-labels@v1\n        if: ${{ startsWith(github.event.comment.body, '/remove-labels') }}\n        with:\n          labels: bug\n```\n\n### Remove multiple labels with a comment\n\n```yaml\nname: Remove Labels\n\non: [issue_comment]\n\njobs:\n  remove_labels:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2\n      - uses: actions-ecosystem/action-remove-labels@v1\n        if: ${{ startsWith(github.event.comment.body, '/remove-labels') }}\n        with:\n          labels: |\n            documentation\n            changelog\n```\n\n## License\n\nCopyright 2020 The Actions Ecosystem Authors.\n\nAction Remove Labels is released under the [Apache License 2.0](./LICENSE).\n\n\u003c!-- badge links --\u003e\n\n[actions-workflow-test]: https://github.com/actions-ecosystem/action-remove-labels/actions?query=workflow%3ATest\n[actions-workflow-test-badge]: https://img.shields.io/github/workflow/status/actions-ecosystem/action-remove-labels/Test?label=Test\u0026style=for-the-badge\u0026logo=github\n\n[release]: https://github.com/actions-ecosystem/action-remove-labels/releases\n[release-badge]: https://img.shields.io/github/v/release/actions-ecosystem/action-remove-labels?style=for-the-badge\u0026logo=github\n\n[license]: LICENSE\n[license-badge]: https://img.shields.io/github/license/actions-ecosystem/action-remove-labels?style=for-the-badge\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-ecosystem%2Faction-remove-labels","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Factions-ecosystem%2Faction-remove-labels","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Factions-ecosystem%2Faction-remove-labels/lists"}