Skip to content

Commit

Permalink
build: auto label prs
Browse files Browse the repository at this point in the history
  • Loading branch information
setchy committed Jul 9, 2024
1 parent b96527b commit 59963b3
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 26 deletions.
41 changes: 41 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
version: v1

labels:
- label: 'enhancement'
matcher:
title: '^feat: .*'

- label: 'bug'
matcher:
title: '^fix: .*'

- label: 'refactor'
matcher:
title: '^refactor: .*'

- label: 'documentation'
matcher:
title: '^docs: .*'

- label: 'test'
matcher:
title: '^test: .*'

- label: 'build'
matcher:
title: '^ci: .*'

checks:
- context: 'Semantic Pull Request'
description:
success: Ready for review & merge.
failure: Missing semantic label for merge.
labels:
any:
- enhancement
- bug
- refactor
- documentation
- test
- build
- dependency
26 changes: 0 additions & 26 deletions .github/workflows/label.yml

This file was deleted.

11 changes: 11 additions & 0 deletions .github/workflows/pr-triage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
on:
pull_request:
types: [opened, edited, synchronize, ready_for_review]
branches: [master, main]

jobs:
labeler:
name: Labeler
runs-on: ubuntu-latest
steps:
- uses: fuxingloh/multi-labeler@v4

0 comments on commit 59963b3

Please sign in to comment.