@@ -14,7 +14,7 @@ class FileContent {
1414 public readonly organizationUrlName : string | null ;
1515 public readonly rawBody : string ;
1616 public readonly slide : boolean ;
17- public readonly draft : boolean ;
17+ public readonly ignorePublish : boolean ;
1818
1919 constructor ( {
2020 title,
@@ -25,7 +25,7 @@ class FileContent {
2525 organizationUrlName,
2626 rawBody,
2727 slide,
28- draft = false ,
28+ ignorePublish = false ,
2929 } : {
3030 title : string ;
3131 tags : string [ ] ;
@@ -35,7 +35,7 @@ class FileContent {
3535 organizationUrlName : string | null ;
3636 rawBody : string ;
3737 slide : boolean ;
38- draft : boolean ;
38+ ignorePublish : boolean ;
3939 } ) {
4040 this . title = title ;
4141 this . tags = tags ;
@@ -45,7 +45,7 @@ class FileContent {
4545 this . organizationUrlName = organizationUrlName ;
4646 this . rawBody = rawBody ;
4747 this . slide = slide ;
48- this . draft = draft ;
48+ this . ignorePublish = ignorePublish ;
4949 }
5050
5151 static read ( fileContent : string ) : FileContent {
@@ -59,7 +59,7 @@ class FileContent {
5959 id : data . id ,
6060 organizationUrlName : data . organization_url_name ,
6161 slide : data . slide ,
62- draft : data . draft ?? false ,
62+ ignorePublish : data . ignorePublish ?? false ,
6363 } ) ;
6464 }
6565
@@ -79,7 +79,7 @@ class FileContent {
7979 id,
8080 organizationUrlName : null ,
8181 slide : false ,
82- draft : false ,
82+ ignorePublish : false ,
8383 } ) ;
8484 }
8585
@@ -93,7 +93,7 @@ class FileContent {
9393 id : item . id ,
9494 organizationUrlName : item . organization_url_name ,
9595 slide : item . slide ,
96- draft : false ,
96+ ignorePublish : false ,
9797 } ) ;
9898 }
9999
@@ -107,7 +107,7 @@ class FileContent {
107107 id : item . id ,
108108 organizationUrlName : item . organizationUrlName ,
109109 slide : item . slide ,
110- draft : item . draft ,
110+ ignorePublish : item . ignorePublish ,
111111 } ) ;
112112 }
113113
@@ -120,7 +120,7 @@ class FileContent {
120120 id : this . id ,
121121 organization_url_name : this . organizationUrlName ,
122122 slide : this . slide ,
123- draft : this . draft ,
123+ ignorePublisht : this . ignorePublish ,
124124 } ) ;
125125 }
126126
@@ -140,7 +140,8 @@ class FileContent {
140140 this . tags . sort ( ) . join ( ) === aFileContent . tags . sort ( ) . join ( ) &&
141141 this . secret === aFileContent . secret &&
142142 this . rawBody === aFileContent . rawBody &&
143- this . slide === aFileContent . slide
143+ this . slide === aFileContent . slide &&
144+ this . ignorePublish === aFileContent . ignorePublish
144145 ) ;
145146 }
146147
@@ -162,7 +163,7 @@ class FileContent {
162163 organizationUrlName : this . organizationUrlName ,
163164 rawBody : this . rawBody ,
164165 slide : this . slide ,
165- draft : this . draft ,
166+ ignorePublish : this . ignorePublish ,
166167 } ) ;
167168 }
168169}
@@ -374,7 +375,7 @@ export class FileSystemRepo {
374375 isOlderThanRemote : localFileContent . isOlderThan ( remoteFileContent ) ,
375376 itemsShowPath : this . generateItemsShowPath ( localFileContent . id , basename ) ,
376377 published : remoteFileContent !== null ,
377- draft : localFileContent . draft ,
378+ ignorePublish : localFileContent . ignorePublish ,
378379 itemPath,
379380 } ) ;
380381 }
@@ -411,7 +412,7 @@ export class FileSystemRepo {
411412 isOlderThanRemote : localFileContent . isOlderThan ( remoteFileContent ) ,
412413 itemsShowPath : this . generateItemsShowPath ( localFileContent . id , basename ) ,
413414 published : remoteFileContent !== null ,
414- draft : localFileContent . draft ,
415+ ignorePublish : localFileContent . ignorePublish ,
415416 itemPath,
416417 } ) ;
417418 }
0 commit comments