File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,14 +15,14 @@ export function getPullRequestIdentityValuesFromSearch(search: string): PullRequ
15
15
let ownerAndRepo : string | undefined = undefined ;
16
16
let prNumber : string | undefined = undefined ;
17
17
18
- let match = search . match ( / ( [ ^ / ] + \/ [ ^ / ] + ) \/ p u l l \/ ( \d + ) / ) ; // with org and rep name
18
+ let match = search . match ( / ( [ ^ / ] + \/ [ ^ / ] + ) \/ (?: p u l l | - \/ m e r g e _ r e q u e s t s ) \/ ( \d + ) / ) ; // with org and rep name
19
19
if ( match != null ) {
20
20
ownerAndRepo = match [ 1 ] ;
21
21
prNumber = match [ 2 ] ;
22
22
}
23
23
24
24
if ( prNumber == null ) {
25
- match = search . match ( / (?: \/ | ^ ) p u l l \/ ( \d + ) / ) ; // without repo name
25
+ match = search . match ( / (?: \/ | ^ ) (?: p u l l | - \/ m e r g e _ r e q u e s t s ) \/ ( \d + ) / ) ; // without repo name
26
26
if ( match != null ) {
27
27
prNumber = match [ 1 ] ;
28
28
}
You can’t perform that action at this time.
0 commit comments