Browse Source
improve error from no default repo
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/197/head
Michael Telatynski
7 years ago
No known key found for this signature in database
GPG Key ID: 3F879DA5AD802A5E
1 changed files with
1 additions and
1 deletions
-
src/github.com/matrix-org/go-neb/services/github/github.go
|
@ -305,7 +305,7 @@ func (s *Service) getIssueDetailsFor(input, roomID, usage string) (owner, repo s |
|
|
// issue only match, this only works if there is a default repo
|
|
|
// issue only match, this only works if there is a default repo
|
|
|
defaultRepo := s.defaultRepo(roomID) |
|
|
defaultRepo := s.defaultRepo(roomID) |
|
|
if defaultRepo == "" { |
|
|
if defaultRepo == "" { |
|
|
resp = &gomatrix.TextMessage{"m.notice", "Usage: " + usage} |
|
|
|
|
|
|
|
|
resp = &gomatrix.TextMessage{"m.notice", "No default repo specified. Usage: " + usage} |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|