Skip to content

Commit

Permalink
Merge pull request danger#1340 from rogerluan/fix-draft-status
Browse files Browse the repository at this point in the history
Fix `pr_draft?` GitHub Method
  • Loading branch information
orta committed Dec 17, 2021
2 parents 4e1756d + 834fd88 commit 4300005
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

## master
<!-- Your comment below here -->
* Fix issue in GitHub `pr_draft?` method which was returning false for draft Pull Requests - [@rogerluan](https://github.com/rogerluan)
<!-- Your comment above here -->

## 8.4.2
Expand Down
2 changes: 1 addition & 1 deletion lib/danger/danger_core/plugins/dangerfile_github_plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def pr_labels
# @return [Boolean]
#
def pr_draft?
pr_json["mergeable_state"] == "draft"
pr_json["draft"] == true
end

# @!group PR Commit Metadata
Expand Down

0 comments on commit 4300005

Please sign in to comment.