Skip to content

Commit

Permalink
feat: Update labeler.yml with new labels and criteria for better cate…
Browse files Browse the repository at this point in the history
…gorization.
  • Loading branch information
Excoriate committed Apr 14, 2024
1 parent 061f2bb commit 0f7dc3f
Showing 1 changed file with 46 additions and 27 deletions.
73 changes: 46 additions & 27 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,48 @@
---
# Add 'root' label to any root file changes
# Quotation marks are required for the leading asterisk
root:

Check warning on line 3 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Yamllint

3:1 [document-start] missing document start "---"

Check warning on line 3 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Yamllint

3:1 [document-start] missing document start "---"
- changed-files:
- any-glob-to-any-file: '*'

# Add 'AnyChange' label to any changes within the entire repository
AnyChange:
- changed-files:
- any-glob-to-any-file: '**'

# Add 'Documentation' label to any file changes within 'docs' or 'guides' folders
Documentation:
- changed-files:
- any-glob-to-any-file:
- docs/*
- guides/*
- README.md
- .github/ISSUE_TEMPLATE/*
- ./*.md
# Add 'feature' label to any PR where the head branch name starts with `feature` or has a `feature` section in the name
feature:
- head-branch: ['^feature', 'feature', 'feature/', '/feat']

# Add 'release' label to any PR that is opened against the `main` branch
release:
- base-branch: 'main'

# Add Infrastructure label to any changes within the 'terraform' folder or any subfolders
Infrastructure:
- changed-files:
- any-glob-to-any-file: ['terraform/**', 'infra/**', 'modules/**', 'terragrunt/**']

# Add 'ci/cd' label to any changes within the '.github/workflows' folder
ci/cd:
- .github/workflows/*
infrastructure:
- terraform/**
- infra/**
- modules/**
- terragrunt/**
documentation:
- README.md
- .github/ISSUE_TEMPLATE/*
- ./*.md
- changed-files:
- any-glob-to-any-file: '.github/workflows/*'

# Add 'patch' label to any changes within the 'TaskFile.yml' file or any other root files
patch:
- TaskFile.yml
- LICENSE
- .github/labeler.yml
- .yamllint.yml
- .Makefile
- .pre-commit-config.yaml
- .goreleaser.yml
- .github/settings.yml
- .github/dependabot.yml
- .gitignore
- .gitattributes
- .shellcheckrc
- .editorconfig
- .dockerignore
minor:
- pkg/*
- changed-files:
- any-glob-to-any-file: ['TaskFile.yml', 'LICENSE', '.github/labeler.yml', '.yamllint.yml', '.Makefile', '.pre-commit-config.yaml', '.goreleaser.yml', '.github/settings.yml', '.github/dependabot.yml', '.gitignore', '.gitattributes', '.shellcheckrc', '.editorconfig', '.dockerignore']

# Add 'breaking-change' label to any PR that modifies a file with a commit message containing 'BREAKING CHANGE', or modify the terragrunt.hcl file
breaking-change:
- commit-message: 'BREAKING CHANGE'

Check failure on line 46 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Yamllint

46:5 [indentation] wrong indentation: expected 2 but found 4

Check failure on line 46 in .github/labeler.yml

View workflow job for this annotation

GitHub Actions / Yamllint

46:5 [indentation] wrong indentation: expected 2 but found 4
- changed-files:
- any-glob-to-any-file: 'terragrunt.hcl'

0 comments on commit 0f7dc3f

Please sign in to comment.