Skip to content

Commit

Permalink
Merge branch 'main' into joss
Browse files Browse the repository at this point in the history
  • Loading branch information
xuanxu committed Aug 2, 2023
2 parents f024997 + 5973fdd commit fdb0058
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/responders/repo_checks_responder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class RepoChecksResponder < Responder

def define_listening
@event_action = "issue_comment.created"
@event_regex = /\A@#{bot_name} check repository(?: from branch ([\/\w-]+))?\.?\s*$/i
@event_regex = /\A@#{bot_name} check repository(?: from branch ([\/\.\w-]+))?\.?\s*$/i
end

def process_message(message)
Expand Down
2 changes: 1 addition & 1 deletion spec/responders/repo_checks_responder_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
expect(@responder.event_regex).to match("@botsci check repository")
expect(@responder.event_regex).to match("@botsci check repository \r\n")
expect(@responder.event_regex).to match("@botsci check repository\r\nmore")
expect(@responder.event_regex).to match("@botsci check repository from branch custom-branch")
expect(@responder.event_regex).to match("@botsci check repository from branch custom-branch_6.0")
expect(@responder.event_regex).to match("@botsci check repository from branch custom/branch")
expect(@responder.event_regex).to match("@botsci check repository from branch development \r\n")
expect(@responder.event_regex).to_not match("@botsci check repository from branch ")
Expand Down

0 comments on commit fdb0058

Please sign in to comment.