0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-05-12 23:51:55 +00:00
renovatebot_renovate/lib/workers/repository/reconfigure/utils.ts
2025-04-22 10:14:42 +00:00

26 lines
617 B
TypeScript

import is from '@sindresorhus/is';
import { platform } from '../../../modules/platform';
import type { BranchStatus } from '../../../types';
export function getReconfigureBranchName(prefix: string): string {
return `${prefix}reconfigure`;
}
export async function setBranchStatus(
branchName: string,
description: string,
state: BranchStatus,
context?: string | null,
): Promise<void> {
if (!is.nonEmptyString(context)) {
// already logged this case when validating the status check
return;
}
await platform.setBranchStatus({
branchName,
context,
description,
state,
});
}