From 027104d757212055c6a813c26b52bf998873f798 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Tue, 23 Feb 2021 14:22:32 -0600 Subject: [PATCH] Use branch for changelog --- src/constants.js | 13 ++++++++----- src/utils.js | 3 ++- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/constants.js b/src/constants.js index ea205f3..2727657 100644 --- a/src/constants.js +++ b/src/constants.js @@ -26,17 +26,20 @@ exports.DEV_PUBLIC_KEY = '9wIDAQAB\n' + '-----END PUBLIC KEY-----'; -const REPERTORY_BRANCH = '1.3.x_branch'; -const REPERTORY_UI_BRANCH = '1.3.x_branch'; +const _REPERTORY_BRANCH = '1.3.x_branch'; +const _REPERTORY_UI_BRANCH = '1.3.x_branch'; + +exports.REPERTORY_BRANCH = _REPERTORY_BRANCH; +exports.REPERTORY_UI_BRANCH = _REPERTORY_UI_BRANCH; exports.RELEASES_URL = 'https://bitbucket.org/blockstorage/repertory/raw/' + - REPERTORY_BRANCH + '/releases_1.3.json'; + _REPERTORY_BRANCH + '/releases_1.3.json'; exports.UI_RELEASES_URL = 'https://bitbucket.org/blockstorage/repertory-ui/raw/' + - REPERTORY_UI_BRANCH + '/releases.json'; + _REPERTORY_UI_BRANCH + '/releases.json'; exports.LINUX_DETECT_SCRIPT_URL = - 'https://bitbucket.org/blockstorage/repertory/raw/' + REPERTORY_BRANCH + + 'https://bitbucket.org/blockstorage/repertory/raw/' + _REPERTORY_BRANCH + '/detect_linux2.sh'; exports.LINUX_SELECTABLE_PLATFORMS = [ diff --git a/src/utils.js b/src/utils.js index 1a48d4a..34ddf5d 100644 --- a/src/utils.js +++ b/src/utils.js @@ -45,7 +45,8 @@ export const formatLinesForDisplay = lines => { export const getChangesForRepertoryVersion = version => { return new Promise((resolve, reject) => { - const url = `https://bitbucket.org/blockstorage/repertory/raw/${version}/CHANGELOG.md`; + const url = 'https://bitbucket.org/blockstorage/repertory/raw/' + + Constants.REPERTORY_BRANCH + '/CHANGELOG.md'; axios .get(url, { responseType: 'text',