chore: migrating azure actions to use new format
Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { Logger } from 'winston';
|
||||
import { Git } from '../scm';
|
||||
import { LoggerService } from '@backstage/backend-plugin-api';
|
||||
|
||||
/**
|
||||
* @public
|
||||
@@ -27,7 +27,7 @@ export async function initRepoAndPush(input: {
|
||||
// it has to be provided as password together with a username
|
||||
// which may be a fixed value defined by the provider.
|
||||
auth: { username: string; password: string } | { token: string };
|
||||
logger: Logger;
|
||||
logger: LoggerService;
|
||||
defaultBranch?: string;
|
||||
commitMessage?: string;
|
||||
gitAuthorInfo?: { name?: string; email?: string };
|
||||
@@ -87,7 +87,7 @@ export async function commitAndPushRepo(input: {
|
||||
// it has to be provided as password together with a username
|
||||
// which may be a fixed value defined by the provider.
|
||||
auth: { username: string; password: string } | { token: string };
|
||||
logger: Logger;
|
||||
logger: LoggerService;
|
||||
commitMessage: string;
|
||||
gitAuthorInfo?: { name?: string; email?: string };
|
||||
branch?: string;
|
||||
@@ -147,7 +147,7 @@ export async function cloneRepo(options: {
|
||||
// it has to be provided as password together with a username
|
||||
// which may be a fixed value defined by the provider.
|
||||
auth: { username: string; password: string } | { token: string };
|
||||
logger?: Logger | undefined;
|
||||
logger?: LoggerService | undefined;
|
||||
ref?: string | undefined;
|
||||
depth?: number | undefined;
|
||||
noCheckout?: boolean | undefined;
|
||||
@@ -172,7 +172,7 @@ export async function createBranch(options: {
|
||||
// it has to be provided as password together with a username
|
||||
// which may be a fixed value defined by the provider.
|
||||
auth: { username: string; password: string } | { token: string };
|
||||
logger?: Logger | undefined;
|
||||
logger?: LoggerService | undefined;
|
||||
}): Promise<void> {
|
||||
const { dir, ref, auth, logger } = options;
|
||||
const git = Git.fromAuth({
|
||||
@@ -193,7 +193,7 @@ export async function addFiles(options: {
|
||||
// it has to be provided as password together with a username
|
||||
// which may be a fixed value defined by the provider.
|
||||
auth: { username: string; password: string } | { token: string };
|
||||
logger?: Logger | undefined;
|
||||
logger?: LoggerService | undefined;
|
||||
}): Promise<void> {
|
||||
const { dir, filepath, auth, logger } = options;
|
||||
const git = Git.fromAuth({
|
||||
@@ -213,7 +213,7 @@ export async function commitAndPushBranch(options: {
|
||||
// it has to be provided as password together with a username
|
||||
// which may be a fixed value defined by the provider.
|
||||
auth: { username: string; password: string } | { token: string };
|
||||
logger?: Logger | undefined;
|
||||
logger?: LoggerService | undefined;
|
||||
commitMessage: string;
|
||||
gitAuthorInfo?: { name?: string; email?: string };
|
||||
branch?: string;
|
||||
|
||||
Reference in New Issue
Block a user