From b2f5d50bb40fff2a743f5c1afd347f3dbfc369d5 Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Mon, 19 Aug 2024 14:59:48 +1000 Subject: [PATCH 1/2] fix(ci): don't PR or changelog check for draft PRs --- .github/workflows/changelog.yml | 4 +++- .github/workflows/pr-title-check.yml | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index 5a2de8703bf..c96bbe3b2c3 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -9,6 +9,7 @@ on: - reopened - labeled - unlabeled + - ready_for_review paths: - '**.go' - '**/go.mod' @@ -17,7 +18,8 @@ on: jobs: changelog: if: contains(github.event.pull_request.title, '[skip changelog]') == false && - contains(github.event.pull_request.labels.*.name, 'skip/changelog') == false + contains(github.event.pull_request.labels.*.name, 'skip/changelog') == false && + github.event.pull_request.draft == false runs-on: ubuntu-latest name: Changelog steps: diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml index 84c7cae525f..deecc9bda2f 100644 --- a/.github/workflows/pr-title-check.yml +++ b/.github/workflows/pr-title-check.yml @@ -2,13 +2,19 @@ name: PR Title Check on: pull_request_target: - types: [opened, edited, synchronize, reopened] + types: + - opened + - edited + - synchronize + - reopened + - ready_for_review permissions: pull-requests: write jobs: check-pr-title: + if: github.event.pull_request.draft == false name: Check PR Title runs-on: ubuntu-latest steps: From 94c95bd6c66bb9f6ab44b76186f654d5e78952de Mon Sep 17 00:00:00 2001 From: Rod Vagg Date: Mon, 19 Aug 2024 15:18:32 +1000 Subject: [PATCH 2/2] fixup! fix(ci): don't PR or changelog check for draft PRs --- .github/workflows/pr-title-check.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/pr-title-check.yml b/.github/workflows/pr-title-check.yml index deecc9bda2f..f9a1deffb24 100644 --- a/.github/workflows/pr-title-check.yml +++ b/.github/workflows/pr-title-check.yml @@ -5,7 +5,6 @@ on: types: - opened - edited - - synchronize - reopened - ready_for_review