Last active
September 21, 2017 10:18
-
-
Save shkrt/832fb618602527ac35ab57969e3e0ede to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def match_host(issue_url) | |
Container['matchers.git_host'].(issue_url) do |m| | |
m.success(:github) { |issue_data| Container['services.github_issue_requester'].(issue_data) } | |
m.success(:gitlab) { |issue_data| Container['services.gitlab_issue_requester'].(issue_data) } | |
m.failure do | |
error('invalid url') | |
INVALID_URL_ERROR | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment