You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 9dd19e6
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: githubbot/githubbot/handler.go
+43-23Lines changed: 43 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,33 @@ type Handler struct {
30
30
31
31
var_ base.Handler= (*Handler)(nil)
32
32
33
+
const (
34
+
subscribeFailedMsg="I couldn't subscribe to updates on `%s`! Make sure the repository exists, you have access to it, and the Keybase integration is installed on it.\n\ngithub.com/apps/%s/installations/new"
35
+
)
36
+
37
+
// checkUserRepoAccess asks GitHub, with the user's own token, whether the user
38
+
// can see repo. A missing repo and a forbidden one both return false.
h.ChatEcho(msg.ConvID, "I couldn't subscribe to updates on `%s`! Make sure the Keybase integration is installed on your repository, and that the repository exists.\n\ngithub.com/apps/%s/installations/new", repo, h.appName)
0 commit comments