Commit 02a4c672 authored by Phil Hughes's avatar Phil Hughes

Merge branch 'patch-13' into 'master'

Support location.positions in code climate MR-widget

Closes #6813

See merge request gitlab-org/gitlab-ee!8098
parents 160d6fa3 5906c829
......@@ -153,7 +153,15 @@ export default class MergeRequestStore extends CEMergeRequestStore {
if (issue.location.lines && issue.location.lines.begin) {
parsedIssue.line = issue.location.lines.begin;
parseCodeQualityUrl += `#L${issue.location.lines.begin}`;
} else if (
issue.location.positions &&
issue.location.positions.begin &&
issue.location.positions.begin.line
) {
parsedIssue.line = issue.location.positions.begin.line;
parseCodeQualityUrl += `#L${issue.location.positions.begin.line}`;
}
parsedIssue.urlPath = parseCodeQualityUrl;
}
}
......
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