From 9a9879893be8c7929b9db6cf5b139962d10c7ea0 Mon Sep 17 00:00:00 2001 From: Varun Gandhi Date: Fri, 22 Mar 2024 08:01:35 +0800 Subject: [PATCH] Auto-add 'cody' label to issues for filtering in Linear (#3474) The `cody` label will allow constructing unified Views inside Linear for Cody-related issues filed on different repos, such as the Sourcegraph monorepo, this repo, and the sourcegraph/customer repo. --- .github/labeler.yml | 2 ++ .github/workflows/labeler.yml | 18 ++++++++++++++++++ 2 files changed, 20 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 000000000000..efc3acbd1be4 --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,2 @@ +cody: + - '/.*/' diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 000000000000..c2f027b1b784 --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,18 @@ +name: "Issue Labeler" +on: + issues: + types: [opened, edited] + +permissions: + issues: write + contents: read + +jobs: + triage: + runs-on: ubuntu-latest + steps: + - uses: github/issue-labeler@v3.4 + with: + configuration-path: .github/labeler.yml + enable-versioned-regex: 0 + repo-token: ${{ github.token }}