Commit e3a4874
feat(integrations): add Bitbucket Cloud (#6860)
* feat(integrations): add Bitbucket Cloud
* fix(bitbucket): enforce selector workspace slugs
* fix(bitbucket): overfetch small pipeline log tails
* fix(bitbucket): harden provider edge cases
* fix(bitbucket): accept provider diff redirect specs
* fix(bitbucket): stop advanced-field leakage and harden log, status, and selector paths
Splits the `closeSourceBranch` advanced subBlock into per-operation ids. Advanced
fields serialize without evaluating their condition, so a value set on Create Pull
Request reached Merge Pull Request and closed the source branch unprompted.
Also:
- read step logs through the byte-capped server transport and map an empty-log 416
to an empty result, keeping a genuine 416 an error
- trim a step log's partial leading line after the character cap rather than before,
and never return an empty log when the retained window held content
- surface Bitbucket's `error.detail` alongside `error.message`
- treat commit-status `key`/`state` as nullable so one malformed row cannot drop a page
- match repository `full_name` case-insensitively and reject dot segments in a
workspace slug before the outbound request
- type `reviewerAccountIds` as the comma-separated string it is
- trim optional Bitbucket query strings; correct the token lifetime to two hours
---------
Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>
Co-authored-by: Waleed Latif <walif6@gmail.com>1 parent 9f34676 commit e3a4874
81 files changed
Lines changed: 13285 additions & 8 deletions
File tree
- apps
- docs
- components
- ui
- content/docs/en
- integrations
- platform/self-hosting
- sim
- app
- api/tools/bitbucket
- repositories
- workspaces
- workspace/[workspaceId]/components/connect-oauth-modal
- blocks
- blocks
- components
- hooks/selectors
- providers/bitbucket
- lib
- api/contracts/selectors
- auth/connectors
- core/config
- integrations
- oauth
- workflows/subblocks
- tools
- bitbucket
- generated
- packages
- deployment-config/src
- sim-setup/src
- scripts
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
754 | 754 | | |
755 | 755 | | |
756 | 756 | | |
| 757 | + | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
| 761 | + | |
| 762 | + | |
| 763 | + | |
| 764 | + | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
| 788 | + | |
757 | 789 | | |
758 | 790 | | |
759 | 791 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| 292 | + | |
291 | 293 | | |
292 | 294 | | |
293 | 295 | | |
| |||
0 commit comments