Added changeset with instructions on how to not be affected by this change in existing templates.

Signed-off-by: David Söderlund <ds@dsoderlund.consulting>
This commit is contained in:
David Söderlund
2025-04-05 22:17:04 +02:00
parent 6febfdb2b7
commit c761cf5b3a
+21
View File
@@ -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'
```