Skip to content

Commit 25facef

Browse files
committed
chore: add PR auto-label action
1 parent 8b6a68b commit 25facef

File tree

3 files changed

+24
-30
lines changed

3 files changed

+24
-30
lines changed

.github/auto-label.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"rules": {
3+
"area/utilities": ["aws_lambda_powertools_python/utilities/", "aws_lambda_powertools_python/utilities/", "aws_lambda_powertools_python/middleware_factory/"],
4+
"area/logger": ["aws_lambda_powertools_python/logging/"],
5+
"area/tracer": ["aws_lambda_powertools_python/tracing/"],
6+
"area/metrics": ["aws_lambda_powertools_python/metrics/"],
7+
"documentation": ["docs/", "mkdocs.yml"],
8+
"internal": ["Makefile", "CHANGELOG.md", "CONTRIBUTING.md"]
9+
}
10+
}

.github/labeler.yml

Lines changed: 0 additions & 30 deletions
This file was deleted.

.github/workflows/auto-label.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: PR Auto Label
2+
on:
3+
pull_request:
4+
types: [opened, synchronize]
5+
6+
jobs:
7+
auto-label:
8+
name: PR Auto Label
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: banyan/auto-label@1.2
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)