diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..59c6b06 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,14 @@ +docs: + - changed-files: + - any-glob-to-any-file: "**/*.md" + +"CI/CD": + - changed-files: + - any-glob-to-any-file: ".github/**" + +feature: + - head-branch: ["^feature", "feature"] + +# Add 'release' label to any PR that is opened against the `main` branch +release: + - base-branch: "main" diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 0000000..52474c6 --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,12 @@ +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