This repository was archived by the owner on Dec 2, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +7
-43
lines changed Expand file tree Collapse file tree 3 files changed +7
-43
lines changed Original file line number Diff line number Diff line change @@ -163,14 +163,14 @@ private static MattermostMessage GetMessageStatus(StatusEvent payload)
163
163
stateEmoji = ":white_check_mark:" ;
164
164
break ;
165
165
case "pending" :
166
- stateEmoji = ":question:" ;
167
- break ;
166
+ //This gets annoying!
167
+ throw new Exception ( "Unhandled status state: pending" ) ;
168
168
default :
169
169
stateEmoji = ":x:" ;
170
170
break ;
171
171
}
172
172
173
- retVal . Text = $ "New Status Message from { contextMd } on commit { commitMd } in { repoMd } \n \n >{ stateEmoji } - { payload . description } ";
173
+ retVal . Text = $ "New Status Message from { contextMd } on commit { commitMd } in { repoMd } \n >{ stateEmoji } - { payload . description } ";
174
174
175
175
return retVal ;
176
176
}
@@ -488,6 +488,9 @@ private static MattermostMessage GetMessagePullRequestReview(PullRequestReviewEv
488
488
} ;
489
489
}
490
490
break ;
491
+ case "dismissed" :
492
+ retVal . Text = $ "{ userMd } dismissed a [review]({ payload . review . html_url } ) on { titleMd } in { repoMd } ";
493
+ break ;
491
494
default :
492
495
throw new Exception ( $ "Unhandled Event action: { payload . action } ") ;
493
496
}
Original file line number Diff line number Diff line change 13
13
</ItemGroup >
14
14
15
15
<ItemGroup >
16
- <PackageReference Include =" Matterhook.NET.MatterhookClient" Version =" 1.0.3 " />
16
+ <PackageReference Include =" Matterhook.NET.MatterhookClient" Version =" 1.2.2.16 " />
17
17
<PackageReference Include =" Microsoft.AspNetCore.All" Version =" 2.0.0" />
18
18
<PackageReference Include =" Microsoft.VisualStudio.Web.CodeGeneration.Design" Version =" 2.0.0" />
19
19
<PackageReference Include =" ReverseMarkdown" Version =" 1.1.0" />
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments