Browse Source

Auto-label PRs

Signed-off-by: Guillaume Tardif <[email protected]>
Guillaume Tardif 5 years ago
parent
commit
aa5244c4e1
2 changed files with 34 additions and 0 deletions
  1. 24 0
      .github/labeler.yml
  2. 10 0
      .github/workflows/labeler.yml

+ 24 - 0
.github/labeler.yml

@@ -0,0 +1,24 @@
+aci:
+  - aci/**/*
+
+ecs:
+  - ecs/**/*
+
+cli:
+  - cli/**/*
+
+api:
+  - containers/**/*
+  - compose/**/*
+  - secrets/**/*
+  - server/**/*
+  - protos/**/*
+
+ci:
+  - .github/**/*
+
+documentation:
+  - docs/**/*
+
+metrics:
+  - metrics/**/*

+ 10 - 0
.github/workflows/labeler.yml

@@ -0,0 +1,10 @@
+name: "Pull Request Labeler"
+on: [pull_request]
+
+jobs:
+  triage:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/labeler@v2
+        with:
+          repo-token: "${{ secrets.GITHUB_TOKEN }}"