diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..fcf7b14 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,31 @@ +# Configuration for PR Labeller Action +# See: https://github.com/actions/labeler/blob/master/README.md + +# Examples +# Add 'label1' to PR if anything changes within 'example' folder or any subfolders +# label1: +# - example/**/* + +# Add 'label2' to PR if any file changes within 'example2' folder +# label2: example2/* + +Action: + - action.yml + +Docker: + - Dockerfile + - .dockerignore + +Options: + - src/CodeCoverageSummary/CommandLineOptions.cs + +Parsing: + - src/CodeCoverageSummary/CodeSummary.cs + - src/CodeCoverageSummary/Program.cs + +Summary: + - src/CodeCoverageSummary/CodeSummary.cs + - src/CodeCoverageSummary/Program.cs + +DevOps: + - .github/**/* diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml new file mode 100644 index 0000000..aa1a9f8 --- /dev/null +++ b/.github/workflows/pr-labeler.yml @@ -0,0 +1,16 @@ +# Applies labels to pull requests based on paths & files modified in the pull request. +# +# .github/labeler.yml contains the list of labels & files / folders to match, see: +# https://github.com/actions/labeler/blob/master/README.md + +name: PR Labeler +on: + pull_request_target: + +jobs: + label: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"