{"id":22351888,"url":"https://github.com/screwdriver-cd/scm-bitbucket","last_synced_at":"2025-07-30T07:31:52.380Z","repository":{"id":11774819,"uuid":"70520169","full_name":"screwdriver-cd/scm-bitbucket","owner":"screwdriver-cd","description":"Bitbucket implementation of the scm-base class","archived":false,"fork":false,"pushed_at":"2024-11-08T17:52:48.000Z","size":268,"stargazers_count":0,"open_issues_count":0,"forks_count":6,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-08T18:36:30.647Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://cd.screwdriver.cd/pipelines/15","language":"JavaScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/screwdriver-cd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-10-10T19:12:13.000Z","updated_at":"2024-11-08T17:49:55.000Z","dependencies_parsed_at":"2024-03-12T02:28:58.803Z","dependency_job_id":"77883bc7-422a-4e21-97b6-506bbe23e0a8","html_url":"https://github.com/screwdriver-cd/scm-bitbucket","commit_stats":{"total_commits":88,"total_committers":26,"mean_commits":"3.3846153846153846","dds":0.7840909090909091,"last_synced_commit":"3b6e7733210e88a311c8d0bfc32f1f273e1b0e39"},"previous_names":[],"tags_count":81,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screwdriver-cd%2Fscm-bitbucket","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screwdriver-cd%2Fscm-bitbucket/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screwdriver-cd%2Fscm-bitbucket/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/screwdriver-cd%2Fscm-bitbucket/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/screwdriver-cd","download_url":"https://codeload.github.com/screwdriver-cd/scm-bitbucket/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":228106387,"owners_count":17870438,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T12:16:16.936Z","updated_at":"2024-12-04T12:16:17.602Z","avatar_url":"https://github.com/screwdriver-cd.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# scm-bitbucket\n[![Version][npm-image]][npm-url] ![Downloads][downloads-image] [![Build Status][status-image]][status-url] [![Open Issues][issues-image]][issues-url] ![License][license-image]\n\n\u003e This scm plugin extends the [scm-base-class](https://github.com/screwdriver-cd/scm-base), and provides methods to fetch and update data in Bitbucket.\n\n## Usage\n\n```bash\nnpm install screwdriver-scm-bitbucket\n```\n\n### Initialization\n\nThe class has a variety of knobs to tweak when interacting with Bitbucket.org.\n\n| Parameter        | Type  | Default |  Description |\n| :-------------   | :---- | :------ | :-------------|\n| config        | Object | | Configuration Object |\n| config.oauthClientId | String | | OAuth Client ID provided by Bitbucket application |\n| config.oauthClientSecret | String | | OAuth Client Secret provided by Bitbucket application |\n| config.username | String | sd-buildbot | Bitbucket username for checkout |\n| config.email | String | dev-null@screwdriver.cd | Bitbucket user email for checkout |\n| config.https | Boolean | false | Is the Screwdriver API running over HTTPS |\n| config.readOnly | Object | {} | Config with readOnly info: enabled, username, accessToken, cloneType |\n| config.fusebox | Object | {} | [Circuit Breaker configuration][circuitbreaker] |\n\n```js\nconst scm = new BitbucketScm({\n    oauthClientId: 'your-client-id',\n    oauthClientSecret: 'your-client-secret'\n});\n```\n\n### Methods\n\n#### getScmContexts\n\nNo parameters are required.\n\n##### Expected Outcome\n\nA single element array of ScmContext(ex: `['bitbucket:bitbucket.org']`), which will be a unique identifier for the scm.\nSince scm-bitbucket supports only 'bitbucket.org' now, this method returns fixed value.\n\nFor more information on the exposed methods please see the [scm-base-class].\n\n## Testing\n\n```bash\nnpm test\n```\n\n## License\n\nCode licensed under the BSD 3-Clause license. See LICENSE file for terms.\n\n[npm-image]: https://img.shields.io/npm/v/screwdriver-scm-bitbucket.svg\n[npm-url]: https://npmjs.org/package/screwdriver-scm-bitbucket\n[downloads-image]: https://img.shields.io/npm/dt/screwdriver-scm-bitbucket.svg\n[license-image]: https://img.shields.io/npm/l/screwdriver-scm-bitbucket.svg\n[issues-image]: https://img.shields.io/github/issues/screwdriver-cd/screwdriver.svg\n[issues-url]: https://github.com/screwdriver-cd/screwdriver/issues\n[status-image]: https://cd.screwdriver.cd/pipelines/15/badge\n[status-url]: https://cd.screwdriver.cd/pipelines/15\n[scm-base-class]: https://github.com/screwdriver-cd/scm-base\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrewdriver-cd%2Fscm-bitbucket","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscrewdriver-cd%2Fscm-bitbucket","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscrewdriver-cd%2Fscm-bitbucket/lists"}