Skip to content

Commit cfa3527

Browse files
authored
Add actions/labeler (#26962)
Implements GiteaBot/gitea-backporter#93 using [`actions/labeler`](https://github.com/actions/labeler). Very basic configuration, can be extended later.
1 parent 1a99533 commit cfa3527

File tree

2 files changed

+45
-0
lines changed

2 files changed

+45
-0
lines changed

.github/labeler.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
kind/docs:
2+
- **/*.md
3+
- docs/**/*
4+
5+
kind/ui:
6+
- web_src/**/*
7+
- all: ["templates/**/*", "!templates/swagger/v1_json.tmpl"]
8+
9+
kind/api:
10+
- templates/swagger/v1_json.tmpl
11+
12+
kind/build:
13+
- Makefile
14+
- Dockerfile
15+
- Dockerfile.rootless
16+
- docker/**
17+
- webpack.config.js
18+
19+
kind/lint:
20+
- .eslintrc.yaml
21+
- .golangci.yml
22+
- .markdownlint.yaml
23+
- .spectral.yaml
24+
- .stylelintrc.yaml

.github/workflows/pull-labeler.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: labeler
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, synchronize, reopened]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
permissions:
15+
contents: read
16+
pull-requests: write
17+
steps:
18+
- uses: actions/labeler@v4
19+
with:
20+
dot: true
21+
sync-labels: true

0 commit comments

Comments
 (0)