From 0e00dc3f836db4e98d0a15308dab9dd7718ad59c Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@keylocation.sg>
Date: Fri, 7 Jul 2017 11:12:58 +0200
Subject: [PATCH] fix(templates): Set semanticPrefix for Pin Dependencies

---
 lib/workers/package/versions.js               |  4 +-
 .../__snapshots__/versions.spec.js.snap       | 48 +++++++++----------
 2 files changed, 26 insertions(+), 26 deletions(-)

diff --git a/lib/workers/package/versions.js b/lib/workers/package/versions.js
index 429e56cab2..75142de1ef 100644
--- a/lib/workers/package/versions.js
+++ b/lib/workers/package/versions.js
@@ -44,8 +44,8 @@ function determineUpgrades(npmDep, config) {
       newVersionMajor: semver.major(maxSatisfying),
       groupName: 'Pin Dependencies',
       group: {
-        prTitle: '{{groupName}}',
-        semanticPrefix: 'refactor: ',
+        prTitle: '{{semanticPrefix}}{{groupName}}',
+        semanticPrefix: 'refactor(deps): ',
       },
     };
     changeLogFromVersion = maxSatisfying;
diff --git a/test/workers/package/__snapshots__/versions.spec.js.snap b/test/workers/package/__snapshots__/versions.spec.js.snap
index 7c59280a1b..f93d7f2af6 100644
--- a/test/workers/package/__snapshots__/versions.spec.js.snap
+++ b/test/workers/package/__snapshots__/versions.spec.js.snap
@@ -5,8 +5,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -61,8 +61,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -78,8 +78,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -150,8 +150,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -167,8 +167,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -193,8 +193,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -262,8 +262,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -311,8 +311,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -346,8 +346,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -387,8 +387,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -453,8 +453,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
@@ -559,8 +559,8 @@ Array [
   Object {
     "automergeEnabled": true,
     "group": Object {
-      "prTitle": "{{groupName}}",
-      "semanticPrefix": "refactor: ",
+      "prTitle": "{{semanticPrefix}}{{groupName}}",
+      "semanticPrefix": "refactor(deps): ",
     },
     "groupName": "Pin Dependencies",
     "isPin": true,
-- 
GitLab