lib/lita/handlers/github_repo.rb in lita-github-0.0.2 vs lib/lita/handlers/github_repo.rb in lita-github-0.0.3
- old
+ new
@@ -62,9 +62,11 @@
'gh repo info PagerDuty/lita-github' => 'Display some information about the repo'
}
)
def repo_create(response)
+ return response.reply(t('method_disabled')) if func_disabled?(__method__)
+
org, repo = repo_match(response)
if repo?(rpo(org, repo))
return response.reply(t('repo_create.exists', org: org, repo: repo))
end