From 782592d4d24f1d608f98f9f45c39955e78fff441 Mon Sep 17 00:00:00 2001 From: jack shelton Date: Fri, 23 Aug 2024 18:00:36 -0500 Subject: [PATCH] fix: get correct pr title --- .github/workflows/sync-pr-to-linear.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync-pr-to-linear.yml b/.github/workflows/sync-pr-to-linear.yml index 0f70560c..21f930a1 100644 --- a/.github/workflows/sync-pr-to-linear.yml +++ b/.github/workflows/sync-pr-to-linear.yml @@ -21,16 +21,14 @@ jobs: steps: - name: 🔍 Check PR Title id: check-pr-title - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PR_NUMBER: ${{ github.event.issue.number }} run: | - PR_TITLE=$(gh pr view $PR_NUMBER --json title -q .title) + PR_TITLE="${{ github.event.issue.title }}" if [[ $PR_TITLE == *"Release v"* ]]; then echo "is_release_pr=true" >> $GITHUB_OUTPUT else echo "is_release_pr=false" >> $GITHUB_OUTPUT fi + shell: bash sync-comments: name: 🔄 Sync Comments