Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/actions-ecosystem/action-remove-labels
🏷️ GitHub Action to remove labels
https://github.com/actions-ecosystem/action-remove-labels
actions github labels
Last synced: 13 days ago
JSON representation
🏷️ GitHub Action to remove labels
- Host: GitHub
- URL: https://github.com/actions-ecosystem/action-remove-labels
- Owner: actions-ecosystem
- License: apache-2.0
- Created: 2020-05-02T22:36:30.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-03-18T16:35:10.000Z (8 months ago)
- Last Synced: 2024-10-25T11:35:47.879Z (21 days ago)
- Topics: actions, github, labels
- Language: TypeScript
- Homepage: https://github.com/marketplace/actions/actions-ecosystem-remove-labels
- Size: 584 KB
- Stars: 55
- Watchers: 4
- Forks: 28
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Action Remove Labels
[![actions-workflow-test][actions-workflow-test-badge]][actions-workflow-test]
[![release][release-badge]][release]
[![license][license-badge]][license]![screenshot](./docs/assets/screenshot.png)
This is a GitHub Action to remove GitHub labels to an issue or a pull request.
This action extract the number from an issue or a pull request which has triggered this by default.
It 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 }}`.It would be more useful to use this with other GitHub Actions' outputs.
## Inputs
| NAME | DESCRIPTION | TYPE | REQUIRED | DEFAULT |
| --------------- | ----------------------------------------------------------------------------------------------- | -------- | -------- | ------------------------------------------------------------------------------- |
| `github_token` | A GitHub token. | `string` | `false` | `${{ github.token }}` |
| `labels` | The labels' name to be removed. Must be separated with line breaks if there're multiple labels. | `string` | `true` | `N/A` |
| `number` | The number of the issue or pull request. | `number` | `false` | `${{ github.event.issue.number }}` or `${{ github.event.pull_request.number }}` |
| `repo` | The owner and repository name. e.g.) `Codertocat/Hello-World` | `string` | `false` | `N/A` |
| `fail_on_error` | Whether the action fails or not when getting errors. [true,false] | `bool` | `false` | `false` |## Example
### Remove a single label with a comment
```yaml
name: Remove Labelon: [issue_comment]
jobs:
remove_label:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-remove-labels@v1
if: ${{ startsWith(github.event.comment.body, '/remove-labels') }}
with:
labels: bug
```### Remove multiple labels with a comment
```yaml
name: Remove Labelson: [issue_comment]
jobs:
remove_labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-remove-labels@v1
if: ${{ startsWith(github.event.comment.body, '/remove-labels') }}
with:
labels: |
documentation
changelog
```## License
Copyright 2020 The Actions Ecosystem Authors.
Action Remove Labels is released under the [Apache License 2.0](./LICENSE).
[actions-workflow-test]: https://github.com/actions-ecosystem/action-remove-labels/actions?query=workflow%3ATest
[actions-workflow-test-badge]: https://img.shields.io/github/workflow/status/actions-ecosystem/action-remove-labels/Test?label=Test&style=for-the-badge&logo=github[release]: https://github.com/actions-ecosystem/action-remove-labels/releases
[release-badge]: https://img.shields.io/github/v/release/actions-ecosystem/action-remove-labels?style=for-the-badge&logo=github[license]: LICENSE
[license-badge]: https://img.shields.io/github/license/actions-ecosystem/action-remove-labels?style=for-the-badge