File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed
Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,10 @@ inputs:
2626 required : false
2727 commit-message :
2828 description : " Commit message"
29- default : " feat: update translations via @lingodotdev"
3029 required : false
3130 pull-request-title :
3231 description : " Pull request title"
33- default : " feat: update translations via @lingodotdev"
3432 required : false
3533 working-directory :
3634 description : " Working directory"
37- default : " ."
3835 required : false
Original file line number Diff line number Diff line change 11import Z from "zod" ;
22
3+ const defaultMessage = "feat: update translations via @lingodotdev" ;
4+
35interface BasePlatformConfig {
46 baseBranchName : string ;
57 repositoryOwner : string ;
@@ -27,8 +29,8 @@ export abstract class PlatformKit<PlatformConfig extends BasePlatformConfig = Ba
2729 const env = Z . object ( {
2830 LINGODOTDEV_API_KEY : Z . string ( ) ,
2931 LINGODOTDEV_PULL_REQUEST : Z . preprocess ( ( val ) => val === "true" || val === true , Z . boolean ( ) ) ,
30- LINGODOTDEV_COMMIT_MESSAGE : Z . string ( ) ,
31- LINGODOTDEV_PULL_REQUEST_TITLE : Z . string ( ) ,
32+ LINGODOTDEV_COMMIT_MESSAGE : Z . string ( ) . optional ( ) . default ( defaultMessage ) ,
33+ LINGODOTDEV_PULL_REQUEST_TITLE : Z . string ( ) . optional ( ) . default ( defaultMessage ) ,
3234 LINGODOTDEV_WORKING_DIRECTORY : Z . string ( ) . optional ( ) . default ( "." ) ,
3335 } ) . parse ( process . env ) ;
3436
You can’t perform that action at this time.
0 commit comments