mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-11 22:46:27 +00:00
parent
345cf3e159
commit
439367e223
4 changed files with 9 additions and 6 deletions
|
@ -7,10 +7,11 @@ This {{#if isGitHub}}Pull{{else}}Merge{{/if}} Request renovates the package grou
|
|||
### Commits
|
||||
|
||||
{{#each upgrades as |upgrade|}}
|
||||
{{#if upgrade.releases.length}}
|
||||
<details>
|
||||
<summary>{{upgrade.githubName}}</summary>
|
||||
|
||||
{{#each upgrade.releases as |release|}}
|
||||
|
||||
#### {{release.version}}
|
||||
{{#each release.commits as |commit|}}
|
||||
- [`{{commit.shortSha}}`]({{commit.url}}){{commit.message}}
|
||||
|
@ -18,9 +19,9 @@ This {{#if isGitHub}}Pull{{else}}Merge{{/if}} Request renovates the package grou
|
|||
{{/each}}
|
||||
|
||||
</details>
|
||||
{{/if}}
|
||||
{{/each}}
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
This {{#if isGitHub}}PR{{else}}MR{{/if}} has been generated by [Renovate Bot](https://keylocation.sg/our-tech/renovate).
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
This {{#if isGitHub}}Pull{{else}}Merge{{/if}} Request updates dependency [{{depName}}]({{repositoryUrl}}) from version `{{currentVersion}}` to `{{newVersion}}`
|
||||
{{#if releases.length}}
|
||||
|
||||
### Commits
|
||||
|
||||
|
@ -13,8 +14,7 @@ This {{#if isGitHub}}Pull{{else}}Merge{{/if}} Request updates dependency [{{depN
|
|||
{{/each}}
|
||||
|
||||
</details>
|
||||
|
||||
<br />
|
||||
{{/if}}
|
||||
<br />
|
||||
|
||||
This {{#if isGitHub}}PR{{else}}MR{{/if}} has been generated by [Renovate Bot](https://keylocation.sg/our-tech/renovate).
|
||||
|
|
3
test/workers/__snapshots__/pr.spec.js.snap
Normal file
3
test/workers/__snapshots__/pr.spec.js.snap
Normal file
|
@ -0,0 +1,3 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`workers/pr ensurePr(upgrades) should return unmodified existing PR 1`] = `Array []`;
|
|
@ -99,8 +99,6 @@ describe('workers/pr', () => {
|
|||
- [\`abcdefg\`](https://github.com/renovateapp/dummy/commit/abcdefghijklmnopqrstuvwxyz)foo [#3](https://github.com/renovateapp/dummy/issues/3)
|
||||
|
||||
</details>
|
||||
|
||||
<br />
|
||||
<br />
|
||||
|
||||
This PR has been generated by [Renovate Bot](https://keylocation.sg/our-tech/renovate).`,
|
||||
|
@ -191,6 +189,7 @@ This PR has been generated by [Renovate Bot](https://keylocation.sg/our-tech/ren
|
|||
config.api.getBranchPr = jest.fn(() => existingPr);
|
||||
config.api.updatePr = jest.fn();
|
||||
const pr = await prWorker.ensurePr([config]);
|
||||
expect(config.api.updatePr.mock.calls).toMatchSnapshot();
|
||||
expect(config.api.updatePr.mock.calls.length).toBe(0);
|
||||
expect(pr).toMatchObject(existingPr);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue