diff --git a/.changeset/moody-pears-suffer.md b/.changeset/moody-pears-suffer.md new file mode 100644 index 0000000000..920c0ff952 --- /dev/null +++ b/.changeset/moody-pears-suffer.md @@ -0,0 +1,5 @@ +--- +'@backstage/plugin-circleci': patch +--- + +Fixed a bug in the `CircleCI` plugin where restarting builds was hard-coded to GitHub rather than introspecting the entity source location. 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) {