Skip to content

Commit

Permalink
Remove incorrect missing message
Browse files Browse the repository at this point in the history
  • Loading branch information
rneatherway committed Apr 10, 2022
1 parent 026a29c commit 4b74457
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
10 changes: 6 additions & 4 deletions cmd/gh-slack/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@ import (
"github.com/jessevdk/go-flags"
)

var permalinkRE = regexp.MustCompile("https://[^./]+.slack.com/archives/([A-Z0-9]+)/p([0-9]+)([0-9]{6})")
var nwoRE = regexp.MustCompile("^/[^/]+/[^/]+/?$")
var issueRE = regexp.MustCompile("^/[^/]+/[^/]+/issues/[0-9]+/?$")
var (
permalinkRE = regexp.MustCompile("https://[^./]+.slack.com/archives/([A-Z0-9]+)/p([0-9]+)([0-9]{6})")
nwoRE = regexp.MustCompile("^/[^/]+/[^/]+/?$")
issueRE = regexp.MustCompile("^/[^/]+/[^/]+/issues/[0-9]+/?$")
)

// https://github.slack.com/archives/CP9GMKJCE/p1648028606962719
// returns (CP9GMKJCE, 1648028606.962719, nil)
Expand Down Expand Up @@ -118,7 +120,7 @@ func realMain() error {
}
gh.AddComment(issueUrl, channelInfo, output)
} else {
fmt.Println(output)
os.Stdout.WriteString(output)
}

return nil
Expand Down
4 changes: 0 additions & 4 deletions internal/markdown/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ func FromMessages(client *slackclient.SlackClient, history *slackclient.HistoryR
b.WriteString("\n")
}

if history.HasMore {
b.WriteString(":warning: some messages are missing")
}

return b.String(), nil
}

Expand Down

0 comments on commit 4b74457

Please sign in to comment.