Skip to content

Commit

Permalink
changing autolabeler
Browse files Browse the repository at this point in the history
  • Loading branch information
HGWright committed Jan 23, 2024
1 parent bff7829 commit 2909959
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 50 deletions.
40 changes: 20 additions & 20 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
'Type: Dependencies':
- '(depende|deps|Deps|Depende)'
- any:
- changed-files:
- any-glob-to-any-file: 'requirements/stratify.yml'
- any-glob-to-any-file: 'requirements/py*.yml'
- any-glob-to-any-file: 'requirements/locks/pypi*.txt'
- any-glob-to-any-file: 'requirements/locks/py*.lock'

'Type: Documentation':
- '(documentation|Docs|Documentation|Docs)'
- any:
changed-files:
- any-glob-to-any-file: 'index.ipynb'
- any-glob-to-any-file: 'README.md'

'Type: GHA':
- '(gha|github action|GHA|Github Action|Github action)'
- any:
- changed-files:
- any-glob-to-any-file: '.github/*.yml'
- any-glob-to-any-file: '.github/**/*.yml'

'Type: Infrastructure':
- '(depende|deps|Deps|Depende|documentation|Docs|Documentation|Docs|gha|github action|GHA|Github Action|Github action|testing|tests|coverage|Testing|Tests|Coverage)'
- any:
changed-files:
- any-glob-to-any-file: '*'

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

'Type: Bug':
- '(bug|Bug)'

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

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

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

'Type: Question':
- '(question|Question)'
- any:
changed-files:
- any-glob-to-any-file: 'src/stratify/tests/*'
19 changes: 0 additions & 19 deletions .github/pull_request_labeler.yml

This file was deleted.

12 changes: 1 addition & 11 deletions .github/workflows/ci-label.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,17 @@
# 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:
PR_triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
configuration-path: .github/pull_request_labeler.yml
repo-token: ${{ secrets.GITHUB_TOKEN }}

- uses: github/issue-labeler@v3.3
with:
configuration-path: .github/labeler.yml
enable-versioned-regex: 0
include-title: 1
repo-token: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 2909959

Please sign in to comment.