From 0d75d591d143bfba09a13bd7922ba8e6c00a29ff Mon Sep 17 00:00:00 2001 From: Jeff Malnick Date: Fri, 25 Sep 2020 10:02:37 -0700 Subject: [PATCH] workflow: add automatic labeling (#443) --- .github/labeler.yml | 26 ++++++++++++++++++++++++++ .github/workflows/labeler.yml | 11 +++++++++++ 2 files changed, 37 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..ce4f262dc4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,26 @@ +test: + - **/*_test.go + +api: + - api/* + +core: + - internal/* + +website: + - website/* + +docs/concepts: + - website/content/docs/concepts/* + +docs/getting-started: + - website/content/docs/getting-started/* + +docs/installing: + - website/content/docs/installing/* + +docs/configuration: + - website/content/docs/configuration/* + +docs/releases: + - website/content/docs/releases/* diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..23956a02fb --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,11 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@main + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}"