Commit a0a2daa
When scoped package names (@scope/pkg) appear in markdown links, they were
being processed incorrectly:
1. Added guard to skip team-mention-shaped text already inside links
2. For team mentions inside links: insert zero-width space (prevents notifications)
without replacing the text node (preserves link formatting)
3. For team mentions outside links: use normal code-wrapped node replacement
This fixes both the formatting issue (#13972) and prevents unwanted team
notifications for scoped package names in 'Sourced from' release notes links.
Co-authored-by: v-HaripriyaC <v-haripriyac@microsoft.com>
1 parent 5ae4593 commit a0a2daa
2 files changed
Lines changed: 42 additions & 10 deletions
File tree
- common
- lib/dependabot/pull_request_creator/message_builder
- spec/dependabot/pull_request_creator/message_builder
Lines changed: 12 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
| 109 | + | |
114 | 110 | | |
115 | 111 | | |
116 | 112 | | |
117 | 113 | | |
118 | 114 | | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
119 | 122 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
124 | 127 | | |
125 | | - | |
126 | 128 | | |
127 | 129 | | |
128 | 130 | | |
| |||
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
236 | 266 | | |
237 | 267 | | |
238 | 268 | | |
| |||
0 commit comments