diff --git a/.github/workflows/pr-linear-check.yml b/.github/workflows/pr-linear-check.yml deleted file mode 100644 index 68df79f..0000000 --- a/.github/workflows/pr-linear-check.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: PR Linear Ticket Check - -on: - workflow_call: - inputs: - linear_org: - description: Linear workspace slug (part of the URL) - type: string - default: twenty - -jobs: - check-linear-ticket: - runs-on: ubuntu-latest - steps: - - name: Check Linear ticket URL (skip bots) - env: - PR_BODY: ${{ github.event.pull_request.body }} - LINEAR_ORG: ${{ inputs.linear_org }} - PR_AUTHOR: ${{ github.event.pull_request.user.login }} - run: | - if [[ "$PR_AUTHOR" == "dependabot[bot]" || "$PR_AUTHOR" == "renovate[bot]" || "$PR_AUTHOR" == "github-actions[bot]" ]]; then - echo "Bot PR author ($PR_AUTHOR) — skipping Linear ticket check" - exit 0 - fi - if echo "$PR_BODY" | grep -qE "https://linear\.app/${LINEAR_ORG}/issue/[A-Z]+-[0-9]+"; then - echo "✅ Linear ticket URL found" - else - echo "❌ PR body must contain a Linear ticket URL" - echo "" - echo "Expected format: https://linear.app/${LINEAR_ORG}/issue/DO-123/ticket-slug" - echo "" - echo "Add a '## Linear Ticket' section to your PR body with the ticket URL." - exit 1 - fi