Skip to content

Commit

Permalink
chore: fix labeler file
Browse files Browse the repository at this point in the history
Signed-off-by: Newton <5769156+iamnewton@users.noreply.github.com>
  • Loading branch information
iamnewton authored Oct 24, 2024
1 parent 77229d6 commit c47a60a
Showing 1 changed file with 19 additions and 12 deletions.
31 changes: 19 additions & 12 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,28 @@
# Add "docs" label to any changes within "docs" folder or any subfolders
# Add "docs" label to any change to .md files within the entire repository
# Add "documentation" label to any changes within "docs" folder or any subfolders or .md files within the entire repository
documentation:
- any:
- changed-files:
- any-glob-to-any-file:
- docs/**
- "**/*.md"
- any-glob-to-any-file:
- docs/*
- '**/*.md'

# Add "bug" label to any PR where the head branch name starts with `fix` or has a `fix` section in the name
# Add "bug" label to any PR where the head branch name starts with `fix` with file changes to src directory
bug:
- head-branch:
- "^fix-"
- all:
- changed-files:
- any-glob-to-any-file: src/*
- head-branch: "^fix-"

# Add "enhancement" label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
# Add "enhancement" label to any PR where the head branch name starts with `feat` with file changes to src directory
enhancement:
- head-branch:
- "^feat-"
- all:
- changed-files:
- any-glob-to-any-file: src/*
- head-branch: "^feat-"

# Add "release" label to any PR that is opened against the `main` branch
release:
- base-branch: "main"
- all:
- changed-files:
- any-glob-to-any-file: .changeset/*
- base-branch: "main"

0 comments on commit c47a60a

Please sign in to comment.