Skip to content

feat(bitbucket): full CLI support — env factory, repo CRUD, URL fix [ATLSK-76]#1

Merged
hlntre25 merged 1 commit into
mainfrom
feature/ATLSK-76-bitbucket-cli
Mar 26, 2026
Merged

feat(bitbucket): full CLI support — env factory, repo CRUD, URL fix [ATLSK-76]#1
hlntre25 merged 1 commit into
mainfrom
feature/ATLSK-76-bitbucket-cli

Conversation

@hlntre25

Copy link
Copy Markdown
Contributor

Summary

  • createBitbucketClientFromEnv() — reads BITBUCKET_API_TOKEN + ATLASSIAN_USER_EMAIL (new Atlassian unified tokens), legacy app passwords, or OAuth
  • Repo CRUDcreateRepository(), deleteRepository(), updateRepository() on RepositoryOperations
  • Export fix — all 4 operation classes (RepositoryOperations, PullRequestOperations, PipelineOperations, DeploymentOperations), their factories, createBitbucketClient, and BitbucketApiError now exported from main index
  • URL bug fixnew URL('/path', 'https://api.bitbucket.org/2.0') dropped /2.0, causing 403 on every request
  • .env.example — Bitbucket auth section with all 3 auth methods documented
  • Version bump — 1.1.0 → 1.2.0

Testing

Tested live against hiddenleafnetworks workspace:

  • createBitbucketClientFromEnv() — auth works with scoped Atlassian API token
  • listRepositories() — 11 repos returned
  • getRepository('aria-ai') — full details including main branch
  • createRepository('test-atlsk-76') — created successfully
  • deleteRepository('test-atlsk-76') — deleted + confirmed 404
  • listBranches('aria-ai') — 10 branches returned
  • listPullRequests('aria-ai') — works (0 open PRs)

Post-merge

  • npm publish (requires manual auth)
  • Update aria-ai consumer to @hidden-leaf/atlassian-skill@1.2.0
  • Add BITBUCKET_API_TOKEN to skill's postinstall .env injection

Jira

Epic: ATLSK-76
Tasks: ATLSK-77, ATLSK-78, ATLSK-79, ATLSK-80

🤖 Generated with Claude Code

ATLSK-76: Wire up Bitbucket for full CLI repo management.

- Add createBitbucketClientFromEnv() supporting new Atlassian API tokens
  with Bitbucket scopes, legacy app passwords, and OAuth
- Add createRepository(), deleteRepository(), updateRepository() to
  RepositoryOperations
- Export all Bitbucket operation classes (Repository, PullRequest,
  Pipeline, Deployment) and their factories from main index
- Export createBitbucketClient and BitbucketApiError from main index
- Fix URL construction bug: new URL('/path', base) dropped /2.0 prefix,
  causing 403 on all requests. Now concatenates base + path.
- Add Bitbucket auth section to .env.example
- Bump version to 1.2.0

Tested live against hiddenleafnetworks workspace: repo CRUD, branch
listing, PR listing all confirmed working.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@hlntre25 hlntre25 merged commit 54da6b4 into main Mar 26, 2026
2 checks passed
@hlntre25 hlntre25 deleted the feature/ATLSK-76-bitbucket-cli branch March 26, 2026 16:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant