Skip to content

Commit

Permalink
feat: add support for draft PRs (#816)
Browse files Browse the repository at this point in the history
  • Loading branch information
probot-auto-merge[bot] committed Aug 15, 2020
2 parents 182ad8c + 0615c8f commit eef40d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/pull-request-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export type PullRequestPlanCode
| 'failing_condition'
| 'blocked'
| 'dirty'
| 'draft'
| 'out_of_date'
| 'out_of_date_on_fork'
| 'update_branch'
Expand Down Expand Up @@ -236,6 +237,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 eef40d1

Please sign in to comment.