alexcnichols / issue-change-labeler

A GitHub Action to label an issue if it has been modified is some way.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Issue change labeler

A GitHub Action to label an issue if it has been modified is some way.

issue-change-labeler status


Usage

Pre-requisites

Create a workflow .yml file in your repositories .github/workflows directory. An example workflow is available below. For more information, reference GitHub Docs for Creating a workflow file.

Inputs

  • changed-label: Required. Default changed. The label to track that an issue has been changed.
  • qualifying-labels: Optional. The comma-separated list of label(s) that must be on the issue already in order for changed labeling to trigger.

Example workflow

name: Issue change labeler

on:
  issues:
    types: [edited, labeled, unlabeled]
  project_card: 
    types: [moved, deleted]

jobs:
  issue-change-labeler:
    runs-on: ubuntu-latest
    steps:
      - name: Label issue if changed
        uses: alexcnichols/issue-change-labeler@v1
        with:
          github-token: ${{ secrets.GITHUB_TOKEN }}
          changed-label: 'changed'
          qualifying-labels: 'reviewed'

About

A GitHub Action to label an issue if it has been modified is some way.

License:MIT License


Languages

Language:JavaScript 100.0%