Merge pull request #5497 from backstage/timbonicus/nebula-preview

Add nebula-preview header for Octokit publishing
This commit is contained in:
Fredrik Adelöw
2021-04-27 19:56:26 +02:00
committed by GitHub
3 changed files with 7 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-scaffolder-backend': patch
---
Added the `nebula-preview` preview to `Octokit` for repository visibility.
@@ -149,6 +149,7 @@ export function createPublishGithubAction(options: {
const client = new Octokit({
auth: token,
baseUrl: integrationConfig.config.apiBaseUrl,
previews: ['nebula-preview'],
});
const user = await client.users.getByUsername({
@@ -72,6 +72,7 @@ export class GithubPublisher implements PublisherBase {
const client = new Octokit({
auth: token,
baseUrl: this.config.apiBaseUrl,
previews: ['nebula-preview'],
});
const description = values.description as string;