Skip to content

Commit

Permalink
feat: add support for draft PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
bobvanderlinden committed Aug 15, 2020
1 parent 2a1518c commit 40ecf66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/pull-request-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,12 @@ export function getPullRequestPlan (
actions: ['merge']
}
}
case MergeStateStatus.DRAFT:
return {
code: 'draft',
message: 'Pull request is marked as draft',
actions: []
}
case null:
return {
code: 'mergeable_not_supplied',
Expand Down

0 comments on commit 40ecf66

Please sign in to comment.