Commit 3e4d13ad authored by Adriel Santiago's avatar Adriel Santiago

Link project short SHA to commit url

parent 51679f61
......@@ -72,10 +72,10 @@ export default {
<commit
:commit-ref="commitRef"
:short-sha="project.last_deployment.commit.short_id"
:commit-url="project.last_deployment.commit.web_url"
:commit-url="project.last_deployment.commit.commit_url"
:title="project.last_deployment.commit.title"
:author="author"
:tag="project.last_deployment.commit.tag"
:tag="project.last_deployment.tag"
/>
</div>
<div
......
---
title: Link project short SHA to commit url
merge_request: 8214
author:
type: fixed
......@@ -74,8 +74,8 @@ describe('project component', () => {
expect(commit.shortSha).toBe(vm.project.last_deployment.commit.short_id);
});
it('binds web_url to commitUrl', () => {
expect(commit.commitUrl).toBe(vm.project.last_deployment.commit.web_url);
it('binds commitUrl', () => {
expect(commit.commitUrl).toBe(vm.project.last_deployment.commit.commit_url);
});
it('binds title', () => {
......@@ -87,7 +87,7 @@ describe('project component', () => {
});
it('binds tag', () => {
expect(commit.tag).toBe(vm.project.last_deployment.commit.tag);
expect(commit.tag).toBe(vm.project.last_deployment.tag);
});
});
......
......@@ -34,10 +34,10 @@ export function mockProjectData(
created_at: deployTimeStamp,
commit: {
short_id: 'mock-short_id',
tag: isTag,
title: 'mock-title',
web_url: 'https://mock-web_url/',
commit_url: 'https://mock-commit_url/',
},
tag: isTag,
user: {
avatar_url: null,
path: 'mock-path',
......
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