From 27890381aa8689be1dd2be750b6faa3b3e1c636b Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Thu, 20 Sep 2018 14:51:58 +0200
Subject: [PATCH] refactor(pr): better PR edited comment

---
 lib/workers/branch/index.js | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/lib/workers/branch/index.js b/lib/workers/branch/index.js
index e8f48fb67b..548bef9a42 100644
--- a/lib/workers/branch/index.js
+++ b/lib/workers/branch/index.js
@@ -99,9 +99,10 @@ async function processBranch(branchConfig, packageFiles) {
           const subject = 'PR has been edited';
           logger.info(subject);
           let content =
-            'As this PR has been edited, Renovate will stop updating it in order to not cause any conflicts or other problems.';
-          content +=
-            ' If you wish to abandon your edits and have Renovate recreate this PR then you should rename this PR and then close it.';
+            ':construction_worker: This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems.';
+          content += ` If you wish to abandon your changes and have Renovate start over then you can add the label \`${
+            config.rebaseLabel
+          }\` to this PR and Renovate will reset/recreate it.`;
           await platform.ensureComment(branchPr.number, subject, content);
           return 'pr-edited';
         }
-- 
GitLab