-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Send chat notification on submission review #445
[Feature] Send chat notification on submission review #445
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/c0d3/c0d3-app/f0qqwg6mh |
Codecov Report
@@ Coverage Diff @@
## master #445 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 87 87
Lines 1157 1184 +27
Branches 252 254 +2
=========================================
+ Hits 1157 1184 +27
|
helpers/mattermost.ts
Outdated
async (id: string): Promise<UserInfo> => { | ||
try { | ||
const response = await fetch(`${chatServiceUrl}/users/${id}`, { headers }) | ||
return await response.json() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you could do just return response.json()
right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right! 👍
Closes #444
This PR will:
SubmissionStatus
enum to help avoid using strings for submission status;sendChatNotification
function inupdateSubmission
, to send a notification to the user when their submission has been accepted or rejected, including the review comment;