File tree Expand file tree Collapse file tree 3 files changed +632
-582
lines changed
Expand file tree Collapse file tree 3 files changed +632
-582
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,8 @@ name: Project submission template
55
66description : Fill in this template to submit a project
77
8- labels : [project-proposal]
8+ title : " Project: "
9+ labels : ["project-proposal"]
910
1011body :
1112 - type : markdown
Original file line number Diff line number Diff line change @@ -25,18 +25,21 @@ function processIssues(issues) {
2525 return ;
2626 }
2727
28- const title = issue . title ;
28+
2929 const body = issue . body || '' ;
3030
3131 // Initialize variables
3232 let infoLink = null ;
3333 let imageLink = null ;
3434 let description = null ;
35+ let title = null ;
3536
3637 // Regular expressions
37- const linkRegex = / # # # L i n k t o p r o j e c t r e p o s i t o r y \/ s o u r c e s \n \n ( [ \s \S ] * ?) \n \n # # # / ;
38- const imageRegex = / # # # I m a g e \n \n ! \[ .* ?\] \( ( .* ?) \) / ;
39- const descriptionRegex = / # # # P r o j e c t D e s c r i p t i o n \n \n ( [ \s \S ] * ?) \n \n # # # / ;
38+ const linkRegex = / # # # L i n k t o p r o j e c t r e p o s i t o r y \/ s o u r c e s ( [ \s \S ] * ?) # # # / ;
39+ const imageRegex = / # # # I m a g e ! \[ .* ?\] \( ( .* ?) \) / ;
40+ const descriptionRegex = / # # # P r o j e c t D e s c r i p t i o n ( [ \s \S ] * ?) # # # / ;
41+
42+ const titleRegex = / # # # T i t l e ( [ \s \S ] * ?) # # # / ;
4043
4144 // Extract image link
4245 const imageMatch = imageRegex . exec ( body ) ;
@@ -55,6 +58,13 @@ function processIssues(issues) {
5558 description = descriptionMatch [ 1 ] . trim ( ) ;
5659 }
5760
61+
62+ const titleMatch = titleRegex . exec ( body ) ;
63+ if ( titleMatch ) {
64+ title = titleMatch [ 1 ] . trim ( ) ;
65+ }
66+
67+
5868 const project = {
5969 title : title ,
6070 description : description ,
You can’t perform that action at this time.
0 commit comments