diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 000000000..39531e1db --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,11 @@ +# Add "enhancement" label to any PR that contains files in the src +# directory (excluding the markdown pages directory. +enhancement: + - any: ['src/**/*', '!src/markdown-pages/**/*'] + +# Add "documentation" label to any PR that contains files in the +# markdown-pages directory. +documentation: + - any: ['src/markdown-pages/**/*'] + + diff --git a/.github/workflows/label.yml b/.github/workflows/label.yml new file mode 100644 index 000000000..4726e520f --- /dev/null +++ b/.github/workflows/label.yml @@ -0,0 +1,10 @@ +name: "Pull Request Labeler" +on: [pull_request] + +jobs: + label: + runs-on: ubuntu-latest + stes: + - uses: actions/labeler@v2 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"