Skip to content
This repository was archived by the owner on Dec 2, 2022. It is now read-only.

Commit 7e7cbe1

Browse files
authored
Merge pull request #9 from PromoFaux/development
release 1.3
2 parents 9222f21 + 99760ce commit 7e7cbe1

File tree

3 files changed

+7
-43
lines changed

3 files changed

+7
-43
lines changed

Matterhook.NET/Controllers/GitHubHookController.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,14 +163,14 @@ private static MattermostMessage GetMessageStatus(StatusEvent payload)
163163
stateEmoji = ":white_check_mark:";
164164
break;
165165
case "pending":
166-
stateEmoji = ":question:";
167-
break;
166+
//This gets annoying!
167+
throw new Exception("Unhandled status state: pending");
168168
default:
169169
stateEmoji = ":x:";
170170
break;
171171
}
172172

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}";
174174

175175
return retVal;
176176
}
@@ -488,6 +488,9 @@ private static MattermostMessage GetMessagePullRequestReview(PullRequestReviewEv
488488
};
489489
}
490490
break;
491+
case "dismissed":
492+
retVal.Text = $"{userMd} dismissed a [review]({payload.review.html_url}) on {titleMd} in {repoMd}";
493+
break;
491494
default:
492495
throw new Exception($"Unhandled Event action: {payload.action}");
493496
}

Matterhook.NET/Matterhook.NET.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
</ItemGroup>
1414

1515
<ItemGroup>
16-
<PackageReference Include="Matterhook.NET.MatterhookClient" Version="1.0.3" />
16+
<PackageReference Include="Matterhook.NET.MatterhookClient" Version="1.2.2.16" />
1717
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.0" />
1818
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="2.0.0" />
1919
<PackageReference Include="ReverseMarkdown" Version="1.1.0" />

Matterhook.NET/ScaffoldingReadMe.txt

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)