The requestBitbucket
bridge method enables Forge apps to call the
Bitbucket Cloud REST API as the current user.
1 2function requestBitbucket( uri: string, options?: RequestInit, ): Promise<Response>
1 2import { view, requestBitbucket } from '@forge/bridge'; const context = await view.getContext(); const response = await requestBitbucket(`/2.0/repositories/${context.workspaceId}/${context.extension.repository.uuid}`); console.log(await response.json());
Rate this page: