Skip to content

Commit

Permalink
Merge pull request #16328 from dannon/fix-releasenote-hack
Browse files Browse the repository at this point in the history
[23.1] Fix 'news' webhook to account for the RC one more time.
  • Loading branch information
jmchilton committed Jun 28, 2023
2 parents 71d4823 + 3a7639b commit 4fa5e30
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions config/plugins/webhooks/news/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@

let currentGalaxyVersion = Galaxy.config.version_major;

// TODO/@hexylena: By 21.01 we will have a proper solution for this. For
// now we'll hardcode the version users 'see'. @hexylena will remove this
// code when she writes the user-facing release notes, and then will file
// an issue for how we'll fix this properly.
if (currentGalaxyVersion == "22.01") {
currentGalaxyVersion = "21.09";
// If we're at the 23.1 release candidate, we want to show the 23.0 release notes still.
// This should be the last release using this hack -- new notification
// system will provide notes moving forward

if (currentGalaxyVersion == "23.1" && Galaxy.config.version_minor.startsWith("rc")) {
currentGalaxyVersion = "23.0";
}

const releaseNotes = `https://docs.galaxyproject.org/en/latest/releases/${currentGalaxyVersion}_announce_user.html`;
Expand Down

0 comments on commit 4fa5e30

Please sign in to comment.