Skip to content

garganshu/github-label-updater

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

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/[email protected]
      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)