@backstage/plugin-scaffolder-backend 0.15.19 → 0.15.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference types="node" />
2
- import { ScmIntegrations, ScmIntegrationRegistry } from '@backstage/integration';
2
+ import { ScmIntegrations, ScmIntegrationRegistry, GithubCredentialsProvider } from '@backstage/integration';
3
3
  import { CatalogApi } from '@backstage/catalog-client';
4
4
  import { Logger } from 'winston';
5
5
  import { Writable } from 'stream';
@@ -84,6 +84,7 @@ declare function createPublishFileAction(): TemplateAction<any>;
84
84
  declare function createPublishGithubAction(options: {
85
85
  integrations: ScmIntegrationRegistry;
86
86
  config: Config;
87
+ githubCredentialsProvider?: GithubCredentialsProvider;
87
88
  }): TemplateAction<any>;
88
89
 
89
90
  declare type CreatePullRequestResponse = {
@@ -96,15 +97,17 @@ interface PullRequestCreator {
96
97
  }
97
98
  declare type ClientFactoryInput = {
98
99
  integrations: ScmIntegrationRegistry;
100
+ githubCredentialsProvider?: GithubCredentialsProvider;
99
101
  host: string;
100
102
  owner: string;
101
103
  repo: string;
102
104
  };
103
105
  interface CreateGithubPullRequestActionOptions {
104
106
  integrations: ScmIntegrationRegistry;
107
+ githubCredentialsProvider?: GithubCredentialsProvider;
105
108
  clientFactory?: (input: ClientFactoryInput) => Promise<PullRequestCreator>;
106
109
  }
107
- declare const createPublishGithubPullRequestAction: ({ integrations, clientFactory, }: CreateGithubPullRequestActionOptions) => TemplateAction<any>;
110
+ declare const createPublishGithubPullRequestAction: ({ integrations, githubCredentialsProvider, clientFactory, }: CreateGithubPullRequestActionOptions) => TemplateAction<any>;
108
111
 
109
112
  declare function createPublishGitlabAction(options: {
110
113
  integrations: ScmIntegrationRegistry;
@@ -116,12 +119,14 @@ declare const createPublishGitlabMergeRequestAction: (options: {
116
119
  }) => TemplateAction<any>;
117
120
 
118
121
  declare function createGithubActionsDispatchAction(options: {
119
- integrations: ScmIntegrationRegistry;
122
+ integrations: ScmIntegrations;
123
+ githubCredentialsProvider?: GithubCredentialsProvider;
120
124
  }): TemplateAction<any>;
121
125
 
122
126
  declare function createGithubWebhookAction(options: {
123
127
  integrations: ScmIntegrationRegistry;
124
128
  defaultWebhookSecret?: string;
129
+ githubCredentialsProvider?: GithubCredentialsProvider;
125
130
  }): TemplateAction<any>;
126
131
 
127
132
  declare type OctokitIntegration = {
@@ -136,12 +141,12 @@ declare type OctokitIntegration = {
136
141
  */
137
142
  declare class OctokitProvider {
138
143
  private readonly integrations;
139
- private readonly credentialsProviders;
140
- constructor(integrations: ScmIntegrationRegistry);
144
+ private readonly githubCredentialsProvider;
145
+ constructor(integrations: ScmIntegrationRegistry, githubCredentialsProvider?: GithubCredentialsProvider);
141
146
  /**
142
147
  * gets standard Octokit client based on repository URL.
143
148
  *
144
- * @param repoUrl Repository URL
149
+ * @param repoUrl - Repository URL
145
150
  */
146
151
  getOctokit(repoUrl: string): Promise<OctokitIntegration>;
147
152
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/plugin-scaffolder-backend",
3
3
  "description": "The Backstage backend plugin that helps you create new things",
4
- "version": "0.15.19",
4
+ "version": "0.15.20",
5
5
  "main": "dist/index.cjs.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "license": "Apache-2.0",
@@ -31,14 +31,14 @@
31
31
  "build:assets": "node scripts/build-nunjucks.js"
32
32
  },
33
33
  "dependencies": {
34
- "@backstage/backend-common": "^0.10.1",
35
- "@backstage/catalog-client": "^0.5.3",
36
- "@backstage/catalog-model": "^0.9.8",
37
- "@backstage/config": "^0.1.11",
38
- "@backstage/errors": "^0.1.5",
39
- "@backstage/integration": "^0.7.0",
40
- "@backstage/plugin-catalog-backend": "^0.19.4",
41
- "@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.7",
34
+ "@backstage/backend-common": "^0.10.3",
35
+ "@backstage/catalog-client": "^0.5.4",
36
+ "@backstage/catalog-model": "^0.9.9",
37
+ "@backstage/config": "^0.1.12",
38
+ "@backstage/errors": "^0.2.0",
39
+ "@backstage/integration": "^0.7.1",
40
+ "@backstage/plugin-catalog-backend": "^0.20.0",
41
+ "@backstage/plugin-scaffolder-backend-module-cookiecutter": "^0.1.8",
42
42
  "@backstage/plugin-scaffolder-common": "^0.1.2",
43
43
  "@backstage/types": "^0.1.1",
44
44
  "@gitbeaker/core": "^34.6.0",
@@ -73,8 +73,8 @@
73
73
  "yaml": "^1.10.0"
74
74
  },
75
75
  "devDependencies": {
76
- "@backstage/cli": "^0.10.4",
77
- "@backstage/test-utils": "^0.2.1",
76
+ "@backstage/cli": "^0.11.0",
77
+ "@backstage/test-utils": "^0.2.2",
78
78
  "@types/command-exists": "^1.2.0",
79
79
  "@types/fs-extra": "^9.0.1",
80
80
  "@types/git-url-parse": "^9.0.0",
@@ -95,5 +95,5 @@
95
95
  "assets"
96
96
  ],
97
97
  "configSchema": "config.d.ts",
98
- "gitHead": "4b2a8ed96ff427735c872a72c1864321ef698436"
98
+ "gitHead": "da66c61bdd63cdb3f0f0cd2e26dc9e6454d93c7b"
99
99
  }