Commit 09cab6b
Fix notification marking for merged PRs with bot comments (#8281)
* Initial plan
* Initial plan for notification marking issue
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add support for merged events and bot filtering in notifications
- Add EventType.Merged as a meaningful event in _getMeaningfulEventTime
- Filter out bot accounts (AccountType.Bot) from meaningful events
- Filter out users with [bot] suffix or vs-code-engineering username
- This fixes the issue where merged PRs by the current user don't get marked as done
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Add bot filtering for merge events
- Check login patterns for merge events to filter out bots
- MergedEvent.user is IActor (not IAccount), so we only check name patterns
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Extract isBot helper as private method for reusability
- Move isBot logic to a private method _isBot
- Simplify merge event handling to use _isBot
- Improve code organization and testability
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Move automated users to configuration constant
- Extract 'vs-code-engineering' to AUTOMATED_USERS constant
- Improve maintainability by making it easy to add/remove automated users
- Add documentation for the constant
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>
* Ignore mege
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: alexr00 <38270282+alexr00@users.noreply.github.com>1 parent 1737796 commit 09cab6b
1 file changed
Lines changed: 23 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
323 | 326 | | |
324 | 327 | | |
325 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
326 | 345 | | |
327 | 346 | | |
328 | 347 | | |
| |||
333 | 352 | | |
334 | 353 | | |
335 | 354 | | |
336 | | - | |
| 355 | + | |
337 | 356 | | |
338 | 357 | | |
339 | 358 | | |
340 | | - | |
| 359 | + | |
341 | 360 | | |
342 | 361 | | |
343 | 362 | | |
344 | 363 | | |
345 | 364 | | |
346 | | - | |
| 365 | + | |
347 | 366 | | |
348 | 367 | | |
349 | 368 | | |
| |||
0 commit comments