Skip to content

okineadev/add-labels

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

12 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”– 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

name: πŸ”– Add Label

on: [pull_request_target]

permissions:
  issues: write
  pull-requests: write

jobs:
  add-label:
    name: πŸ”– Add Label

    runs-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 tool without any other dependencies

Additionally, gh 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 β˜•