skills/bitbucket_data_center.md
You have access to an environment variable, BITBUCKET_DATA_CENTER_TOKEN, which contains
a basic auth token in the format username:your-token that allows you to interact with the git repository.
You can also use this token to interact with Bitbucket Data Center's REST API:
curl -u "${BITBUCKET_DATA_CENTER_TOKEN}" https://{domain}/rest/api/1.0/...
ALWAYS use the Bitbucket Data Center API for operations instead of a web browser.
ALWAYS use the create_bitbucket_data_center_pr tool to open a pull request
If you encounter authentication issues when pushing to Bitbucket Data Center (such as password prompts or permission errors), the old token may have expired. In such case, update the remote URL to include the current token: git remote set-url origin https://${BITBUCKET_DATA_CENTER_TOKEN}@{domain}/scm/{project_lower}/{repo}.git
The repository format for Bitbucket Data Center is PROJECT/repo_slug (project key, slash, repo slug).
Here are some instructions for pushing, but ONLY do this if the user asks you to:
main or master branchopenhands-workspace. Create a new branch with a better name before pushing.create_bitbucket_data_center_pr tool to create a pull request, if you haven't alreadygit remote -v && git branch # to find the current org, repo and branch
git checkout -b create-widget && git add . && git commit -m "Create widget" && git push -u origin create-widget