@@ -14,7 +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 draft : boolean ;
17
+ public readonly ignorePublish : boolean ;
18
18
19
19
constructor ( {
20
20
title,
@@ -25,7 +25,7 @@ class FileContent {
25
25
organizationUrlName,
26
26
rawBody,
27
27
slide,
28
- draft = false ,
28
+ ignorePublish = false ,
29
29
} : {
30
30
title : string ;
31
31
tags : string [ ] ;
@@ -35,7 +35,7 @@ class FileContent {
35
35
organizationUrlName : string | null ;
36
36
rawBody : string ;
37
37
slide : boolean ;
38
- draft : boolean ;
38
+ ignorePublish : boolean ;
39
39
} ) {
40
40
this . title = title ;
41
41
this . tags = tags ;
@@ -45,7 +45,7 @@ class FileContent {
45
45
this . organizationUrlName = organizationUrlName ;
46
46
this . rawBody = rawBody ;
47
47
this . slide = slide ;
48
- this . draft = draft ;
48
+ this . ignorePublish = ignorePublish ;
49
49
}
50
50
51
51
static read ( fileContent : string ) : FileContent {
@@ -59,7 +59,7 @@ class FileContent {
59
59
id : data . id ,
60
60
organizationUrlName : data . organization_url_name ,
61
61
slide : data . slide ,
62
- draft : data . draft ?? false ,
62
+ ignorePublish : data . ignorePublish ?? false ,
63
63
} ) ;
64
64
}
65
65
@@ -79,7 +79,7 @@ class FileContent {
79
79
id,
80
80
organizationUrlName : null ,
81
81
slide : false ,
82
- draft : false ,
82
+ ignorePublish : false ,
83
83
} ) ;
84
84
}
85
85
@@ -93,7 +93,7 @@ class FileContent {
93
93
id : item . id ,
94
94
organizationUrlName : item . organization_url_name ,
95
95
slide : item . slide ,
96
- draft : false ,
96
+ ignorePublish : false ,
97
97
} ) ;
98
98
}
99
99
@@ -107,7 +107,7 @@ class FileContent {
107
107
id : item . id ,
108
108
organizationUrlName : item . organizationUrlName ,
109
109
slide : item . slide ,
110
- draft : item . draft ,
110
+ ignorePublish : item . ignorePublish ,
111
111
} ) ;
112
112
}
113
113
@@ -120,7 +120,7 @@ class FileContent {
120
120
id : this . id ,
121
121
organization_url_name : this . organizationUrlName ,
122
122
slide : this . slide ,
123
- draft : this . draft ,
123
+ ignorePublisht : this . ignorePublish ,
124
124
} ) ;
125
125
}
126
126
@@ -140,7 +140,8 @@ class FileContent {
140
140
this . tags . sort ( ) . join ( ) === aFileContent . tags . sort ( ) . join ( ) &&
141
141
this . secret === aFileContent . secret &&
142
142
this . rawBody === aFileContent . rawBody &&
143
- this . slide === aFileContent . slide
143
+ this . slide === aFileContent . slide &&
144
+ this . ignorePublish === aFileContent . ignorePublish
144
145
) ;
145
146
}
146
147
@@ -162,7 +163,7 @@ class FileContent {
162
163
organizationUrlName : this . organizationUrlName ,
163
164
rawBody : this . rawBody ,
164
165
slide : this . slide ,
165
- draft : this . draft ,
166
+ ignorePublish : this . ignorePublish ,
166
167
} ) ;
167
168
}
168
169
}
@@ -374,7 +375,7 @@ export class FileSystemRepo {
374
375
isOlderThanRemote : localFileContent . isOlderThan ( remoteFileContent ) ,
375
376
itemsShowPath : this . generateItemsShowPath ( localFileContent . id , basename ) ,
376
377
published : remoteFileContent !== null ,
377
- draft : localFileContent . draft ,
378
+ ignorePublish : localFileContent . ignorePublish ,
378
379
itemPath,
379
380
} ) ;
380
381
}
@@ -411,7 +412,7 @@ export class FileSystemRepo {
411
412
isOlderThanRemote : localFileContent . isOlderThan ( remoteFileContent ) ,
412
413
itemsShowPath : this . generateItemsShowPath ( localFileContent . id , basename ) ,
413
414
published : remoteFileContent !== null ,
414
- draft : localFileContent . draft ,
415
+ ignorePublish : localFileContent . ignorePublish ,
415
416
itemPath,
416
417
} ) ;
417
418
}
0 commit comments