feature: Add support for changesNotSentForReview (#117)
Credits to @princefr for the original implementation
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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}`)
|
||||
|
||||
Reference in New Issue
Block a user