diff options
author | André Luís <me@andr3.net> | 2018-05-25 13:08:53 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-05-25 13:08:53 +0300 |
commit | c53890548e15c15b38f3aa7911a69a4c24173f15 (patch) | |
tree | c1452bf14ae2ef959fc461b6138e5ad7651f6337 /app/assets/javascripts/ide/stores/mutations | |
parent | de12348ee8534b2a4310c81898e7151dd7616095 (diff) |
Resolve "Show CI pipeline status in Web IDE"
Diffstat (limited to 'app/assets/javascripts/ide/stores/mutations')
-rw-r--r-- | app/assets/javascripts/ide/stores/mutations/branch.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/stores/mutations/branch.js b/app/assets/javascripts/ide/stores/mutations/branch.js index e09f88878f4..f17ec4da308 100644 --- a/app/assets/javascripts/ide/stores/mutations/branch.js +++ b/app/assets/javascripts/ide/stores/mutations/branch.js @@ -14,6 +14,10 @@ export default { treeId: `${projectPath}/${branchName}`, active: true, workingReference: '', + commit: { + ...branch.commit, + pipeline: {}, + }, }, }, }); @@ -28,4 +32,9 @@ export default { commit, }); }, + [types.SET_LAST_COMMIT_PIPELINE](state, { projectId, branchId, pipeline }) { + Object.assign(state.projects[projectId].branches[branchId].commit, { + pipeline, + }); + }, }; |