Skip to content

Commit 0a7ec87

Browse files
CyberShadowPetarKirov
authored andcommitted
dlangbot.github_api: Add GHReview.State.DISMISSED
Fixes deserialization of events for when a pull request review is dismissed. Hypothetically should fix auto-merging when someone dismisses the last review requesting changes and all other conditions for auto-merge are satisfied.
1 parent 8673029 commit 0a7ec87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/dlangbot/github_api.d

+1-1
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ struct GHReview
380380
GHUser user;
381381
@name("commit_id") string commitId;
382382
string body_;
383-
enum State { APPROVED, CHANGES_REQUESTED, COMMENTED }
383+
enum State { APPROVED, CHANGES_REQUESTED, COMMENTED, DISMISSED }
384384
@byName State state;
385385
@byName @name("author_association") CommentAuthorAssociation authorAssociation;
386386
}

0 commit comments

Comments
 (0)