Skip to content

Commit

Permalink
Add comment explaining . => / replace
Browse files Browse the repository at this point in the history
  • Loading branch information
lkysow authored Jun 5, 2019
1 parent 8a3e342 commit 4944ee1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/events/webhooks/slack_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ func (d *DefaultSlackClient) createAttachments(applyResult ApplyResult) []slack.

text := fmt.Sprintf("Apply %s for <%s|%s>", successWord, applyResult.Pull.URL, applyResult.Repo.FullName)
directory := applyResult.Directory
// Since "." looks weird, replace it with "/" to make it clear this is the root.
if directory == "." {
directory = "/"
}
Expand Down

0 comments on commit 4944ee1

Please sign in to comment.