chore: migrating azure actions to use new format

Signed-off-by: benjdlambert <ben@blam.sh>
This commit is contained in:
benjdlambert
2025-06-03 10:58:36 +02:00
parent 8cda60e6d4
commit e89d7b664c
6 changed files with 116 additions and 102 deletions
+6 -6
View File
@@ -95,7 +95,7 @@ export function addFiles(options: {
| {
token: string;
};
logger?: Logger | undefined;
logger?: LoggerService | undefined;
}): Promise<void>;
// @public (undocumented)
@@ -110,7 +110,7 @@ export function cloneRepo(options: {
| {
token: string;
};
logger?: Logger | undefined;
logger?: LoggerService | undefined;
ref?: string | undefined;
depth?: number | undefined;
noCheckout?: boolean | undefined;
@@ -127,7 +127,7 @@ export function commitAndPushBranch(options: {
| {
token: string;
};
logger?: Logger | undefined;
logger?: LoggerService | undefined;
commitMessage: string;
gitAuthorInfo?: {
name?: string;
@@ -152,7 +152,7 @@ export function commitAndPushRepo(input: {
| {
token: string;
};
logger: Logger;
logger: LoggerService;
commitMessage: string;
gitAuthorInfo?: {
name?: string;
@@ -177,7 +177,7 @@ export function createBranch(options: {
| {
token: string;
};
logger?: Logger | undefined;
logger?: LoggerService | undefined;
}): Promise<void>;
// @public @deprecated (undocumented)
@@ -304,7 +304,7 @@ export function initRepoAndPush(input: {
| {
token: string;
};
logger: Logger;
logger: LoggerService;
defaultBranch?: string;
commitMessage?: string;
gitAuthorInfo?: {
@@ -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;