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

github.com/nextcloud/github_helper.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblizzz <blizzz@arthur-schiwon.de>2022-06-17 15:17:33 +0300
committerGitHub <noreply@github.com>2022-06-17 15:17:33 +0300
commit01b60715c2474605798db9ac8af9d83f9b03ef93 (patch)
tree91a7561c56c97a218bebc6138147512afd6ca8db
parentef7fb4180213ccc3ba057ae91026002833819add (diff)
parent32a55ced112493111fad04614055da7d370afe67 (diff)
Merge pull request #52 from nextcloud/fix/noid/changelog-case-insitive-rc-detection
make changelog generator detect RCs independent of casing
-rw-r--r--changelog/index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/changelog/index.php b/changelog/index.php
index 8adfb2a..e36a461 100644
--- a/changelog/index.php
+++ b/changelog/index.php
@@ -145,11 +145,11 @@ class GenerateChangelogCommand extends Command
}
if (substr($base, 0, $subStringNum) === $substring) {
- $version = explode('.', substr($base, $subStringNum));
+ $version = explode('.', strtolower(substr($base, $subStringNum)));
if (count($version) !== 3) {
$output->writeln('<error>Detected version does not have exactly 3 numbers separated by a dot.</error>');
} else {
- if (strpos($version[2], 'RC') !== false || strpos($version[2], 'beta') !== false) {
+ if (strpos($version[2], 'rc') !== false || strpos($version[2], 'beta') !== false) {
$version[2] = (string)((int)$version[2]); // this basically removes the beta/RC part
$milestoneToCheck = join('.', $version);