Closed spesnova closed 7 years ago
Fix the bug which set empty username as default. This was produced by me when I refactored this 😭
(this image is from this comment: https://github.com/wantedly/step-pretty-slack-notify/issues/40#issuecomment-264254421)
As you can see above, wercker sets "" to WERCKER_PRETTY_SLACK_NOTIFY_USERNAME if username option is not specified. Then default username is set to "".
""
WERCKER_PRETTY_SLACK_NOTIFY_USERNAME
username
username = ENV["WERCKER_PRETTY_SLACK_NOTIFY_USERNAME"] || "Wercker" # => ""
To fix Username does not default to Wercker · Issue #40 · wantedly/step-pretty-slack-notify
LGTM 👍 Thanks ❗️
What does this PR do?
Fix the bug which set empty username as default. This was produced by me when I refactored this 😭
(this image is from this comment: https://github.com/wantedly/step-pretty-slack-notify/issues/40#issuecomment-264254421)
As you can see above, wercker sets
""
toWERCKER_PRETTY_SLACK_NOTIFY_USERNAME
ifusername
option is not specified. Then default username is set to""
.Motivation
To fix Username does not default to Wercker · Issue #40 · wantedly/step-pretty-slack-notify