https://github.com/okineadev/add-labels
🔖 Add or remove labels for GitHub issues and PRs
https://github.com/okineadev/add-labels
automation github-actions issue-labels
Last synced: 6 months ago
JSON representation
🔖 Add or remove labels for GitHub issues and PRs
- Host: GitHub
- URL: https://github.com/okineadev/add-labels
- Owner: okineadev
- License: mit
- Created: 2025-01-13T09:28:43.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2025-01-27T10:19:26.000Z (8 months ago)
- Last Synced: 2025-03-29T01:11:47.079Z (6 months ago)
- Topics: automation, github-actions, issue-labels
- Language: Shell
- Homepage: https://github.com/marketplace/actions/add-or-remove-labels
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# 🔖 Add or remove labels
A **GitHub Action** to add or remove labels on PRs or issues
## Inputs
### `labels`
**Required** A comma-separated list of labels.
**Example**: `bug,help-needed`
### `action`
**Optional** `add` or `remove` label
**Default**: `add`
**Example**: `add`
## Example usage
```yaml
name: 🔖 Add Labelon: [pull_request_target]
permissions:
issues: write
pull-requests: writejobs:
add-label:
name: 🔖 Add Labelruns-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- uses: okineadev/add-labels@v1.0.5
with:
labels: bug,help-needed
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
```This GitHub Action is based on the [`gh`](https://github.com/cli/cli) tool without any other dependencies
Additionally, [`gh`](https://github.com/cli/cli) is pre-installed in **GitHub Actions** runners and pre-authenticated
## ❤️ Support
If you like this project, consider supporting it by starring ⭐ it on GitHub, sharing it with your friends, or [buying me a coffee ☕](https://github.com/okineadev/add-labels?sponsor=1)