tokens-studio / figma-plugin

Official repository of the plugin 'Tokens Studio for Figma' (Figma Tokens)
https://www.figma.com/community/plugin/843461159747178978
MIT License
1.35k stars 194 forks source link

fix bitbucket create branch from having wrong origin #2912

Closed six7 closed 3 months ago

six7 commented 3 months ago

Fixes https://github.com/tokens-studio/figma-plugin/issues/2905

Users reported bitbucket sync behaves weirdly when creating a new branch. It takes a different source branch than specified.

What does this pull request do?

Looked into the code and we naively took the first branch that came back from the list of branches. Changed it so that we use the specified branch name.

changeset-bot[bot] commented 3 months ago

⚠️ No Changeset found

Latest commit: 987b4da177c7f6bdeb57d96e9e835b4e7bcb01c8

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR