Skip to content

Commit

Permalink
Merge pull request #9 from deemaze/add-labeler-action
Browse files Browse the repository at this point in the history
Add labeler action to keep labels in sync
  • Loading branch information
pjpires authored Feb 5, 2024
2 parents f05361d + 321fa52 commit 7e27c21
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 5 deletions.
35 changes: 35 additions & 0 deletions .github/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- name: breaking
description: 💥 Breaking Changes
color: #B60205

- name: bug
description: 🐛 Bug Fixes
color: #EB410A

- name: feature
description: 🚀 New Features
color: #FBCA04

- name: enhancement
description: ✨ Improvements
color: #59D6E6

- name: documentation
description: 📝 Documentation Updates
color: #6EC67B

- name: internal
description: 🔧 Internal Changes
color: #DB749F

- name: tests
description: 🚦 Tests
color: #B0B3B8

- name: dependencies
description: 📦 Dependency Updates
color: #0366D6

- name: skip-changelog
desc: 🚫 Excludes a PR from the release changelog
color: #CABA9C
10 changes: 5 additions & 5 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ categories:
label: internal

- title: 🚦 Tests
label: test
label: tests

- title: 📦 Dependency Updates
collapse-after: 5
Expand All @@ -33,18 +33,18 @@ exclude-labels:
version-resolver:
major:
labels:
- breakinng
- breaking
minor:
labels:
- feature
- enhancement
- documentation
- dependencies
- enhancement
patch:
labels:
- bug
- documentation
- internal
- test
- tests
default: minor

change-template: '- $TITLE (#$NUMBER) @$AUTHOR'
Expand Down
26 changes: 26 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Keep labels up to date

on:
push:
branches:
- main
paths:
- '.github/labels.yml'
- '.github/workflows/labeler.yml'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
labeler:
runs-on: ubuntu-latest

steps:
- name: Check out the repository
uses: actions/checkout@v4

- name: Run Labeler
uses: crazy-max/ghaction-github-labeler@v5
with:
skip-delete: true

0 comments on commit 7e27c21

Please sign in to comment.