mail/config/whats_new_page.yml
author Rob Lemley <rob@thunderbird.net>
Thu, 03 Sep 2020 15:43:23 -0400
changeset 39602 659fbd4089096a5a4570e45701dd8afa38c6edc6
parent 34790 8d9eeaf48a3015150a83d5f6e3ce5087e63d2879
permissions -rw-r--r--
Bug 1563411 - Configure a whats-new-page for Thunderbird to display release notes on major updates. r=mkmelin a=wsmwk Balrog will only set actions="showURL" when the version condition is met, so in the case of Thunderbird 78, updating within 78 there is no actions parameter in the update xml, but when updating from 68.x.y there will be.

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
---
- type: product-details
  # yamllint disable-line rule:line-length
  url: https://live.thunderbird.net/thunderbird/releasenotes?locale=%LOCALE%&version={version}&channel={release-type}
- type: show-url
  # yamllint disable-line rule:line-length
  url: https://live.thunderbird.net/thunderbird/whatsnew?locale=%LOCALE%&version={version}&channel={release-type}&os=%OS%&buildid=%APPBUILDID%&oldversion=%OLD_VERSION%
  conditions:
      blob-types: [wnp]
      release-types: [release]
      products: [thunderbird]
      update-channel: release
      # e.g.: ["<78.0"] for the current release. {version.major_number} reflects
      # the current version and compares to the version the client is updating from
      # on Balrog
      versions: ["<{version.major_number}.0"]
- type: show-url
  # yamllint disable-line rule:line-length
  url: https://live.thunderbird.net/thunderbird/whatsnew?locale=%LOCALE%&version={version}&channel={release-type}&os=%OS%&buildid=%APPBUILDID%&oldversion=%OLD_VERSION%
  conditions:
      blob-types: [wnp]
      release-types: [beta]
      products: [thunderbird]
      update-channel: beta
      versions: ["<{version.major_number}.0"]