Skip to content

Commit

Permalink
🐛 Fix upptime/upptime#125 by adding assignees separately
Browse files Browse the repository at this point in the history
  • Loading branch information
AnandChowdhary committed Dec 18, 2020
1 parent d3dad5e commit 1315897
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,15 @@ generator: Upptime <https://github.com/upptime/upptime>
- HTTP code: ${result.httpCode}
- Response time: ${responseTime} ms
`,
assignees: [...(config.assignees || []), ...(site.assignees || [])],
labels: ["status", slug],
});
const assignees = [...(config.assignees || []), ...(site.assignees || [])];
await octokit.issues.addAssignees({
owner,
repo,
issue_number: newIssue.data.number,
assignees,
});
await octokit.issues.lock({
owner,
repo,
Expand Down

0 comments on commit 1315897

Please sign in to comment.