Merge remote-tracking branch 'origin/master'

This commit is contained in:
Drew Heavner
2020-08-20 13:32:23 -04:00
5 changed files with 16 additions and 14 deletions

View File

@@ -103,6 +103,7 @@ async function trackVersionCode(appEdit: AppEdit, options: EditOptions, versionC
packageName: options.applicationId,
track: options.track,
requestBody: {
track: options.track,
releases: [
{
userFraction: options.userFraction,

View File

@@ -8,7 +8,7 @@ import LocalizedText = androidpublisher_v3.Schema$LocalizedText;
export async function readLocalizedReleaseNotes(whatsNewDir: string | undefined): Promise<LocalizedText[] | undefined> {
if (whatsNewDir != undefined && whatsNewDir.length > 0) {
const releaseNotes = fs.readdirSync(whatsNewDir)
.filter(value => /whatsnew-.*-.{2}\b/.test(value));
.filter(value => /whatsnew-.*-.{2,3}\b/.test(value));
const pattern = /whatsnew-(?<local>.*-.*)/;
let localizedReleaseNotes: LocalizedText[] = [];
@@ -37,4 +37,4 @@ export async function readLocalizedReleaseNotes(whatsNewDir: string | undefined)
return localizedReleaseNotes
}
return undefined
}
}