tags to array

This commit is contained in:
Raj Nandan Sharma
2024-01-19 10:07:14 +05:30
parent adbb541585
commit 12db7649b8
6 changed files with 67 additions and 28 deletions
+4 -1
View File
@@ -44,7 +44,10 @@ async function manualIncident(monitor, githubConfig){
if (end_time !== null) {
newIncident.end_time = end_time;
if(end_time <= GetNowTimestampUTC() && incident.state === "open"){
await CloseIssue(githubConfig, incidentNumber)
//close the issue after 30 secs
setTimeout(async () => {
await CloseIssue(githubConfig, incidentNumber)
}, 30000)
}
} else {
newIncident.end_time = GetNowTimestampUTC();