From fe2f269bce5feb095868418b532d2fa68036b312 Mon Sep 17 00:00:00 2001 From: Anbraten Date: Wed, 8 Dec 2021 14:15:24 +0100 Subject: [PATCH] Show icon and index of a pull request in pipelines triggered by pull requests (#575) Co-authored-by: 6543 <6543@obermui.de> --- web/src/components/repo/build/BuildItem.vue | 5 ++++- web/src/views/repo/RepoBuild.vue | 8 ++++++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/web/src/components/repo/build/BuildItem.vue b/web/src/components/repo/build/BuildItem.vue index 28ecb2ee8..9d52ff851 100644 --- a/web/src/components/repo/build/BuildItem.vue +++ b/web/src/components/repo/build/BuildItem.vue @@ -33,7 +33,10 @@ - {{ build.branch }} + {{ + `#${build.ref.replaceAll('refs/pull/', '').replaceAll('/merge', '').replaceAll('/head', '')}` + }} + {{ build.branch }}
diff --git a/web/src/views/repo/RepoBuild.vue b/web/src/views/repo/RepoBuild.vue index 832b1e1e7..617f7217a 100644 --- a/web/src/views/repo/RepoBuild.vue +++ b/web/src/views/repo/RepoBuild.vue @@ -35,11 +35,15 @@ - {{ build.branch }} + {{ + `#${build.ref.replaceAll('refs/pull/', '').replaceAll('/merge', '').replaceAll('/head', '')}` + }} + {{ build.branch }}