{"id":22688884,"url":"https://github.com/benoitclaveau/qwebs-bitbucket-deploy","last_synced_at":"2025-10-19T15:31:16.050Z","repository":{"id":135256881,"uuid":"79321468","full_name":"BenoitClaveau/qwebs-bitbucket-deploy","owner":"BenoitClaveau","description":null,"archived":false,"fork":false,"pushed_at":"2017-07-17T21:58:42.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-03T20:36:35.337Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/BenoitClaveau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2017-01-18T08:55:28.000Z","updated_at":"2017-01-18T09:04:46.000Z","dependencies_parsed_at":"2023-07-09T18:00:12.519Z","dependency_job_id":null,"html_url":"https://github.com/BenoitClaveau/qwebs-bitbucket-deploy","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitClaveau%2Fqwebs-bitbucket-deploy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitClaveau%2Fqwebs-bitbucket-deploy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitClaveau%2Fqwebs-bitbucket-deploy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BenoitClaveau%2Fqwebs-bitbucket-deploy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BenoitClaveau","download_url":"https://codeload.github.com/BenoitClaveau/qwebs-bitbucket-deploy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237156236,"owners_count":19264446,"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-10T00:16:25.769Z","updated_at":"2025-10-19T15:31:15.708Z","avatar_url":"https://github.com/BenoitClaveau.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# qwebs-auth-jwt\nQwebs webhook service to deploy from bitbucket.\n  \n## Features\n\n  * [Qwebs](https://www.npmjs.com/package/qwebs)\n\n### Override default behaviour\n\n```services/bitbucket.js\nconst BitbucketService = require(\"qwebs-bitbucket-deploy\");\nconst process = require(\"process\");\n\nclass MyBitbucketService extends BitbucketService {\n  constructor() {\n    super();\n  };\n\n  /* return boolean */\n  startDeployement(comments) {\n    return comments.reduce((previous, current) =\u003e {\n      //find a comment like 'prod version 1.0.3'\n      return previous || /prod version \\d+.\\d+.\\d+/g.test(current);\n    }, false);\n  }\n\n  restart() {\n      //just stop the process\n      //if we use pm2, the process will be automatically restarted\n      process.exit(1);\n  }\n};\n\nexports = module.exports = MyBitbucketService;\n```\n\n### Declare and inject $auth\n\n```route.json\n{\n    \"services\": [\n        { \"name\": \"$bitbucket\", \"location\": \"./services/bitbucket\" }\n    ],\n    \"locators\": [\n        { \"post\": \"/api/bitbucket\", \"service\": \"$bitbucket\", \"method\": \"webhook\" }\n    ]\n}\n```\n\n## API\n\n  * webhook(request, response)\n  * startDeployement(Array comments) : boolean\n  * restart()\n\n## Installation\n\n```bash\n$ npm install qwebs-bitbucket-deploy\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitclaveau%2Fqwebs-bitbucket-deploy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbenoitclaveau%2Fqwebs-bitbucket-deploy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbenoitclaveau%2Fqwebs-bitbucket-deploy/lists"}