Merge pull request #5024 from ebarriosjr/scaffolder-fix-github-org-visibility

Fix scaffolder backend bug with visibility for github org
This commit is contained in:
Fredrik Adelöw
2021-03-22 09:51:05 +01:00
committed by GitHub
2 changed files with 6 additions and 1 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Fixes bug in the `github:publish` action causing repositories to be set as private even if the visibility is set to internal
@@ -126,7 +126,7 @@ export function createPublishGithubAction(options: {
? client.repos.createInOrg({
name: repo,
org: owner,
private: repoVisibility !== 'public',
private: repoVisibility === 'private',
visibility: repoVisibility,
description: description,
})