Skip to content

Commit

Permalink
Update labeler.yml to remove .net label, add github actions and analy…
Browse files Browse the repository at this point in the history
…zers label
  • Loading branch information
rjmurillo authored Jun 24, 2024
1 parent b911035 commit 932cc3d
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,29 @@ dependencies:
- changed-files:
- any-glob-to-any-file: ['build/**/Packages.props', 'Directory.Packages.props']

# Add '.NET' label to any change to a '.cs' file under Moq.Analyzers
.NET
- changed-files:
- any-glob-to-any-file: ['src/Moq.Analyzers/**/*.cs']

# Add 'documentation' label to any change within the 'docs' directory or any '.md' file
documentation:
- changed-files:
- any-glob-to-any-file: ['docs/**/*', '**/*.md']
- any-glob-to-any-file: ['docs/**', '**/*.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']

# Add 'bug' label to any PR where the head branch name starts with `bug` or has a `bug` section in the name
# Add 'bug' label to any PR where the head branch name starts with `bug` or has a `bug` section in the name
bug:
- head-branch: ['^bug', 'bug']

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

# Add 'github_actions' label to any change to one of the GitHub workflows or configuration files
github_actions:
- changed-files:
- any-glob-to-any-file: ['.github/workflows/*.yml', '.github/dependabot.yml', '.github/labeler.yml']

# Add 'analyzers' label to any change to an analyzer, code fix, or shipping documentation
analyzers:
- changed-files:
- any-glob-to-any-file: ['src/Moq.Analyzers/AnalyzerReleases.*.md', 'src/Moq.Analyzers/**/*Analyzer.cs', 'src/Moq.Analyzers/**/*CodeFix.cs']

0 comments on commit 932cc3d

Please sign in to comment.