Commit 8483fcf
committed
fix(pr-2-jira): make detectPageType more precise
Changed from simple pathname.includes('/pull/') to regex /\/pull\/\d+\/?$/
to match only base PR pages like /pull/7323, not subpages like
/pull/7323/commits or /pull/7323/files.
This prevents the script from running on commit list pages and other
PR-related subpages, only activating on the main PR discussion page.1 parent 53f366c commit 8483fcf
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
0 commit comments