From 83ecc085416affa277d7c31f60a0a3bfd7102902 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@keylocation.sg> Date: Wed, 11 Oct 2017 13:10:12 +0200 Subject: [PATCH] fix: add commitMessage for pin groups (#910) Fixes #895 --- docs/configuration.md | 6 +++++- lib/config/definitions.js | 1 + test/workers/package/__snapshots__/index.spec.js.snap | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/docs/configuration.md b/docs/configuration.md index 02671ab09f..5df4725291 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -532,7 +532,11 @@ Obviously, you can't set repository or package file location with this method. "automerge": true, "unpublishSafe": false, "groupName": "Pin Dependencies", - "group": {"prTitle": "{{groupName}}", "semanticPrefix": "refactor(deps):"} + "group": { + "commitMessage": "Pin Dependencies", + "prTitle": "{{groupName}}", + "semanticPrefix": "refactor(deps):" + } }</pre></td> <td>`RENOVATE_PIN`</td> <td><td> diff --git a/lib/config/definitions.js b/lib/config/definitions.js index 5e1f5c8346..9aa0880ef4 100644 --- a/lib/config/definitions.js +++ b/lib/config/definitions.js @@ -389,6 +389,7 @@ const options = [ unpublishSafe: false, groupName: 'Pin Dependencies', group: { + commitMessage: 'Pin Dependencies', prTitle: '{{groupName}}', semanticPrefix: 'refactor(deps):', }, diff --git a/test/workers/package/__snapshots__/index.spec.js.snap b/test/workers/package/__snapshots__/index.spec.js.snap index e40d59f690..7aa7ea66a5 100644 --- a/test/workers/package/__snapshots__/index.spec.js.snap +++ b/test/workers/package/__snapshots__/index.spec.js.snap @@ -14,7 +14,7 @@ Object { "description": Array [], "group": Object { "branchName": "{{branchPrefix}}{{groupSlug}}", - "commitMessage": "Renovate {{groupName}} packages", + "commitMessage": "Pin Dependencies", "prBody": "This {{#if isGitHub}}Pull{{else}}Merge{{/if}} Request renovates the package group \\"{{groupName}}\\". {{#if schedule}} -- GitLab