Skip to content

Commit

Permalink
Auto labels for PR's and issues (#130)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
HGWright committed Jul 1, 2023
1 parent 32642e3 commit fd2c211
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
'Type: Dependencies':
- '(depende|deps|Deps|Depende)'

'Type: Documentation':
- '(documentation|Docs|Documentation|Docs)'

'Type: GHA':
- '(gha|github action|GHA|Github Action|Github action)'

'Type: Infrastructure':
- '(depende|deps|Deps|Depende|documentation|Docs|Documentation|Docs|gha|github action|GHA|Github Action|Github action|testing|tests|coverage|Testing|Tests|Coverage)'

'Type: Testing':
- '(testing|tests|coverage|Testing|Tests|Coverage)'

'Type: Bug':
- '(bug|patch|fix|Bug|Fix|Patch)'

'Type: Enhancement':
- '(feature|Feature)'

'Type: Performance':
- '(performance|Performance)'

'Type: Tech Debt':
- '(debt|Debt)'

'Type: Question':
- '(question|Question)'
19 changes: 19 additions & 0 deletions .github/pull_request_labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
'Type: Dependencies':
- requirements/stratify.yml
- requirements/py*.yml
- requirements/pypi*.txt
- requirements/locks/py*.txt

'Type: Documentation':
- README.md
- index.ipynb

'Type: GHA':
- .github/*.yml
- .github/**/*.yml

'Type: Infrastructure':
- '*'

'Type: Testing':
- src/stratify/tests/*
28 changes: 28 additions & 0 deletions .github/workflows/ci-label.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Reference
# - https://github.com/actions/labeler
# - https://github.com/github/issue-labeler

name: ci-label

on:
pull_request_target:
types: [opened, edited, reopened]
issues:
types: [opened, edited, reopened]

jobs:
issue_triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
with:
configuration-path: .github/pull_request_labeler.yml
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: github/[email protected]
with:
configuration-path: .github/labeler.yml
enable-versioned-regex: 0
include-title: 1
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: 1

0 comments on commit fd2c211

Please sign in to comment.