feat(bitbucket): full CLI support — env factory, repo CRUD, URL fix [ATLSK-76]#1
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
createBitbucketClientFromEnv()— readsBITBUCKET_API_TOKEN+ATLASSIAN_USER_EMAIL(new Atlassian unified tokens), legacy app passwords, or OAuthcreateRepository(),deleteRepository(),updateRepository()onRepositoryOperationsRepositoryOperations,PullRequestOperations,PipelineOperations,DeploymentOperations), their factories,createBitbucketClient, andBitbucketApiErrornow exported from main indexnew 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 documentedTesting
Tested live against
hiddenleafnetworksworkspace:createBitbucketClientFromEnv()— auth works with scoped Atlassian API tokenlistRepositories()— 11 repos returnedgetRepository('aria-ai')— full details including main branchcreateRepository('test-atlsk-76')— created successfullydeleteRepository('test-atlsk-76')— deleted + confirmed 404listBranches('aria-ai')— 10 branches returnedlistPullRequests('aria-ai')— works (0 open PRs)Post-merge
npm publish(requires manual auth)aria-aiconsumer to@hidden-leaf/atlassian-skill@1.2.0BITBUCKET_API_TOKENto skill's postinstall .env injectionJira
Epic: ATLSK-76
Tasks: ATLSK-77, ATLSK-78, ATLSK-79, ATLSK-80
🤖 Generated with Claude Code