From 1e30157a66fd6d7f92eb169c6e07ca41ef0e8e4d Mon Sep 17 00:00:00 2001 From: Lakshmi Narayana Date: Mon, 29 Nov 2021 15:05:01 -0600 Subject: [PATCH 1/3] Mapping vcs-type dynamically instead of hardcoding to git Signed-off-by: Lakshmi Narayana --- plugins/circleci/src/state/useBuilds.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/circleci/src/state/useBuilds.ts b/plugins/circleci/src/state/useBuilds.ts index a9869644a3..521a55e922 100644 --- a/plugins/circleci/src/state/useBuilds.ts +++ b/plugins/circleci/src/state/useBuilds.ts @@ -162,7 +162,7 @@ export function useBuilds() { vcs: { owner: owner, repo: repo, - type: GitType.GITHUB, + type: mapVcsType(vcs), }, }); } catch (e) { From 5a46712a7d6e6d095f01bd73c2f6b5b279981d4c Mon Sep 17 00:00:00 2001 From: Lakshmi Narayana Date: Tue, 30 Nov 2021 19:42:20 -0600 Subject: [PATCH 2/3] Patch-Changeset added for circleci plugin Signed-off-by: Lakshmi Narayana --- .changeset/moody-pears-suffer.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/moody-pears-suffer.md diff --git a/.changeset/moody-pears-suffer.md b/.changeset/moody-pears-suffer.md new file mode 100644 index 0000000000..5fe4ec17ab --- /dev/null +++ b/.changeset/moody-pears-suffer.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-circleci': patch +--- + +Fixed bug in circleci plugin. The bug fix is with respect to restartBuild action in circleci.Changed the vcstype from Git to map the vcstype dynamically. From 6efe04485deea22c5bf6a3cad5f9da9ea8c663c1 Mon Sep 17 00:00:00 2001 From: Lakshmi Narayana Date: Wed, 1 Dec 2021 10:19:01 -0600 Subject: [PATCH 3/3] Fixed the spellcheck and grammar issue Signed-off-by: Lakshmi Narayana --- .changeset/moody-pears-suffer.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/moody-pears-suffer.md b/.changeset/moody-pears-suffer.md index 5fe4ec17ab..920c0ff952 100644 --- a/.changeset/moody-pears-suffer.md +++ b/.changeset/moody-pears-suffer.md @@ -2,4 +2,4 @@ '@backstage/plugin-circleci': patch --- -Fixed bug in circleci plugin. The bug fix is with respect to restartBuild action in circleci.Changed the vcstype from Git to map the vcstype dynamically. +Fixed a bug in the `CircleCI` plugin where restarting builds was hard-coded to GitHub rather than introspecting the entity source location.