mirror of
https://github.com/renovatebot/renovate.git
synced 2026-11-02 02:29:51 +00:00
chore: log prNotPendingHours (#39287)
* log-pr-not-pending-hrs * Apply Suggestions
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -144,6 +144,7 @@ export interface BranchConfig
|
||||
isConflicted?: boolean;
|
||||
commitFingerprint?: string;
|
||||
cacheFingerprintMatch?: CacheFingerprintMatchResult;
|
||||
prNotPendingHours?: number;
|
||||
}
|
||||
|
||||
export interface BranchMetadata {
|
||||
|
||||
Reference in New Issue
Block a user