Commit a3224b6
authored
ref(grouping): Add git SHA parameterization (#109753)
It is standard git practice to abbreviate commit SHAs to 7 digits where there's no ambiguity. However, for message parameterization our current hex matching only applies to strings 8 characters and up. This therefore adds a new, separate pattern to our collection of parameterizer regexes, specifically to match git SHAs. It's similar to our hex regex, but stricter, in that the string must be exactly 7 characters, must include both a letter and a number (this will miss a few, but both words and ints are more common, so we let them win), and must only use lowercase letters, as git always does.1 parent 2c6a1c1 commit a3224b6
File tree
2 files changed
+12
-6
lines changed- src/sentry/grouping
- tests/sentry/grouping
2 files changed
+12
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
206 | 206 | | |
207 | 207 | | |
208 | 208 | | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
209 | 220 | | |
210 | 221 | | |
211 | 222 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
208 | 209 | | |
209 | 210 | | |
210 | 211 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | 212 | | |
218 | 213 | | |
219 | 214 | | |
| |||
0 commit comments