File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ changes:
10
10
description: Added `--experimental-transform-types` flag.
11
11
-->
12
12
13
+ <!-- introduced_in=v23.6.0-->
14
+
13
15
> Stability: 1.1 - Active development
14
16
15
17
## Enabling
Original file line number Diff line number Diff line change @@ -34,6 +34,14 @@ paths.forEach(async (path) => {
34
34
const fileContents = file . toString ( ) ;
35
35
const result = await linter . process ( file ) ;
36
36
const isDifferent = fileContents !== result . toString ( ) ;
37
+
38
+ if ( path . startsWith ( 'doc/api/' ) ) {
39
+ if ( ! fileContents . includes ( 'introduced_in' ) ) {
40
+ console . error ( `${ path } is missing an 'introduced_in' version. Please add one.` ) ;
41
+ process . exitCode = 1 ;
42
+ }
43
+ }
44
+
37
45
if ( format ) {
38
46
if ( isDifferent ) {
39
47
fs . writeFileSync ( path , result . toString ( ) ) ;
You can’t perform that action at this time.
0 commit comments