File tree Expand file tree Collapse file tree 2 files changed +9
-29
lines changed
Expand file tree Collapse file tree 2 files changed +9
-29
lines changed Original file line number Diff line number Diff line change 1- name : Read grant file
1+ name : Read milestone file
22author : mmagician
33description : ' Read file contents'
44inputs :
55 path :
66 description : ' File path'
77 required : true
88outputs :
9- team_name :
10- description : ' Team name'
11- contact_name :
12- description : ' Contact name'
13- contact_email :
14- description : ' Contact email'
15- project_name :
16- description : ' Project name'
17- address :
18- description : ' Registered address of legal entity'
19- total_cost_btc :
20- description : ' Total cost, BTC'
21- total_cost_dai :
22- description : ' Total cost, DAI'
9+ pr_link :
10+ description : ' Link to application PR'
11+ milestone_number :
12+ description : ' Milestone number'
2313runs :
2414 using : ' node12'
2515 main : ' dist/index.js'
Original file line number Diff line number Diff line change @@ -8,23 +8,13 @@ const main = async () => {
88 const content = await fs . readFile ( path , 'utf8' )
99
1010 const regexList = [
11- / (?< = \* \* T e a m N a m e : \* \* ) .* / g,
12- / (?< = \* \* P r o j e c t N a m e : \* \* ) .* / g,
13- / (?< = \* \* C o n t a c t N a m e : \* \* ) .* / g,
14- / (?< = \* \* C o n t a c t E m a i l : \* \* ) .* / g,
15- / (?< = \* \* T o t a l C o s t s : \* \* ) .* (? = B T C ) / gi,
16- / (?< = \* \* T o t a l C o s t s : \* \* ) .* (? = D A I ) / gi,
17- / (?< = \* \* R e g i s t e r e d A d d r e s s : \* \* ) .* / g
11+ / (?< = \* \* P R L i n k : \* \* ) .* / g,
12+ / (?< = \* \* M i l e s t o n e N u m b e r : \* \* ) .* / g,
1813 ]
1914
2015 const outputs = [
21- 'team_name' ,
22- 'project_name' ,
23- 'contact_name' ,
24- 'contact_email' ,
25- 'total_cost_btc' ,
26- 'total_cost_dai' ,
27- 'address'
16+ 'pr_link' ,
17+ 'milestone_number' ,
2818 ]
2919
3020 regexList . map ( function ( reg , i ) {
You can’t perform that action at this time.
0 commit comments