Skip to content

Commit

Permalink
v6
Browse files Browse the repository at this point in the history
  • Loading branch information
geored committed Nov 29, 2020
1 parent 5e2f183 commit 74ae289
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,9 @@ async function run() {

const body = newPullRequest(repo, title, author, htmlUrl)
// async send http post request...
await sendMessageToChat(body, allChats[0]);
await sendMessageToChat(body, allChats[1]);
for (let chat in allChats) {
await sendMessageToChat(body, chat);
}
break
}
case 'release': {
Expand All @@ -49,8 +50,9 @@ async function run() {

const body = newRelease(repo, tag, author, htmlUrl)
// async send http post request...
await sendMessageToChat(body, allChats[0]);
await sendMessageToChat(body, allChats[1]);
for (let chat in allChats) {
await sendMessageToChat(body, chat);
}
break
}
default:
Expand Down

0 comments on commit 74ae289

Please sign in to comment.