Skip to content

Commit 81fd9a6

Browse files
committed
ci: update
1 parent fedfc17 commit 81fd9a6

File tree

2 files changed

+64
-16
lines changed

2 files changed

+64
-16
lines changed

.github/workflows/issues-new-assign.yml

Lines changed: 33 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,19 +206,24 @@ jobs:
206206
const bIncWordT = words.some( s => s.includes( iss_title_lc ) || iss_title_lc.includes( s ) );
207207
208208
/*
209-
found searched word "for help"
210-
append / prepare message for bot to send
209+
Find regex based phrases
210+
211+
Regex:
212+
https://regex101.com/r/Z99Gnq/2
211213
*/
212214
213-
const findWordList = /(?:I?\s*have\s*(?:a|an)\s*(?:issue|problem|bug))|(?:will\s*not\s*work)|(?:it\s*is\s*(?:broken|broke|stuck))|(?:found\s*(?:an?|the)\s*(?:bug|issue))|(?:can\s*I\s*fix\s*the\s*(?:bug|issue))|(?:(?:does not|doesn'?t|don'?t|won'?t|can'?t|can\s?not|will\s*not)\s*(?:work|load|function))|(?:it\s*(?:will\s?not|won'?t|can\s?not|can'?t))\s*get\s*the\s*(?:website|site|webpage|page)|(?:the\s*(?:window|frame)\s*is\s*(?:blank|white|empty|missing))/igm;
215+
const findWordList = /^\b(?:I?\s*have\s*(?:a|an)\s*(?:issue|problem|bug))|(?:will\s*not\s*work)|(?:it\s*is\s*(?:broken|broke|stuck))|(?:found\s*(?:an?|the)\s*(?:bug|issue))|(?:can\s*I\s*fix\s*the\s*(?:bug|issue))|(?:(?:does not|doesn'?t|don'?t|won'?t|can'?t|can\s?not|will\s*not)\s*(?:work|load|function))|(?:it\s*(?:will\s?not|won'?t|can\s?not|can'?t))\s*(?:get|find)\s*the\s*(?:website|site|webpage|page)|(?:the\s*(?:window|frame)\s*is\s*(?:blank|white|empty|missing))\b$/igm;
214216
const bFoundMatchTitle = Boolean( findWordList.test( iss_title ) );
215217
const bFoundMatchBody = Boolean( findWordList.test( iss_body ) );
216218
217219
/*
218220
Do not change a title if the item starts with a PR: #
221+
222+
Regex:
223+
https://regex101.com/r/JOrqbN/1
219224
*/
220225
221-
const bug_findPRTitle = /^PR\s(?:[0-9]*:?)/igm;
226+
const bug_findPRTitle = /^PR\s?#?(?:[0-9]*:)/igm;
222227
const bug_bFoundPRTitle = Boolean( bug_findPRTitle.test( iss_title ) );
223228
224229
console.log( "Title Lowercase ............... " + iss_title_lc )
@@ -325,17 +330,23 @@ jobs:
325330
326331
/*
327332
Find regex based phrases
333+
334+
Regex:
335+
https://regex101.com/r/fR1Hm6/1
328336
*/
329337
330-
const findWordList = /(?:(?:request|include|see)\s*(?:a?|the?)\s*(?:feature|addon|addition|plugin))|(?:(?:add|see|get)\s*support\s*(?:for|with|of))/igm;
338+
const findWordList = /^(?:(?:request|include|see)\s*(?:an?|the?)\s*(?:feature|addon|addition|plugin))|(?:(?:add|see|get)\s*support\s*(?:for|with|of))|(?:can\s*we\s*get\s*(?:the|a)\s*(?:ability|feature))|(?:💡 Feature:)$/igm;
331339
const bFoundMatchTitle = Boolean( findWordList.test( iss_title ) );
332340
const bFoundMatchBody = Boolean( findWordList.test( iss_body ) );
333341
334342
/*
335343
Do not change a title if the item starts with a PR: #
344+
345+
Regex:
346+
https://regex101.com/r/JOrqbN/1
336347
*/
337348
338-
const feat_findPRTitle = /^PR\s(?:[0-9]*:?)/igm;
349+
const feat_findPRTitle = /^PR\s?#?(?:[0-9]*:)/igm;
339350
const feat_bFoundPRTitle = Boolean( feat_findPRTitle.test( iss_title ) );
340351
341352
console.log( "Title Lowercase ............... " + iss_title_lc )
@@ -445,17 +456,23 @@ jobs:
445456
446457
/*
447458
Find regex based phrases
459+
460+
Regex:
461+
https://regex101.com/r/eE9tJX/2
448462
*/
449463
450-
const findWordList = /\b(?:(?:this)?is\s*a?n?\s*?(?:emergency|urgent|important|vital|acute|crucial|grave|pressing|serious|top.?priority|high.?priority))|(?:reply|respond|answer|write|address)\s*(?:immediate|quick|asap|urgent|now|fast|(?:as)?\s*(?:soon|quick|immediate|fast))(?:ly)?|(?:need\s*(?:help|support|fixed|answer|reply|response)!)|(?:emergency|critical|urgen(?:t|cy)|high.?priority)\b/igm;
464+
const findWordList = /(?:(?:this)?is\s*a?n?\s*?(?:emergency|urgent|important|vital|acute|crucial|grave|pressing|serious|top.?priority|high.?priority))|(?:reply|respond|answer|write|address)\s*(?:immediate|quick|asap|urgent|now|fast|(?:as)?\s*(?:soon|quick|immediate|fast))(?:ly)?|(?:need\s*(?:help|support|fixed|answer|reply|response)!)|(?:emergency|critical|urgen(?:t|cy)|high.?priority)/igm;
451465
const bFoundMatchTitle = Boolean( findWordList.test( iss_title ) );
452466
const bFoundMatchBody = Boolean( findWordList.test( iss_body ) );
453467
454468
/*
455469
Do not change a title if the item starts with a PR: #
470+
471+
Regex:
472+
https://regex101.com/r/JOrqbN/1
456473
*/
457474
458-
const urgn_findPRTitle = /^PR\s(?:[0-9]*:?)/igm;
475+
const urgn_findPRTitle = /^PR\s?#?(?:[0-9]*:)/igm;
459476
const urgn_bFoundPRTitle = Boolean( urgn_findPRTitle.test( iss_title ) );
460477
461478
console.log( "Title Lowercase ............... " + iss_title_lc )
@@ -566,6 +583,10 @@ jobs:
566583
567584
/*
568585
Find regex based phrases
586+
Roadmap requires headers #Summary and #Proposal | #Objective
587+
588+
Regex:
589+
https://regex101.com/r/ucajBZ/1
569590
*/
570591
571592
const findWordList = /#\s*Summary[\S\s]+#\s*(?:Proposal|Objective)[^\]]+/igm;
@@ -574,9 +595,12 @@ jobs:
574595
575596
/*
576597
Do not change a title if the item starts with a PR: #
598+
599+
Regex:
600+
https://regex101.com/r/JOrqbN/1
577601
*/
578602
579-
const road_findPRTitle = /^PR\s(?:[0-9]*:?)/igm;
603+
const road_findPRTitle = /^PR\s?#?(?:[0-9]*:)/igm;
580604
const road_bFoundPRTitle = Boolean( road_findPRTitle.test( iss_title ) );
581605
582606
console.log( "Title Lowercase ............... " + iss_title_lc )

