Skip to content
calendar

GitHub Action

Github Label Updater

v1.0.0 Latest version

Github Label Updater

calendar

Github Label Updater

Update label of github issues

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Github Label Updater

uses: garganshu/github-label-updater@v1.0.0

Learn more about this action in garganshu/github-label-updater

Choose a version

Buy Me A Coffee

GitHub Actions JavaScript GitHub Git Shell Script

Github Label Updater

Updating labels made easy in your workflow using Github Label Updater ✅

Why is this plugin in action? 💎

  • Improves the developer productivity to auto update labels 🏷️

  • Configurable action and helps to automate the workflow 🔨

  • Effective CI/CD pipelines ✅

How to use?

  1. Add Label(s) to Filtered Issues
filter-labels: ready-for-review
remove-all-labels: false
remove-labels: ready-for-review
add-labels: fixed,enhancement
Before After
Imgur1 Imgur2
  1. Remove All Label(s) of Filtered Issues
filter-labels: ready-for-review
remove-all-labels: true
Before After
Imgur3 Imgur4

Inputs

owner

Required
Owner of Organization or Repository

repo

Required
Repository name

token

Required
Github access token

filter-labels

Filter issues which contains all labels eg. label1,label2
Default - fetches all issues

remove-all-labels

Remove all labels from the issues eg. true/false
Default - false

remove-labels

Remove labels from the issues eg. label1,label2

add-labels

Add labels to the issues eg. label1,label2

Sample usage

name: Update Issues Label

on: [push]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - name: update label
      id: updater
      uses: garganshu/github-label-updater@v1.0.0
      with:
        owner: ${{secrets.OWNER}}
        repo: ${{secrets.REPO}}
        token: ${{secrets.TOKEN}}
        filter-labels: wip,bug,invalid
        remove-all-labels: false
        remove-labels: wip,invalid
        add-labels: fixed,enhancement

Projects using Github Label Updater? 🚀

Frontier - Your Front Seat to Crypto and DeFi (frontier.xyz)