Commit e20d514
feat(bitbucket): support glob patterns in repository exclusions (#620)
* feat(bitbucket): support glob patterns in repository exclusions
Update Bitbucket Cloud and Server exclusion logic to support glob
patterns (e.g., "org/repo*") in the exclude.repos configuration,
matching the documented behavior and aligning with other providers
(GitHub, GitLab, Gitea, Azure DevOps).
Changes:
- Add micromatch import for pattern matching
- Replace Array.includes() with micromatch.isMatch() in
cloudShouldExcludeRepo and serverShouldExcludeRepo functions
- Add reason logging for exclusion decisions to match GitHub's pattern
This enables users to exclude repositories using wildcard patterns
as documented in the Bitbucket Cloud connection documentation.
* update changelog
---------
Co-authored-by: Jose Hernandez <[email protected]>
Co-authored-by: bkellam <[email protected]>1 parent 1dff20d commit e20d514
2 files changed
+25
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
346 | 347 | | |
347 | 348 | | |
348 | 349 | | |
| 350 | + | |
| 351 | + | |
349 | 352 | | |
350 | 353 | | |
351 | | - | |
352 | | - | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
353 | 359 | | |
354 | 360 | | |
355 | 361 | | |
356 | 362 | | |
357 | 363 | | |
358 | 364 | | |
359 | 365 | | |
| 366 | + | |
360 | 367 | | |
361 | 368 | | |
| 369 | + | |
| 370 | + | |
362 | 371 | | |
363 | 372 | | |
364 | 373 | | |
365 | | - | |
| 374 | + | |
366 | 375 | | |
367 | 376 | | |
368 | 377 | | |
| |||
548 | 557 | | |
549 | 558 | | |
550 | 559 | | |
| 560 | + | |
| 561 | + | |
551 | 562 | | |
552 | 563 | | |
553 | | - | |
554 | | - | |
| 564 | + | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
555 | 569 | | |
556 | 570 | | |
557 | 571 | | |
| 572 | + | |
558 | 573 | | |
559 | 574 | | |
560 | 575 | | |
561 | 576 | | |
| 577 | + | |
562 | 578 | | |
563 | 579 | | |
| 580 | + | |
| 581 | + | |
564 | 582 | | |
565 | 583 | | |
566 | 584 | | |
567 | | - | |
| 585 | + | |
568 | 586 | | |
569 | 587 | | |
570 | 588 | | |
| |||
0 commit comments