From 15a457d3b5721d9903b3d71d7fec73aea6293c22 Mon Sep 17 00:00:00 2001 From: Zac Rosenbauer Date: Thu, 7 May 2026 23:14:22 -0400 Subject: [PATCH] ci: skip checks for draft PRs --- .changeset/quiet-draft-pr-checks.md | 4 ++++ .github/workflows/pull-request.yml | 10 +++++++++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .changeset/quiet-draft-pr-checks.md diff --git a/.changeset/quiet-draft-pr-checks.md b/.changeset/quiet-draft-pr-checks.md new file mode 100644 index 000000000..269bf669a --- /dev/null +++ b/.changeset/quiet-draft-pr-checks.md @@ -0,0 +1,4 @@ +--- +--- + +Skip PR checks while pull requests are drafts. diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 25d7eb857..db114c94c 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -1,8 +1,11 @@ name: PR Checks -on: [pull_request] +on: + pull_request: + types: [opened, synchronize, reopened, ready_for_review] jobs: commit-lint: + if: ${{ !github.event.pull_request.draft }} runs-on: ubuntu-latest concurrency: group: ${{ github.ref }}-commit-lint @@ -12,6 +15,7 @@ jobs: - uses: actions/checkout@v4 - uses: wagoid/commitlint-github-action@v5 lint: + if: ${{ !github.event.pull_request.draft }} runs-on: ubuntu-latest strategy: matrix: @@ -38,6 +42,7 @@ jobs: - name: Syncpack run: pnpm sp lint build: + if: ${{ !github.event.pull_request.draft }} runs-on: ubuntu-latest strategy: matrix: @@ -65,6 +70,7 @@ jobs: # run: pnpm attw:all test-packages: + if: ${{ !github.event.pull_request.draft }} runs-on: ubuntu-latest strategy: matrix: @@ -110,6 +116,7 @@ jobs: run: lerna run test --scope "${{ steps.scope.outputs.scope }}" postgres-integration: + if: ${{ !github.event.pull_request.draft }} runs-on: ubuntu-latest name: PostgreSQL Integration Tests concurrency: @@ -174,6 +181,7 @@ jobs: DATABASE_URL: postgresql://test:test@localhost:5432/voltagent_test e2e-tests: + if: ${{ !github.event.pull_request.draft }} runs-on: ubuntu-latest name: E2E Tests concurrency: