@@ -14,9 +14,9 @@ import {
1414 WorkflowAction ,
1515 WorkflowOptions ,
1616 WorkflowState ,
17+ autoPublishOnRebuild ,
1718 hasAuthors ,
1819 hasReviewers ,
19- autoPublishOnRebuild ,
2020 isAuthorState ,
2121 isDeprecated ,
2222 jump
@@ -716,50 +716,39 @@ export const WorkflowStateMachine = setup({
716716 }
717717 } ,
718718 [ WorkflowState . Verify_and_Publish ] : {
719- entry : [
720- assign ( {
721- instructions : ( { context } ) => {
722- switch ( context . productType ) {
723- case ProductType . Android_GooglePlay :
724- return 'googleplay_verify_and_publish' ;
725- case ProductType . Android_S3 :
726- return 'verify_and_publish' ;
727- case ProductType . AssetPackage :
728- return 'asset_package_verify_and_publish' ;
729- case ProductType . Web :
730- return 'web_verify' ;
731- }
732- } ,
733- includeFields : ( { context } ) => {
734- switch ( context . productType ) {
735- case ProductType . Android_GooglePlay :
736- case ProductType . Android_S3 :
737- return [ 'storeDescription' , 'listingLanguageCode' ] ;
738- case ProductType . AssetPackage :
739- case ProductType . Web :
740- return [ 'storeDescription' ] ;
741- }
742- } ,
743- includeReviewers : true ,
744- includeArtifacts : ( { context } ) => {
745- switch ( context . productType ) {
746- case ProductType . AssetPackage :
747- return 'latestAssetPackage' ;
748- default :
749- return 'all' ;
750- }
719+ entry : assign ( {
720+ instructions : ( { context } ) => {
721+ switch ( context . productType ) {
722+ case ProductType . Android_GooglePlay :
723+ return 'googleplay_verify_and_publish' ;
724+ case ProductType . Android_S3 :
725+ return 'verify_and_publish' ;
726+ case ProductType . AssetPackage :
727+ return 'asset_package_verify_and_publish' ;
728+ case ProductType . Web :
729+ return 'web_verify' ;
751730 }
752- } ) ,
753- ( { context } ) => {
754- if ( ! context . isAutomatic ) {
755- return ;
731+ } ,
732+ includeFields : ( { context } ) => {
733+ switch ( context . productType ) {
734+ case ProductType . Android_GooglePlay :
735+ case ProductType . Android_S3 :
736+ return [ 'storeDescription' , 'listingLanguageCode' ] ;
737+ case ProductType . AssetPackage :
738+ case ProductType . Web :
739+ return [ 'storeDescription' ] ;
740+ }
741+ } ,
742+ includeReviewers : true ,
743+ includeArtifacts : ( { context } ) => {
744+ switch ( context . productType ) {
745+ case ProductType . AssetPackage :
746+ return 'latestAssetPackage' ;
747+ default :
748+ return 'all' ;
756749 }
757- void getQueues ( ) . Emails . add ( `Email reviewers for Product #${ context . productId } ` , {
758- type : BullMQ . JobType . Email_SendNotificationToReviewers ,
759- productId : context . productId
760- } ) ;
761750 }
762- ] ,
751+ } ) ,
763752 exit : assign ( {
764753 includeReviewers : false ,
765754 includeArtifacts : null
0 commit comments