Skip to content

Commit

Permalink
Fix erroneous recipe for draft PR filter (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerfade committed Mar 2, 2024
1 parent a179cce commit a026f67
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions docs/recipes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -212,22 +212,17 @@ Checks that the PR's draft state is false before running actions.
mergeable:
- when: pull_request.*, pull_request_review.*
name: 'Draft check'
validate:
filter:
- do: payload
pull_request:
draft:
boolean:
match: false
pass:
- do: comment
payload:
body: This PR is NOT a draft!
fail:
- do: comment
payload:
body: This PR is STILL a draft!


validate:
- do: description
no_empty:
enabled: true
message: Description must be present when PR is not a draft


Allow commits only if they contain a Issue ID (like an Azure DevOps Work Item)
Expand Down

0 comments on commit a026f67

Please sign in to comment.