diff --git a/.github/workflows/linear.yml b/.github/workflows/linear.yml new file mode 100644 index 00000000..11de1733 --- /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: "ZKVM" + linear-created-issue-state-id: "791f9982-af09-4b03-99b3-717754da12d0" # in-progress