Skip to content

Commit

Permalink
Updated auto labeler configuration (#195)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 authored Oct 31, 2024
1 parent 41c0b6b commit 97d301a
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 21 deletions.
8 changes: 6 additions & 2 deletions .github/labeler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,18 @@ tracker:
CLI:
- changed-files:
- any-glob-to-any-file: '**/__main__.py'
documentation:
- head-branch:
- 'documentation/*'
- 'docs/*'
- changed-files:
- any-glob-to-any-file: '**/README.md'
DevOps:
- head-branch:
- 'devops/*'
- 'ci/*'
- changed-files:
- any-glob-to-any-file: '.github/workflows/ci.yaml'
release:
- base-branch: 'main'
enhancement:
- head-branch:
- 'feature/*'
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/add-metadata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Metadata

on:
pull_request:

permissions:
pull-requests: write
contents: write
checks: write

jobs:
assigner:
runs-on: ubuntu-latest
steps:
- name: Auto-assign
uses: toshimaru/[email protected]

labeler:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Labeler
uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yaml
19 changes: 0 additions & 19 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ permissions:
checks: write

jobs:
assigner:
runs-on: ubuntu-latest
steps:
- name: Auto-assign
uses: toshimaru/[email protected]

labeler:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Labeler
uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yaml

pre-commit:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 97d301a

Please sign in to comment.