Skip to content

Commit

Permalink
Automatically populate issues in linear form PRs (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
shkoo authored Sep 5, 2024
1 parent 507ed36 commit 3abf1fd
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/linear.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 3abf1fd

Please sign in to comment.