Skip to content

Commit 314a747

Browse files
committed
feat: remove checklist when assembling ideas.md
1 parent 0eca55c commit 314a747

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/scripts/update_ideas_list.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ var FOPTS = {
7878
'encoding': 'utf8'
7979
};
8080

81+
var RE_CHECKLIST = /### Checklist[\s\S]*/;
82+
8183

8284
// MAIN //
8385

@@ -99,6 +101,7 @@ async function main( github, context, core, fs, path, dir ) {
99101
var content;
100102
var issues;
101103
var fpath;
104+
var body;
102105
var str;
103106
var t;
104107
var i;
@@ -118,12 +121,14 @@ async function main( github, context, core, fs, path, dir ) {
118121
t = issues[ i ].title;
119122
t = t.replace( '[Idea]: ', '' );
120123
t = t[ 0 ].toUpperCase() + t.substring( 1 );
124+
125+
body = issues[i].body.replace(RE_CHECKLIST, '').trim();
121126
str = [
122127
'## ' + t,
123128
'',
124129
'Linked issue: <' + issues[ i ].url + '>',
125130
'',
126-
issues[ i ].body
131+
body
127132
].join( '\n' );
128133
content.push( str );
129134
}

0 commit comments

Comments
 (0)