lib/lita/handlers/github_repo.rb in lita-github-0.1.1 vs lib/lita/handlers/github_repo.rb in lita-github-0.1.2
- old
+ new
@@ -89,10 +89,10 @@
}
)
# rubocop:disable Metrics/LineLength
route(
- /#{LitaGithub::R::A_REG}repo\s+?team\s+?(?<action>add|rm)\s+?(?<team>[a-zA-Z0-9_\-]+?)(\s+?to)?\s+?#{LitaGithub::R::REPO_REGEX}/,
+ /#{LitaGithub::R::A_REG}repo\s+?team\s+?(?<action>add|rm)\s+?(?<team>[a-zA-Z0-9_\-]+?)(\s+?(?:to|from))?\s+?#{LitaGithub::R::REPO_REGEX}/,
:repo_team_router,
command: true,
confirmation: true,
help: {
'gh repo team add everyone PagerDuty/lita-test' => 'add a team using slug to your repo',