Skip to content

Commit

Permalink
add(ci): autolabeler for PR and releases
Browse files Browse the repository at this point in the history
  • Loading branch information
Guts committed Oct 1, 2024
1 parent 413f20a commit dd8448d
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 dd8448d

Please sign in to comment.