From 52caebb280f09e207411f76b2ac28e66b98240db Mon Sep 17 00:00:00 2001 From: Anand Chowdhary Date: Mon, 10 Aug 2020 17:51:30 +0530 Subject: [PATCH] :sparkles: Support for site assignees --- update.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/update.ts b/update.ts index 539619b9..277dc03d 100644 --- a/update.ts +++ b/update.ts @@ -12,7 +12,12 @@ export const update = async () => { const config = safeLoad( await readFile(join(".", ".statusrc.yml"), "utf8") ) as { - sites: { name: string; url: string; method?: string }[]; + sites: { + name: string; + url: string; + method?: string; + assignees?: string[]; + }[]; owner: string; repo: string; userAgent?: string; @@ -124,7 +129,7 @@ export const update = async () => { - HTTP code: ${result.httpCode} - Response time: ${responseTime} ms `, - assignees: config.assignees, + assignees: [...(config.assignees || []), site.assignees], labels: ["status", slug], }); await octokit.issues.lock({