From 629c748fa3868762ff1d301e989ed43389fbfb7d Mon Sep 17 00:00:00 2001 From: Alexander Wert Date: Thu, 19 Nov 2020 14:07:44 +0100 Subject: [PATCH] Added GitHub workflow to auto label new issues and pull requests with 'agent-go' --- .github/labeler-config.yml | 3 +++ .github/workflows/labeler.yml | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/labeler-config.yml create mode 100644 .github/workflows/labeler.yml diff --git a/.github/labeler-config.yml b/.github/labeler-config.yml new file mode 100644 index 000000000..973621f9f --- /dev/null +++ b/.github/labeler-config.yml @@ -0,0 +1,3 @@ +# add 'agent-go' label to all new issues +agent-go: + - '.*' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000..950c18329 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,16 @@ +name: "Issue Labeler" +on: + issues: + types: [opened] + pull_request_target: + types: [opened] + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: AlexanderWert/issue-labeler@v2.3 + with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" + configuration-path: .github/labeler-config.yml + enable-versioned-regex: 0