Commit c9ccfc65 authored by Oswaldo Ferreira's avatar Oswaldo Ferreira

Adjust self-hosted Jira development panel integration

parent 7a610b64
---
title: Adjust self-hosted Jira development panel integration
merge_request: 6756
author:
type: fixed
......@@ -125,6 +125,14 @@ module API
present []
end
# Self-hosted Jira (tested on 7.11.1) requests this endpoint right
# after fetching branches.
# We need to respond with a 200 request to avoid breaking the
# integration flow (fetching merge requests).
get '/-/jira/events' do
present []
end
params do
use :project_full_path
use :pagination
......
......@@ -37,6 +37,15 @@ describe API::V3::Github do
end
end
describe 'GET /repos/-/jira/events' do
it 'returns an empty array' do
get v3_api('/repos/-/jira/events', user)
expect(response).to have_gitlab_http_status(200)
expect(json_response).to eq([])
end
end
describe 'GET /-/jira/pulls' do
let(:assignee) { create(:user) }
let!(:merge_request) do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment