Skip to content

Commit

Permalink
ci: Add 'labeler' workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
maxnatamo committed Jul 27, 2024
1 parent 070a0f1 commit e2052b1
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# yaml-language-server: $schema=https://json.schemastore.org/pull-request-labeler.json

docs:
- changed-files:
- any-glob-to-any-file: 'docs/*'

enhancement:
- head-branch: ['^feat\(', '^feat:']

bug-fix:
- head-branch: ['^fix\(', '^fix:']

build:
- changed-files:
- any-glob-to-any-file:
- .build/*
- .github/workflows/*
13 changes: 13 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: "Pull Request Labeler"

on:
- pull_request_target

jobs:
labeler:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5

0 comments on commit e2052b1

Please sign in to comment.