Skip to content

Commit e3a4874

Browse files
BillLeoutsakosvl346Bill Leoutsakoswaleedlatif1
authored
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/docs/components/icons.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -754,6 +754,38 @@ export function GithubOutlineIcon(props: SVGProps<SVGSVGElement>) {
754754
)
755755
}
756756

757+
export function BitbucketIcon(props: SVGProps<SVGSVGElement>) {
758+
const id = useId()
759+
const gradientId = `bitbucket_original_a_${id}`
760+
761+
return (
762+
<svg {...props} viewBox='0 0 128 128' xmlns='http://www.w3.org/2000/svg'>
763+
<defs>
764+
<linearGradient
765+
id={gradientId}
766+
gradientUnits='userSpaceOnUse'
767+
x1='28.593'
768+
y1='14.226'
769+
x2='16.672'
770+
y2='23.532'
771+
gradientTransform='scale(4)'
772+
>
773+
<stop offset='.176' stopColor='#0052cc' />
774+
<stop offset='1' stopColor='#2684ff' />
775+
</linearGradient>
776+
</defs>
777+
<path
778+
d='M19.082 20c-1.918 0-3.355 1.758-3.039 3.516l12.95 79.289c.32 2.078 2.077 3.515 4.155 3.515h62.66c1.442 0 2.72-1.12 3.04-2.558l13.109-80.086c.316-1.918-1.121-3.516-3.039-3.516zM74.07 77.227H54.09l-5.278-28.293h30.215zm0 0'
779+
fill='#2684ff'
780+
/>
781+
<path
782+
d='M107.64 48.934H78.868L74.07 77.227H54.09l-23.5 27.972s1.12.961 2.719.961h62.66c1.441 0 2.719-1.12 3.039-2.558zm0 0'
783+
fill={`url(#${gradientId})`}
784+
/>
785+
</svg>
786+
)
787+
}
788+
757789
export function GitLabIcon(props: SVGProps<SVGSVGElement>) {
758790
return (
759791
<svg {...props} width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'>

apps/docs/components/ui/icon-mapping.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import {
2424
AttioIcon,
2525
AzureDataExplorerIcon,
2626
AzureIcon,
27+
BitbucketIcon,
2728
BoxCompanyIcon,
2829
BrainIcon,
2930
BrandfetchIcon,
@@ -288,6 +289,7 @@ export const blockTypeToIconMap: Record<string, IconComponent> = {
288289
attio: AttioIcon,
289290
azure_data_explorer: AzureDataExplorerIcon,
290291
azure_devops: AzureIcon,
292+
bitbucket: BitbucketIcon,
291293
box: BoxCompanyIcon,
292294
brandfetch: BrandfetchIcon,
293295
brex: BrexIcon,

0 commit comments

Comments
 (0)