Skip to content

Commit

Permalink
chore: pr auto label (#243)
Browse files Browse the repository at this point in the history
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit


- **New Features**
- Introduced an automated labeling system for pull requests, enhancing
organization and project management.
- Added a workflow to streamline the application of labels based on
predefined rules.

- **Bug Fixes**
- Improved accuracy of labeling by defining specific categories for
changes and breaking modifications.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
  • Loading branch information
rokam authored Jul 25, 2024
1 parent fbbc1c7 commit 06c4e02
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 17 deletions.
10 changes: 10 additions & 0 deletions .github/pr-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
clear-prexisting: true
include-title: true
label-for-breaking-changes: "breaking change"
label-mapping:
bug: ["fix"]
configuration: ["build", "ci"]
documentation: ["docs"]
enhancement: ["feat"]
misc: ["chore", "performance", "refactor", "style"]
test: ["test"]
20 changes: 20 additions & 0 deletions .github/workflows/lint-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Check PR"

on:
pull_request:
types: [opened, edited, reopened, labeled, unlabeled]

jobs:
lint-pr-name:
name: Validate PR title
runs-on: ubuntu-latest
steps:
- uses: amannn/action-semantic-pull-request@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
label-pr:
runs-on: ubuntu-latest
steps:
- uses: grafana/pr-labeler-action@v0.1.0
with:
token: ${{ secrets.MIDEA_GITHUB_PAT }}
17 changes: 0 additions & 17 deletions .github/workflows/pr.yml

This file was deleted.

0 comments on commit 06c4e02

Please sign in to comment.