From 477a259f8f9af05403fe71bf9967dd6e5d76439c Mon Sep 17 00:00:00 2001 From: nils m Date: Thu, 29 Aug 2024 18:19:56 +0000 Subject: [PATCH] Automatically populate issues in linear form PRs --- .github/workflows/linear.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/linear.yml diff --git a/.github/workflows/linear.yml b/.github/workflows/linear.yml new file mode 100644 index 00000000..304e5534 --- /dev/null +++ b/.github/workflows/linear.yml @@ -0,0 +1,28 @@ +name: Find or Create Linear Issue for PR + +on: + workflow_dispatch: + pull_request: + branches: + - main + types: ["opened", "edited", "reopened", "synchronize"] + +permissions: + pull-requests: write + repository-projects: read + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: false + +jobs: + create-linear-issue-pr: + runs-on: ubuntu-latest + steps: + - name: Find or create a Linear Issue + uses: risc0/action-find-or-create-linear-issue@risc0 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + linear-api-key: ${{ secrets.LINEAR_API_KEY }} + linear-team-key: "ZIR" + linear-created-issue-state-id: "bab82211-2372-4199-89d3-71f1246cee71" # in-progress