Skip to content

Commit

Permalink
Merge pull request #23 from Guts/ci/add-autolabeler-config
Browse files Browse the repository at this point in the history
add(ci): autolabeler for PR and releases
  • Loading branch information
Guts authored Oct 2, 2024
2 parents 47301b3 + 14fc1e6 commit 98e6e94
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
ci-cd:
- changed-files:
- any-glob-to-any-file: .github/**

dependencies:
- changed-files:
- any-glob-to-any-file:
- requirements/*.txt
- requirements.txt

documentation:
- changed-files:
- any-glob-to-any-file:
- docs/**
- requirements/documentation.txt

enhancement:
- head-branch: ["^feature", "feature", "^improve", "improve"]

packaging:
- head-branch: ["^packaging", "packaging"]

tooling:
- head-branch: ["^tooling", "tooling"]
- changed-files:
- any-glob-to-any-file:
- .pre-commit-config.yaml

UI:
- head-branch: ["^ui", "ui"]
- changed-files:
- any-glob-to-any-file:
- profile_manager/**/*.ui
- profile_manager/gui/**
22 changes: 22 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
changelog:
exclude:
authors:
- dependabot
- pre-commit-ci
categories:
- title: Bugs fixes πŸ›
labels:
- bug
- title: Features and enhancements πŸŽ‰
labels:
- enhancement
- UI
- title: Tooling πŸ”§
labels:
- ci-cd
- title: Documentation πŸ“–
labels:
- documentation
- title: Other Changes
labels:
- "*"
14 changes: 14 additions & 0 deletions .github/workflows/auto-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: "🏷 PR Labeler"
on:
- pull_request

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 98e6e94

Please sign in to comment.