No description
Find a file
Benjamin Lannon ec1266042a
Merge pull request #5 from lannonbr/fix-color-hash-bug
Removing # when running app
2019-02-19 19:17:29 -05:00
screenshots Finalizing initial version of action & adding docs 2018-12-05 21:53:04 -05:00
.gitignore Initial Commit 2018-12-05 20:02:58 -05:00
Dockerfile Updating minor version 2019-02-19 19:15:47 -05:00
index.js Removing # when running function 2019-02-19 18:57:16 -05:00
LICENSE Initial Commit 2018-12-05 20:02:58 -05:00
package-lock.json Updating minor version 2019-02-19 19:15:47 -05:00
package.json Updating minor version 2019-02-19 19:15:47 -05:00
README.md Update README.md 2018-12-12 20:12:23 -05:00

Issue Label Manager Action

This GitHub Action allows you to declaratively state the labels to be defined in a repo.

In the repo you'd like to use this, define a JSON file in .github/labels.json. This file will contain an array of objects that have a name, color, and description as shown in the example below.

labels.json file

Then, set up a workflow that executes this action. When run, it will update the list of labels in the repo to match the JSON file and will delete any other labels.

The result of using the labels.json file shown above is as follows:

Labels result

If a label doesn't need a description, leave out the description field of the entry in the json file and when deployed the label will not contain a description.

Usage

This action only needs the GITHUB_TOKEN secret as it interacts with the GitHub API to modify labels. The action can be used as such:

action "Update Label" {
  uses = "lannonbr/issue-label-manager-action@master"
  secrets = ["GITHUB_TOKEN"]
}