diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-28 18:09:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-28 18:09:17 +0300 |
commit | 1bb7f81e238569fd0fe2b0c4385f1015407a2d59 (patch) | |
tree | 768c7d44fa3ed641a7e26fdf9db61422902e8294 /app/models/jira_connect_installation.rb | |
parent | eb3a23aaaa99ef8ae08c7b440fad676e3c71a1af (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/jira_connect_installation.rb')
-rw-r--r-- | app/models/jira_connect_installation.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/models/jira_connect_installation.rb b/app/models/jira_connect_installation.rb index 4496d5f2507..23813fa138f 100644 --- a/app/models/jira_connect_installation.rb +++ b/app/models/jira_connect_installation.rb @@ -33,4 +33,20 @@ class JiraConnectInstallation < ApplicationRecord instance_url end + + def audience_url + return unless proxy? + + Gitlab::Utils.append_path(instance_url, '/-/jira_connect') + end + + def audience_installed_event_url + return unless proxy? + + Gitlab::Utils.append_path(instance_url, '/-/jira_connect/events/installed') + end + + def proxy? + instance_url.present? + end end |