feature: Add support for changesNotSentForReview (#117)

Credits to @princefr for the original implementation
This commit is contained in:
Jack Boswell
2022-06-18 19:50:39 +12:00
committed by GitHub
parent 7f42989517
commit e00bb8ce1e
5 changed files with 12 additions and 3 deletions

View File

@@ -27,6 +27,7 @@ export interface EditOptions {
mappingFile?: string;
name?: string;
status?: string;
changesNotSentForReview?: boolean;
}
export async function uploadToPlayStore(options: EditOptions, releaseFiles: string[]): Promise<string | undefined> {
@@ -84,7 +85,8 @@ export async function uploadToPlayStore(options: EditOptions, releaseFiles: stri
const res = await androidPublisher.edits.commit({
auth: options.auth,
editId: appEdit.data.id!,
packageName: options.applicationId
packageName: options.applicationId,
changesNotSentForReview: options.changesNotSentForReview
});
// Simple check to see whether commit was successful

View File

@@ -24,6 +24,7 @@ async function run() {
const status = core.getInput('status', { required: false });
const whatsNewDir = core.getInput('whatsNewDirectory', { required: false });
const mappingFile = core.getInput('mappingFile', { required: false });
const changesNotSentForReview = core.getInput('changesNotSentForReview', { required: false }) == 'true';
// Validate that we have a service account json in some format
if (!serviceAccountJson && !serviceAccountJsonRaw) {
@@ -116,7 +117,8 @@ async function run() {
status: status,
whatsNewDir: whatsNewDir,
mappingFile: mappingFile,
name: releaseName
name: releaseName,
changesNotSentForReview: changesNotSentForReview
}, validatedReleaseFiles);
console.log(`Finished uploading to the Play Store: ${result}`)