Skip to content

Commit 46082bf

Browse files
sohanlnikell
authored andcommitted
Show promotion target in build activity feed (#278)
1 parent 4f7f6c0 commit 46082bf

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/components/RepoItemLabel.vue

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ export default {
3636
if (event === "push" || event === "pull_request") {
3737
return { text: this.branch, href: this.hrefBranch };
3838
}
39+
if (event === "promote" && this.promotionTarget) {
40+
return { text: this.promotionTarget };
41+
}
3942
}
4043
},
4144
hrefPR() {
@@ -69,6 +72,9 @@ export default {
6972
},
7073
commitShaShort() {
7174
return this.commitSha && this.commitSha.substr(0, 8);
75+
},
76+
promotionTarget() {
77+
return this.build.deploy_to;
7278
}
7379
},
7480
methods: {

0 commit comments

Comments
 (0)