GitXplorerGitXplorer
d

labels-remover

public
0 stars
0 forks
8 issues

Commits

List of commits on branch main.
Verified
11dcc859707d9b16332f62effbb2cd071a002131

Update README.md

ddenil-ct committed 3 years ago
Verified
16f1a14652f969bef13d49536494e2d36650b041

Update README.md

ddenil-ct committed 3 years ago
Unverified
d79cd0fcbbfea494bf0aa814c25516a51bae1fd3

Add support for label addition to PR

ddenil-ct committed 3 years ago
Verified
75a0ea51557551888bc79a2625dfe2bea0ec1fed

Add new labels to avoid unnecessary deletion (#9)

ddenil-ct committed 3 years ago
Unverified
9819f394a39f94d8c6d51e64f03b6a0954bdc4e9

Add label removal implementation

ddenil-ct committed 3 years ago
Unverified
cd9a8659cb3e46f3145e9e0314f957704488a907

Initial commit

ddenil-ct committed 3 years ago

README

The README file for this repository.

Use this action to remove labels based on their previous presence. This helps prevent unnecessary label removals. It only removes after ensuring that the label was already present in the issue.

There are five inputs and all of them are required.

  token:
    description: 'Github token'
  separator:
    description: 'Separator to be used to extract label names from the input'
  labels-list:
    description: 'A string of all labels that are to be checked with, separated with the passed separator'
  issue-number:
    description: 'Issue number'
  new-labels-list:
    description: 'Updated labels list to be added to PR'

Example usage

- name: Label removal
        uses: denil-ct/labels-remover@main
        with:
          token: ${{ github.token }}
          separator: ';'
          labels-list: 'Run Workflow;Run Succeeded;Run Failed'
          issue-number: ${{ github.event.number }}
          new-labels-list: 'Run Succeeded'

This example will ensure that if Run Succeeded label is already present in the issue, it won't be removed. On the other hand if the Run Succeeded label is not present already in the PR, it will add it to the PR. It will also remove labels that are given in labels-list but not in new-labels-list.