Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-02-26 03:11:20 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-02-26 03:11:20 +0300
commit2d099cf5e6bc10b70fe79fdaf9cd1c2f51173687 (patch)
tree42f6a1fcef7a72945d7292a87a15b4d7adbe0375 /app/finders
parenta53c0ca02cc35bd485af15b46ace3c9c2ac48c64 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/repositories/previous_tag_finder.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/finders/repositories/previous_tag_finder.rb b/app/finders/repositories/previous_tag_finder.rb
index cf27132975d..b5e786c30e9 100644
--- a/app/finders/repositories/previous_tag_finder.rb
+++ b/app/finders/repositories/previous_tag_finder.rb
@@ -37,6 +37,11 @@ module Repositories
next unless matches
+ # When using this class for generating changelog data for a range of
+ # commits, we want to compare against the tag of the last _stable_
+ # release; not some random RC that came after that.
+ next if matches[:prerelease]
+
version = matches[:version]
tags[version] = tag
versions << version