chore: log prNotPendingHours (#39287)

* log-pr-not-pending-hrs

* Apply Suggestions
This commit is contained in:
RahulGautamSingh
2025-11-19 00:20:56 +05:45
committed by GitHub
parent 35bf7b1bea
commit 2f2f2ea8a4
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -218,7 +218,7 @@ export async function ensurePr(
const lastCommitTime = await getBranchLastCommitTime(branchName);
if (getElapsedHours(lastCommitTime) >= config.prNotPendingHours) {
logger.debug(
'Branch exceeds prNotPending hours - forcing PR creation',
`Branch exceeds prNotPending=${config.prNotPendingHours}, hours - forcing PR creation`,
);
config.forcePr = true;
}
@@ -255,7 +255,7 @@ export async function ensurePr(
elapsedHours < config.prNotPendingHours))
) {
logger.debug(
`Branch is ${elapsedHours} hours old - skipping PR creation`,
`Branch is ${elapsedHours} hours old - skipping PR creation as prNotPendingHours is set to ${config.prNotPendingHours}`,
);
return {
type: 'without-pr',
+1
View File
@@ -144,6 +144,7 @@ export interface BranchConfig
isConflicted?: boolean;
commitFingerprint?: string;
cacheFingerprintMatch?: CacheFingerprintMatchResult;
prNotPendingHours?: number;
}
export interface BranchMetadata {