From ed8c6f5d2a344b07bb5eeca03270bf585b6bd49c Mon Sep 17 00:00:00 2001 From: TASNEEM KOUSHAR <imatasneemkoushar@gmail.com> Date: Mon, 28 Oct 2024 21:57:39 +0530 Subject: [PATCH] fix(dashboard): move header to top (#32160) --- lib/workers/repository/dependency-dashboard.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/workers/repository/dependency-dashboard.ts b/lib/workers/repository/dependency-dashboard.ts index 9c61879a87..02be583d68 100644 --- a/lib/workers/repository/dependency-dashboard.ts +++ b/lib/workers/repository/dependency-dashboard.ts @@ -286,6 +286,11 @@ export async function ensureDependencyDashboard( } let issueBody = ''; + if (config.dependencyDashboardHeader?.length) { + issueBody += + template.compile(config.dependencyDashboardHeader, config) + '\n\n'; + } + if (configMigrationRes.result === 'pr-exists') { issueBody += '## Config Migration Needed\n\n' + @@ -301,11 +306,6 @@ export async function ensureDependencyDashboard( '\n\n'; } - if (config.dependencyDashboardHeader?.length) { - issueBody += - template.compile(config.dependencyDashboardHeader, config) + '\n\n'; - } - issueBody = appendRepoProblems(config, issueBody); if (hasDeprecations) { -- GitLab