gitlab-org--gitlab-foss/lib/constraints/jira_encoded_url_constrainer.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
246 B
Ruby
Raw Normal View History

# frozen_string_literal: true
module Constraints
class JiraEncodedUrlConstrainer
def matches?(request)
request.path.starts_with?('/-/jira') || request.params[:project_id].include?(Gitlab::Jira::Dvcs::ENCODED_SLASH)
end
end
end