.github/workflows/pr-issues-status.yml

Lines changed: 31 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -288,17 +288,23 @@ jobs:
288288

289289
/*
290290
Find regex based phrases
291+
292+
Regex:
293+
https://regex101.com/r/Z99Gnq/2
291294
*/
292295

293-
const bug_findWordList = /(?:I?\s*have\s*(?:a|an)\s*(?:issue|problem|bug))|(?:will\s*not\s*work)|(?:it\s*is\s*(?:broken|broke|stuck))|(?:found\s*(?:an?|the)\s*(?:bug|issue))|(?:can\s*I\s*fix\s*the\s*(?:bug|issue))|(?:(?:does not|doesn'?t|don'?t|won'?t|can'?t|can\s?not|will\s*not)\s*(?:work|load|function))|(?:it\s*(?:will\s?not|won'?t|can\s?not|can'?t))\s*get\s*the\s*(?:website|site|webpage|page)|(?:the\s*(?:window|frame)\s*is\s*(?:blank|white|empty|missing))/igm;
296+
const bug_findWordList = /^\b(?:I?\s*have\s*(?:a|an)\s*(?:issue|problem|bug))|(?:will\s*not\s*work)|(?:it\s*is\s*(?:broken|broke|stuck))|(?:found\s*(?:an?|the)\s*(?:bug|issue))|(?:can\s*I\s*fix\s*the\s*(?:bug|issue))|(?:(?:does not|doesn'?t|don'?t|won'?t|can'?t|can\s?not|will\s*not)\s*(?:work|load|function))|(?:it\s*(?:will\s?not|won'?t|can\s?not|can'?t))\s*(?:get|find)\s*the\s*(?:website|site|webpage|page)|(?:the\s*(?:window|frame)\s*is\s*(?:blank|white|empty|missing))\b$/igm;
294297
const bug_bFoundMatchTitle = Boolean( bug_findWordList.test( iss_title ) );
295298
const bug_bFoundMatchBody = Boolean( bug_findWordList.test( iss_body ) );
296299

297300
/*
298301
Do not change a title if the item starts with a PR: #
302+
303+
Regex:
304+
https://regex101.com/r/JOrqbN/1
299305
*/
300306

301-
const bug_findPRTitle = /^PR\s(?:[0-9]*:?)/igm;
307+
const bug_findPRTitle = /^PR\s?#?(?:[0-9]*:)/igm;
302308
const bug_bFoundPRTitle = Boolean( bug_findPRTitle.test( iss_title ) );
303309

304310
/*
@@ -336,17 +342,23 @@ jobs:
336342

337343
/*
338344
Find regex based phrases
345+
346+
Regex:
347+
https://regex101.com/r/fR1Hm6/1
339348
*/
340349

341-
const feat_findWordList = /(?:(?:request|include|see)\s*(?:a?|the?)\s*(?:feature|addon|addition|plugin))|(?:(?:add|see|get)\s*support\s*(?:for|with|of))/igm;
350+
const feat_findWordList = /^(?:(?:request|include|see)\s*(?:an?|the?)\s*(?:feature|addon|addition|plugin))|(?:(?:add|see|get)\s*support\s*(?:for|with|of))|(?:can\s*we\s*get\s*(?:the|a)\s*(?:ability|feature))|(?:💡 Feature:)$/igm;
342351
const feat_bFoundMatchTitle = Boolean( feat_findWordList.test( iss_title ) );
343352
const feat_bFoundMatchBody = Boolean( feat_findWordList.test( iss_body ) );
344353

345354
/*
346355
Do not change a title if the item starts with a PR: #
356+
357+
Regex:
358+
https://regex101.com/r/JOrqbN/1
347359
*/
348360

349-
const feat_findPRTitle = /^PR\s(?:[0-9]*:?)/igm;
361+
const feat_findPRTitle = /^PR\s?#?(?:[0-9]*:)/igm;
350362
const feat_bFoundPRTitle = Boolean( feat_findPRTitle.test( iss_title ) );
351363

352364
/*
@@ -385,17 +397,23 @@ jobs:
385397

386398
/*
387399
Find regex based phrases
400+
401+
Regex:
402+
https://regex101.com/r/eE9tJX/2
388403
*/
389404

390-
const urgn_findWordList = /\b(?:(?:this)?is\s*a?n?\s*?(?:emergency|urgent|important|vital|acute|crucial|grave|pressing|serious|top.?priority|high.?priority))|(?:reply|respond|answer|write|address)\s*(?:immediate|quick|asap|urgent|now|fast|(?:as)?\s*(?:soon|quick|immediate|fast))(?:ly)?|(?:need\s*(?:help|support|fixed|answer|reply|response)!)|(?:emergency|critical|urgen(?:t|cy)|high.?priority)\b/igm;
405+
const urgn_findWordList = /(?:(?:this)?is\s*a?n?\s*?(?:emergency|urgent|important|vital|acute|crucial|grave|pressing|serious|top.?priority|high.?priority))|(?:reply|respond|answer|write|address)\s*(?:immediate|quick|asap|urgent|now|fast|(?:as)?\s*(?:soon|quick|immediate|fast))(?:ly)?|(?:need\s*(?:help|support|fixed|answer|reply|response)!)|(?:emergency|critical|urgen(?:t|cy)|high.?priority)/igm;
391406
const urgn_bFoundMatchTitle = Boolean( urgn_findWordList.test( iss_title ) );
392407
const urgn_bFoundMatchBody = Boolean( urgn_findWordList.test( iss_body ) );
393408

394409
/*
395410
Do not change a title if the item starts with a PR: #
411+
412+
Regex:
413+
https://regex101.com/r/JOrqbN/1
396414
*/
397415

398-
const urgn_findPRTitle = /^PR\s(?:[0-9]*:?)/igm;
416+
const urgn_findPRTitle = /^PR\s?#?(?:[0-9]*:)/igm;
399417
const urgn_bFoundPRTitle = Boolean( urgn_findPRTitle.test( iss_title ) );
400418

401419
/*
@@ -436,6 +454,9 @@ jobs:
436454
/*
437455
Find regex based phrases
438456
Roadmap requires headers #Summary and #Proposal | #Objective
457+
458+
Regex:
459+
https://regex101.com/r/ucajBZ/1
439460
*/
440461

441462
const road_findWordList = /#\s*Summary[\S\s]+#\s*(?:Proposal|Objective)[^\]]+/igm;
@@ -444,9 +465,12 @@ jobs:
444465

445466
/*
446467
Do not change a title if the item starts with a PR: #
468+
469+
Regex:
470+
https://regex101.com/r/JOrqbN/1
447471
*/
448472

449-
const road_findPRTitle = /^PR\s(?:[0-9]*:?)/igm;
473+
const road_findPRTitle = /^PR\s?#?(?:[0-9]*:)/igm;
450474
const road_bFoundPRTitle = Boolean( road_findPRTitle.test( iss_title ) );
451475

452476
/*

0 commit comments

Comments
 (0)