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
e2f067fa
Commit
e2f067fa
authored
7 years ago
by
Rhys Arkins
Browse files
Options
Downloads
Patches
Plain Diff
Revert "fix: skip pruning for multiple baseBranches"
This reverts commit
81c72247
.
parent
3877b87c
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/workers/repository/cleanup.js
+0
-5
0 additions, 5 deletions
lib/workers/repository/cleanup.js
with
0 additions
and
5 deletions
lib/workers/repository/cleanup.js
+
0
−
5
View file @
e2f067fa
...
@@ -41,11 +41,6 @@ async function pruneStaleBranches(config) {
...
@@ -41,11 +41,6 @@ async function pruneStaleBranches(config) {
logger
.
debug
(
'
No branches to clean up
'
);
logger
.
debug
(
'
No branches to clean up
'
);
return
;
return
;
}
}
// istanbul ignore if
if
(
config
.
baseBranches
&&
config
.
baseBranches
.
length
)
{
logger
.
info
(
'
Skipping cleanup for multiple baseBranches
'
);
return
;
}
for
(
const
branchName
of
remainingBranches
)
{
for
(
const
branchName
of
remainingBranches
)
{
logger
.
info
({
branch
:
branchName
},
`Deleting orphan branch`
);
logger
.
info
({
branch
:
branchName
},
`Deleting orphan branch`
);
const
pr
=
await
platform
.
findPr
(
branchName
,
null
,
'
open
'
);
const
pr
=
await
platform
.
findPr
(
branchName
,
null
,
'
open
'
);
...
...
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