Skip to content

Commit

Permalink
CI: Run the commit linter for Draft Pull Requests
Browse files Browse the repository at this point in the history
The commit linter will now run for draft pull requests as well, but
BuggieBot will not post a message on failing draft PRs.
  • Loading branch information
IdanHo authored and linusg committed Jul 9, 2021
1 parent 5662e72 commit 69eb05e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/lintcommits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on: [pull_request_target]
jobs:
lint_commits:
runs-on: ubuntu-20.04
if: always() && github.repository == 'SerenityOS/serenity' && !github.event.pull_request.draft
if: always() && github.repository == 'SerenityOS/serenity'

steps:
- name: Get PR Commits
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
error: 'Commit title ends in a period'

- name: Comment on PR
if: ${{ failure() }}
if: ${{ failure() && !github.event.pull_request.draft }}
uses: IdanHo/comment-on-pr@5f51df338210754f519f721f8320d8f72525a4d0
env:
GITHUB_TOKEN: ${{ secrets.BUGGIEBOT }}
Expand Down

0 comments on commit 69eb05e

Please sign in to comment.