Skip store listing patch if it's empty

This commit is contained in:
Alex Rukhlin 2017-04-26 19:03:44 -04:00
Родитель 65d9384a1f
Коммит 9ddbeafb25
5 изменённых файлов: 14 добавлений и 5 удалений

Просмотреть файл

@ -607,13 +607,22 @@ async function addLanguageListing(edits: any, languageCode: string, directory: s
(!listingResource.shortDescription) ||
(!listingResource.title);
let isEmpty:boolean = (!listingResource.fullDescription) &&
(!listingResource.shortDescription) &&
(!listingResource.video) &&
(!listingResource.title);
let listingRequestParameters: PackageParams = {
language: languageCode,
resource: createListingResource(languageCode, directory)
};
try {
if (isPatch) {
if (isEmpty) {
tl.debug(`Skip localized ${languageCode} store listing.`);
tl.debug('Request Parameters: ' + JSON.stringify(listingRequestParameters));
} else if (isPatch) {
tl.debug(`Patching an existing localized ${languageCode} store listing.`);
tl.debug('Request Parameters: ' + JSON.stringify(listingRequestParameters));
await edits.listings.patchAsync(listingRequestParameters);

Просмотреть файл

@ -15,7 +15,7 @@
"version": {
"Major": "1",
"Minor": "117",
"Patch": "3"
"Patch": "4"
},
"minimumAgentVersion": "1.83.0",
"groups": [

Просмотреть файл

@ -15,7 +15,7 @@
"version": {
"Major": "1",
"Minor": "117",
"Patch": "3"
"Patch": "4"
},
"minimumAgentVersion": "1.83.0",
"groups": [

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "vso-android-extension",
"version": "1.117.3",
"version": "1.117.4",
"description": "Provides build/release tasks that enable performing continuous delivery to the Google Play store from an automated VSTS build or release definition.",
"repository": {
"type": "git",

Просмотреть файл

@ -2,7 +2,7 @@
"manifestVersion": 1.0,
"id": "google-play",
"name": "Google Play",
"version": "1.117.3",
"version": "1.117.4",
"publisher": "ms-vsclient",
"description": "Provides tasks for continuous delivery to the Google Play Store from TFS/Team Services build or release definitions",
"categories": [