From 28a60880b43b69f2fb40124b2d81b2493884ae69 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Sun, 31 Mar 2019 16:12:26 +0100 Subject: [PATCH] Add search !help and fix usage text --- src/github.com/matrix-org/go-neb/services/github/github.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/go-neb/services/github/github.go b/src/github.com/matrix-org/go-neb/services/github/github.go index ca3fc2f..245c7c0 100644 --- a/src/github.com/matrix-org/go-neb/services/github/github.go +++ b/src/github.com/matrix-org/go-neb/services/github/github.go @@ -89,7 +89,7 @@ func (s *Service) requireGithubClientFor(userID string) (cli *gogithub.Client, r } const numberGithubSearchSummaries = 3 -const cmdGithubSearchUsage = `!github search "search query"` +const cmdGithubSearchUsage = `!github search owner/repo "search query"` func (s *Service) cmdGithubSearch(roomID, userID string, args []string) (interface{}, error) { cli := s.githubClientFor(userID, true) @@ -560,6 +560,7 @@ func (s *Service) Commands(cli *gomatrix.Client) []types.Command { cmdGithubAssignUsage, cmdGithubCloseUsage, cmdGithubReopenUsage, + cmdGithubSearchUsage, }, "\n"), }, nil },