Support for site assignees

This commit is contained in:
Anand Chowdhary
2020-08-10 17:51:30 +05:30
parent b7ec581e3d
commit 52caebb280
+7 -2
View File
@@ -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({