AgentSkillsCN

bitbucket

通过 API 管理 Bitbucket 仓库、拉取请求与管道。

SKILL.md
--- frontmatter
name: bitbucket
description: Manage Bitbucket repositories, pull requests, and pipelines via API.
metadata: {"thinkfleet":{"emoji":"🪣","requires":{"env":["BITBUCKET_USERNAME","BITBUCKET_APP_PASSWORD"]}}}

Bitbucket

Git repository hosting.

Environment

bash
export BITBUCKET_USERNAME="xxxxxxxxxx"
export BITBUCKET_APP_PASSWORD="xxxxxxxxxx"

List Repositories

bash
curl -u "$BITBUCKET_USERNAME:$BITBUCKET_APP_PASSWORD" "https://api.bitbucket.org/2.0/repositories/$BITBUCKET_USERNAME"

Create Pull Request

bash
curl -X POST -u "$BITBUCKET_USERNAME:$BITBUCKET_APP_PASSWORD" \
  "https://api.bitbucket.org/2.0/repositories/{workspace}/{repo}/pullrequests" \
  -H "Content-Type: application/json" \
  -d '{"title": "Feature PR", "source": {"branch": {"name": "feature"}}, "destination": {"branch": {"name": "main"}}}'

Links