Skip to content
This repository has been archived by the owner on Jul 14, 2020. It is now read-only.

Commit

Permalink
fix(reviews): rejected PR is 'changes_requested'
Browse files Browse the repository at this point in the history
  • Loading branch information
jfairley committed Jun 22, 2018
1 parent f001fa1 commit 24dbbb4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/listener.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,9 +254,9 @@ export const messenger = controller => {
color = undefined;
textSummary = `:eyes: *Commented*`;
break;
case ReviewState.REJECTED:
case ReviewState.CHANGES_REQUESTED:
color = SlackAttachmentColor.DANGER;
textSummary = `:x: *Rejected*`;
textSummary = `:x: *Changes Requested*`;
break;
}
convo.say({
Expand Down
2 changes: 1 addition & 1 deletion src/models/github/review-state.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export enum ReviewState {
APPROVED = 'approved',
COMMENTED = 'commented',
REJECTED = 'rejected'
CHANGES_REQUESTED = 'changes_requested'
}

0 comments on commit 24dbbb4

Please sign in to comment.