Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ry-itto committed May 17, 2020
1 parent 3cd62ed commit 8b082e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ async function run(): Promise<void> {
const envVariables = readEnvVariables()
const title = replaceGitHubUsernameWithSlackUsername(
envVariables.attachmentsTitle ?? '',
envVariables.slackUsername ?? ''
envVariables.slackUser ?? ''
)
const body = replaceGitHubUsernameWithSlackUsername(
envVariables.attachmentsBody ?? '',
envVariables.slackUsername ?? ''
envVariables.slackUser ?? ''
)

const webhook = new slack.IncomingWebhook(envVariables.webhookURL)
Expand Down Expand Up @@ -47,7 +47,7 @@ async function run(): Promise<void> {
})
const args = createIncomingWebhookSendArguments({
iconUrl: envVariables.slackIconURL,
username: envVariables.slackUser,
username: envVariables.slackUsername,
attachments: [attachments]
})

Expand Down

0 comments on commit 8b082e0

Please sign in to comment.