Add comment explaining . => / replace

This commit is contained in:
Luke Kysow
2019-06-05 11:30:24 +01:00
committed by GitHub
parent 8a3e342344
commit 4944ee1687

View File

@@ -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 = "/"
}