@@ -14,6 +14,7 @@ class FileContent {
14
14
public readonly organizationUrlName : string | null ;
15
15
public readonly rawBody : string ;
16
16
public readonly slide : boolean ;
17
+ public readonly ignorePublish : boolean ;
17
18
18
19
constructor ( {
19
20
title,
@@ -24,6 +25,7 @@ class FileContent {
24
25
organizationUrlName,
25
26
rawBody,
26
27
slide,
28
+ ignorePublish = false ,
27
29
} : {
28
30
title : string ;
29
31
tags : string [ ] ;
@@ -33,6 +35,7 @@ class FileContent {
33
35
organizationUrlName : string | null ;
34
36
rawBody : string ;
35
37
slide : boolean ;
38
+ ignorePublish : boolean ;
36
39
} ) {
37
40
this . title = title ;
38
41
this . tags = tags ;
@@ -42,6 +45,7 @@ class FileContent {
42
45
this . organizationUrlName = organizationUrlName ;
43
46
this . rawBody = rawBody ;
44
47
this . slide = slide ;
48
+ this . ignorePublish = ignorePublish ;
45
49
}
46
50
47
51
static read ( fileContent : string ) : FileContent {
@@ -55,6 +59,7 @@ class FileContent {
55
59
id : data . id ,
56
60
organizationUrlName : data . organization_url_name ,
57
61
slide : data . slide ,
62
+ ignorePublish : data . ignorePublish ?? false ,
58
63
} ) ;
59
64
}
60
65
@@ -74,6 +79,7 @@ class FileContent {
74
79
id,
75
80
organizationUrlName : null ,
76
81
slide : false ,
82
+ ignorePublish : false ,
77
83
} ) ;
78
84
}
79
85
@@ -87,6 +93,7 @@ class FileContent {
87
93
id : item . id ,
88
94
organizationUrlName : item . organization_url_name ,
89
95
slide : item . slide ,
96
+ ignorePublish : false ,
90
97
} ) ;
91
98
}
92
99
@@ -100,6 +107,7 @@ class FileContent {
100
107
id : item . id ,
101
108
organizationUrlName : item . organizationUrlName ,
102
109
slide : item . slide ,
110
+ ignorePublish : item . ignorePublish ,
103
111
} ) ;
104
112
}
105
113
@@ -112,6 +120,7 @@ class FileContent {
112
120
id : this . id ,
113
121
organization_url_name : this . organizationUrlName ,
114
122
slide : this . slide ,
123
+ ignorePublish : this . ignorePublish ,
115
124
} ) ;
116
125
}
117
126
@@ -131,7 +140,8 @@ class FileContent {
131
140
this . tags . sort ( ) . join ( ) === aFileContent . tags . sort ( ) . join ( ) &&
132
141
this . secret === aFileContent . secret &&
133
142
this . rawBody === aFileContent . rawBody &&
134
- this . slide === aFileContent . slide
143
+ this . slide === aFileContent . slide &&
144
+ this . ignorePublish === aFileContent . ignorePublish
135
145
) ;
136
146
}
137
147
@@ -153,6 +163,7 @@ class FileContent {
153
163
organizationUrlName : this . organizationUrlName ,
154
164
rawBody : this . rawBody ,
155
165
slide : this . slide ,
166
+ ignorePublish : this . ignorePublish ,
156
167
} ) ;
157
168
}
158
169
}
@@ -364,6 +375,7 @@ export class FileSystemRepo {
364
375
isOlderThanRemote : localFileContent . isOlderThan ( remoteFileContent ) ,
365
376
itemsShowPath : this . generateItemsShowPath ( localFileContent . id , basename ) ,
366
377
published : remoteFileContent !== null ,
378
+ ignorePublish : localFileContent . ignorePublish ,
367
379
itemPath,
368
380
} ) ;
369
381
}
@@ -400,6 +412,7 @@ export class FileSystemRepo {
400
412
isOlderThanRemote : localFileContent . isOlderThan ( remoteFileContent ) ,
401
413
itemsShowPath : this . generateItemsShowPath ( localFileContent . id , basename ) ,
402
414
published : remoteFileContent !== null ,
415
+ ignorePublish : localFileContent . ignorePublish ,
403
416
itemPath,
404
417
} ) ;
405
418
}
0 commit comments