Skip to content
Snippets Groups Projects
Commit 139d6b23 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: include release headings in pr body only if it has commits

parent 42cb6fe8
Branches
Tags v11.15.7
No related merge requests found
......@@ -13,20 +13,24 @@ This PR also includes an upgrade to the corresponding [@types/{{{depName}}}](htt
**Important**: Renovate will wait until you have merged this Pin request before creating PRs for any *upgrades*. If you do not wish to pin anything, please update your config accordingly instead of leaving this PR open.
{{/if}}
{{#if hasCommits}}
### Commits
<details>
<summary>{{githubName}}</summary>
{{#each releases as |release|}}
{{#if release.hasCommits}}
#### {{release.version}}
{{#each release.commits as |commit|}}
- [`{{commit.shortSha}}`]({{commit.url}}) {{commit.message}}
{{/each}}
{{/if}}
{{/each}}
</details>
{{/if}}
{{/if}}
{{#if hasErrors}}
......
......@@ -115,6 +115,8 @@ async function ensurePr(prConfig) {
release.commits.push(commit);
});
}
release.hasCommits = release.commits.length > 0;
upgrade.hasCommits = upgrade.hasCommits || release.hasCommits;
upgrade.releases.push(release);
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment