Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
automatic_updates
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
automatic_updates
Merge requests
!979
Issue
#3311472
Set minimum stability for form
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
Issue
#3311472
Set minimum stability for form
issue/automatic_updates-3311472:3311472-minimumStability
into
3.0.x
Overview
9
Commits
13
Pipelines
1
Changes
1
1 unresolved thread
Hide all comments
Merged
Ted Bowman
requested to merge
issue/automatic_updates-3311472:3311472-minimumStability
into
3.0.x
1 year ago
Overview
9
Commits
13
Pipelines
1
Changes
1
1 unresolved thread
Hide all comments
Expand
Closes
#3311472
0
0
Merge request reports
Viewing commit
3152923d
Show latest version
1 file
+
4
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
3152923d
only add rule when not cron, Probably not correct solution
· 3152923d
Ted Bowman
authored
1 year ago
src/Validator/VersionPolicyValidator.php
+
4
−
2
Options
@@ -87,8 +87,10 @@ final class VersionPolicyValidator implements EventSubscriberInterface {
$rules
[]
=
MajorVersionMatch
::
class
;
// ...and it must be a known, secure, installable release...
$rules
[]
=
TargetVersionInstallable
::
class
;
// ...and must be either a release candidate, or stable.
$rules
[]
=
TargetVersionNotPreRelease
::
class
;
if
(
!
$stage
instanceof
ConsoleUpdateStage
)
{
// ...and must be either a release candidate, or stable.
$rules
[]
=
TargetVersionNotPreRelease
::
class
;
}
}
// If this is a cron update, we may need to do additional checks.
Loading