Skip to content

Commit

Permalink
ci: declaratively setup labels using lannonbr/issue-label-manager-action
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasPammer committed Feb 19, 2022
1 parent 00377c2 commit 0e32b1e
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 0 deletions.
52 changes: 52 additions & 0 deletions .github/labels.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
[
{
"name": "bug",
"color": "d73a4a",
"description": "Something isn't working"
},
{
"name": "dependencies",
"color": "d73a4a",
"description": "Pull requests that update a dependency file"
},
{
"name": "documentation",
"color": "d73a4a",
"description": "Improvements or additions to documentation"
},
{
"name": "duplicate",
"color": "cfd3d7",
"description": "This issue or pull request already exists"
},
{
"name": "enhancement",
"color": "a2eeef",
"description": "New feature or request"
},
{
"name": "good first issue",
"color": "7057ff",
"description": "Good for newcomers"
},
{
"name": "help wanted",
"color": "008672",
"description": "Needs help from the community / Extra attention is needed"
},
{
"name": "invalid",
"color": "e4e669",
"description": "Not resolvable in any way / This doesn't seem right"
},
{
"name": "question",
"color": "d876e3",
"description": "Contains a question that needs to be answered / Further information is requested."
},
{
"name": "wontfix",
"color": "ffffff",
"description": "This will not be worked on"
}
]
17 changes: 17 additions & 0 deletions .github/workflows/issue-label-manager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
"on":
issues:

name: Ensure declared labels are created

jobs:
labels:
name: Invoke issue-label-manager action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1.0.0
- uses: lannonbr/issue-label-manager-action@3.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
delete: true # will delete any labels that aren't in the .github/labels.json (this is set to false by default)

0 comments on commit 0e32b1e

Please sign in to comment.