Skip to content

Commit fd2c211

Browse files
authored
Auto labels for PR's and issues (#130)
* testing auto-label gha * testing auto-label gha 2 * testing auto-label gha 3 * testing auto-label gha 4 * testing auto-label gha 5 * testing auto-label gha 6 * testing auto-label gha 7 * testing auto-label gha 8 * testing auto-label gha 9 * testing auto-label gha 10 * testing auto-label gha 11 * testing auto-label gha 12 * testing auto-label gha 13 * testing auto-label gha 14 * testing auto-label gha 15 * testing auto-label gha 16 * added checks for capltalisation and removed unnecessary permissions
1 parent 32642e3 commit fd2c211

File tree

3 files changed

+76
-0
lines changed

3 files changed

+76
-0
lines changed

.github/labeler.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
'Type: Dependencies':
2+
- '(depende|deps|Deps|Depende)'
3+
4+
'Type: Documentation':
5+
- '(documentation|Docs|Documentation|Docs)'
6+
7+
'Type: GHA':
8+
- '(gha|github action|GHA|Github Action|Github action)'
9+
10+
'Type: Infrastructure':
11+
- '(depende|deps|Deps|Depende|documentation|Docs|Documentation|Docs|gha|github action|GHA|Github Action|Github action|testing|tests|coverage|Testing|Tests|Coverage)'
12+
13+
'Type: Testing':
14+
- '(testing|tests|coverage|Testing|Tests|Coverage)'
15+
16+
'Type: Bug':
17+
- '(bug|patch|fix|Bug|Fix|Patch)'
18+
19+
'Type: Enhancement':
20+
- '(feature|Feature)'
21+
22+
'Type: Performance':
23+
- '(performance|Performance)'
24+
25+
'Type: Tech Debt':
26+
- '(debt|Debt)'
27+
28+
'Type: Question':
29+
- '(question|Question)'

.github/pull_request_labeler.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
'Type: Dependencies':
2+
- requirements/stratify.yml
3+
- requirements/py*.yml
4+
- requirements/pypi*.txt
5+
- requirements/locks/py*.txt
6+
7+
'Type: Documentation':
8+
- README.md
9+
- index.ipynb
10+
11+
'Type: GHA':
12+
- .github/*.yml
13+
- .github/**/*.yml
14+
15+
'Type: Infrastructure':
16+
- '*'
17+
18+
'Type: Testing':
19+
- src/stratify/tests/*

.github/workflows/ci-label.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Reference
2+
# - https://github.com/actions/labeler
3+
# - https://github.com/github/issue-labeler
4+
5+
name: ci-label
6+
7+
on:
8+
pull_request_target:
9+
types: [opened, edited, reopened]
10+
issues:
11+
types: [opened, edited, reopened]
12+
13+
jobs:
14+
issue_triage:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/labeler@v4
18+
with:
19+
configuration-path: .github/pull_request_labeler.yml
20+
repo-token: ${{ secrets.GITHUB_TOKEN }}
21+
22+
- uses: github/issue-labeler@v3.1
23+
with:
24+
configuration-path: .github/labeler.yml
25+
enable-versioned-regex: 0
26+
include-title: 1
27+
repo-token: ${{ secrets.GITHUB_TOKEN }}
28+
sync-labels: 1

0 commit comments

Comments
 (0)