diff options
Diffstat (limited to 'lib/api/v3/github.rb')
-rw-r--r-- | lib/api/v3/github.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/api/v3/github.rb b/lib/api/v3/github.rb index 7d8c37cd39b..7348ed612fc 100644 --- a/lib/api/v3/github.rb +++ b/lib/api/v3/github.rb @@ -29,10 +29,9 @@ module API feature_category :integrations before do - reversible_end_of_life! - authorize_jira_user_agent!(request) authenticate! + reversible_end_of_life! end helpers do @@ -50,6 +49,13 @@ module API # TODO Make the breaking change irreversible https://gitlab.com/gitlab-org/gitlab/-/issues/408148. def reversible_end_of_life! not_found! unless Feature.enabled?(:jira_dvcs_end_of_life_amnesty) + + Gitlab::IntegrationsLogger.info( + user_id: current_user&.id, + namespace: params[:namespace], + project: params[:project], + message: 'Deprecated Jira DVCS endpoint request' + ) end def authorize_jira_user_agent!(request) |