From 56f4a207e964987cc7c84108dc35f6afdc50fd91 Mon Sep 17 00:00:00 2001 From: Zack Stickles Date: Tue, 9 Jun 2020 14:29:20 -0700 Subject: [PATCH] chore: added label workflow and configuration --- .github/labeler.yml | 11 +++++++++++ .github/workflows/label.yml | 10 ++++++++++ 2 files changed, 21 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/label.yml 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 }}"