File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
browser-extension/src/lib/enhancers Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 11import hljs from 'highlight.js'
22import OverType , { type OverTypeInstance } from '../../overtype/overtype'
33import type { CommentEnhancer , CommentSpot } from '../enhancer'
4+ import { logger } from '../../lib/logger'
45
56const GITHUB_SPOT_TYPES = [
67 'GH_PR_ADD_COMMENT' ,
@@ -35,7 +36,10 @@ export class GitHubAddCommentEnhancer implements CommentEnhancer<GitHubAddCommen
3536 }
3637
3738 // Parse GitHub URL structure: /owner/repo/issues/123 or /owner/repo/pull/456
39+ logger . debug ( `${ this . constructor . name } examing url` , window . location . pathname )
40+
3841 const match = window . location . pathname . match ( / ^ \/ ( [ ^ / ] + ) \/ ( [ ^ / ] + ) (?: \/ p u l l \/ ( \d + ) ) / )
42+ logger . debug ( `${ this . constructor . name } found match` , window . location . pathname )
3943 if ( ! match ) return null
4044 const [ , owner , repo , numberStr ] = match
4145 const slug = `${ owner } /${ repo } `
You can’t perform that action at this time.
0 commit comments