Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
renovate
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GitHub Mirror
Renovate Bot
renovate
Commits
27890381
Commit
27890381
authored
6 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
refactor(pr): better PR edited comment
parent
fc9037a2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/workers/branch/index.js
+4
-3
4 additions, 3 deletions
lib/workers/branch/index.js
with
4 additions
and
3 deletions
lib/workers/branch/index.js
+
4
−
3
View file @
27890381
...
...
@@ -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
'
;
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment