File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -94,7 +94,15 @@ export async function run() {
94
94
}
95
95
96
96
const commentParams = commentUrlParamsRegex . exec ( subjectUrl ) ;
97
-
97
+ console . debug (
98
+ "Extracting groups" ,
99
+ commentParams ,
100
+ "from url" ,
101
+ subjectUrl ,
102
+ "using regex" ,
103
+ commentUrlParamsRegex
104
+ ) ;
105
+
98
106
return octokit . issues . createComment ( {
99
107
...commentParams . groups ,
100
108
body : config . message ,
Original file line number Diff line number Diff line change @@ -17,5 +17,5 @@ export function isBot(commentData) {
17
17
export const commentUrlParamsRegex = new RegExp (
18
18
// Otherwise, the escape characters are removed from the expression.
19
19
// eslint-disable-next-line prettier/prettier, no-useless-escape
20
- "(?:https:\/\/)(?:api\.github\.com)\/(?:repos)\/(?<owner>[\\w-]+)\/(?<repo>[\\w-]+)\/(?:issues)\/(?<issue_number>[0-9]+)"
20
+ "(?:https:\/\/)(?:api\.github\.com)\/(?:repos)\/(?<owner>[\\w. -]+)\/(?<repo>[\\w. -]+)\/(?:issues)\/(?<issue_number>[0-9]+)"
21
21
) ;
You can’t perform that action at this time.
0 commit comments