react-native-ui-lib 8.2.0-snapshot.7650 → 8.2.0-snapshot.7665
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -3,6 +3,16 @@ const _ = require('lodash');
|
|
|
3
3
|
const chalk = require('chalk');
|
|
4
4
|
const childProcess = require('child_process');
|
|
5
5
|
const readline = require('readline');
|
|
6
|
+
const BRANCH_CATEGORIES = [
|
|
7
|
+
{name: 'features', branch: 'feat/', title: ':gift: Features'},
|
|
8
|
+
{name: 'web', branch: 'web/', title: ':spider_web: Web support'},
|
|
9
|
+
{name: 'fixes', branch: 'fix/', title: ':wrench: Fixes'},
|
|
10
|
+
{name: 'infra', branch: 'infra/', title: ':gear: Maintenance & Infra'}
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
function getBranchPrefixes() {
|
|
14
|
+
return BRANCH_CATEGORIES.map(category => category.branch);
|
|
15
|
+
}
|
|
6
16
|
|
|
7
17
|
function fetchLatestReleaseDate(tagPrefix, version) {
|
|
8
18
|
const release = childProcess.execSync(`gh release view ${tagPrefix}${version}`).toString();
|
|
@@ -171,10 +181,7 @@ function generateReleaseNotesFromPRs(PRs, categories, header) {
|
|
|
171
181
|
}
|
|
172
182
|
|
|
173
183
|
const prCategories = [
|
|
174
|
-
|
|
175
|
-
{name: 'web', branch: 'web/', title: ':spider_web: Web support'},
|
|
176
|
-
{name: 'fixes', branch: 'fix/', title: ':wrench: Fixes'},
|
|
177
|
-
{name: 'infra', branch: 'infra/', title: ':gear: Maintenance & Infra'},
|
|
184
|
+
...BRANCH_CATEGORIES,
|
|
178
185
|
...categories,
|
|
179
186
|
{name: 'others', branch: '', title: 'OTHERS'},
|
|
180
187
|
{
|
|
@@ -253,4 +260,4 @@ async function generateReleaseNotes(latestVersion,
|
|
|
253
260
|
});
|
|
254
261
|
}
|
|
255
262
|
|
|
256
|
-
module.exports = {generateReleaseNotes, generateReleaseNotesFromPRs, parsePR};
|
|
263
|
+
module.exports = {generateReleaseNotes, generateReleaseNotesFromPRs, parsePR, getBranchPrefixes};
|