mirror of https://github.com/CGAL/cgal
Only capture between : and the first whitespace if there is one. Also requires `/build:` instead of `build:`
This commit is contained in:
parent
84141fa302
commit
80551b1981
|
|
@ -18,7 +18,11 @@ jobs:
|
|||
if(asso == 'OWNER' || asso == 'MEMBER') {
|
||||
const body = context.payload.comment.body
|
||||
if(body.includes("build:")) {
|
||||
return body.replace('build:','')
|
||||
const re = /\/build:(\w+)\s*/;
|
||||
if(re.test(body)){
|
||||
const res = re.exec(body)
|
||||
return res[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
return 'stop'
|
||||
|
|
|
|||
Loading…
Reference in New Issue