Browse Source
Add search !help and fix usage text
hs/search-usage
Will Hunt
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
1 deletions
-
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 |
|
|
|
}, |
|
|
|