Skip to content

Commit

Permalink
fix(ci): don't PR or changelog check for draft PRs (#12405)
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg authored Aug 19, 2024
1 parent d415d9f commit 517c7ae
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- reopened
- labeled
- unlabeled
- ready_for_review
paths:
- '**.go'
- '**/go.mod'
Expand All @@ -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:
Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/pr-title-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,18 @@ name: PR Title Check

on:
pull_request_target:
types: [opened, edited, synchronize, reopened]
types:
- opened
- edited
- 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:
Expand Down

0 comments on commit 517c7ae

Please sign in to comment.