@@ -14,6 +14,7 @@ class FileContent {
1414 public readonly organizationUrlName : string | null ;
1515 public readonly rawBody : string ;
1616 public readonly slide : boolean ;
17+ public readonly ignorePublish : boolean ;
1718
1819 constructor ( {
1920 title,
@@ -24,6 +25,7 @@ class FileContent {
2425 organizationUrlName,
2526 rawBody,
2627 slide,
28+ ignorePublish = false ,
2729 } : {
2830 title : string ;
2931 tags : string [ ] ;
@@ -33,6 +35,7 @@ class FileContent {
3335 organizationUrlName : string | null ;
3436 rawBody : string ;
3537 slide : boolean ;
38+ ignorePublish : boolean ;
3639 } ) {
3740 this . title = title ;
3841 this . tags = tags ;
@@ -42,6 +45,7 @@ class FileContent {
4245 this . organizationUrlName = organizationUrlName ;
4346 this . rawBody = rawBody ;
4447 this . slide = slide ;
48+ this . ignorePublish = ignorePublish ;
4549 }
4650
4751 static read ( fileContent : string ) : FileContent {
@@ -55,6 +59,7 @@ class FileContent {
5559 id : data . id ,
5660 organizationUrlName : data . organization_url_name ,
5761 slide : data . slide ,
62+ ignorePublish : data . ignorePublish ?? false ,
5863 } ) ;
5964 }
6065
@@ -74,6 +79,7 @@ class FileContent {
7479 id,
7580 organizationUrlName : null ,
7681 slide : false ,
82+ ignorePublish : false ,
7783 } ) ;
7884 }
7985
@@ -87,6 +93,7 @@ class FileContent {
8793 id : item . id ,
8894 organizationUrlName : item . organization_url_name ,
8995 slide : item . slide ,
96+ ignorePublish : false ,
9097 } ) ;
9198 }
9299
@@ -100,6 +107,7 @@ class FileContent {
100107 id : item . id ,
101108 organizationUrlName : item . organizationUrlName ,
102109 slide : item . slide ,
110+ ignorePublish : item . ignorePublish ,
103111 } ) ;
104112 }
105113
@@ -112,6 +120,7 @@ class FileContent {
112120 id : this . id ,
113121 organization_url_name : this . organizationUrlName ,
114122 slide : this . slide ,
123+ ignorePublish : this . ignorePublish ,
115124 } ) ;
116125 }
117126
@@ -131,7 +140,8 @@ class FileContent {
131140 this . tags . sort ( ) . join ( ) === aFileContent . tags . sort ( ) . join ( ) &&
132141 this . secret === aFileContent . secret &&
133142 this . rawBody === aFileContent . rawBody &&
134- this . slide === aFileContent . slide
143+ this . slide === aFileContent . slide &&
144+ this . ignorePublish === aFileContent . ignorePublish
135145 ) ;
136146 }
137147
@@ -153,6 +163,7 @@ class FileContent {
153163 organizationUrlName : this . organizationUrlName ,
154164 rawBody : this . rawBody ,
155165 slide : this . slide ,
166+ ignorePublish : this . ignorePublish ,
156167 } ) ;
157168 }
158169}
@@ -364,6 +375,7 @@ export class FileSystemRepo {
364375 isOlderThanRemote : localFileContent . isOlderThan ( remoteFileContent ) ,
365376 itemsShowPath : this . generateItemsShowPath ( localFileContent . id , basename ) ,
366377 published : remoteFileContent !== null ,
378+ ignorePublish : localFileContent . ignorePublish ,
367379 itemPath,
368380 } ) ;
369381 }
@@ -400,6 +412,7 @@ export class FileSystemRepo {
400412 isOlderThanRemote : localFileContent . isOlderThan ( remoteFileContent ) ,
401413 itemsShowPath : this . generateItemsShowPath ( localFileContent . id , basename ) ,
402414 published : remoteFileContent !== null ,
415+ ignorePublish : localFileContent . ignorePublish ,
403416 itemPath,
404417 } ) ;
405418 }
0 commit comments