From c761cf5b3a20ef383825fc3d52f99df246a6961f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20S=C3=B6derlund?= Date: Sat, 5 Apr 2025 22:17:04 +0200 Subject: [PATCH] Added changeset with instructions on how to not be affected by this change in existing templates. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: David Söderlund --- .changeset/smooth-moons-bake.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .changeset/smooth-moons-bake.md diff --git a/.changeset/smooth-moons-bake.md b/.changeset/smooth-moons-bake.md new file mode 100644 index 0000000000..10bc7787aa --- /dev/null +++ b/.changeset/smooth-moons-bake.md @@ -0,0 +1,21 @@ +--- +'@backstage/plugin-scaffolder-backend-module-github': minor +'@backstage/create-app': minor +--- + +**BREAKING** The `publish:github` scaffolder action defaults to initializing a branche named "main" instead of "master" when creating new repositories. + +If you or your organization have relied on all new github repositories having a default branch name of "master" you **must** set the `defaultBranch: 'master'` in your existing templates that feature the `publish:github` scaffolder action. + +To keep using the name "master" for your new github repos, these are the **required** changes: + +```diff + - id: publish + name: Publish + action: publish:github + input: + allowedHosts: ['github.com'] + description: This is ${{ parameters.name }} + repoUrl: ${{ parameters.repoUrl }} ++ defaultBranch: 'master' +```