Pārlūkot izejas kodu

ci: add pr labeler

Andelf 4 gadi atpakaļ
vecāks
revīzija
b4371ce8a4
2 mainītis faili ar 19 papildinājumiem un 0 dzēšanām
  1. 4 0
      .github/pr-labeler.yml
  2. 15 0
      .github/workflows/pr-labeler.yml

+ 4 - 0
.github/pr-labeler.yml

@@ -0,0 +1,4 @@
+:type/feature: ['feature/*', 'feat/*']
+:type/enhancement: ['enhancement/*', 'enh/*', 'enhance/*', 'improve/*']
+:type/bug-fix: ['fix/*', 'fix*', 'bug/*', 'bug-fix/*', 'bugfix/*', 'bug-fixes/*', 'bugfixes/*']
+:type/dev: ['chore/*', 'test/*', 'docs/*', 'build/*', 'ci/*', 'misc/*', 'dev/*']

+ 15 - 0
.github/workflows/pr-labeler.yml

@@ -0,0 +1,15 @@
+name: PR Labeler
+on:
+  pull_request:
+    types: [opened]
+
+jobs:
+  pr-labeler:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: TimonVS/[email protected]
+        with:
+          # optional, .github/pr-labeler.yml is the default value
+          configuration-path: .github/pr-labeler.yml
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}