Use branch for changelog

This commit is contained in:
2021-02-23 14:22:32 -06:00
parent 95b393b203
commit 027104d757
2 changed files with 10 additions and 6 deletions

View File

@@ -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 = [

View File

@@ -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',