{"id":20597210,"url":"https://github.com/cathive/concourse-bitbucket-pullrequest-resource","last_synced_at":"2026-04-20T15:03:50.116Z","repository":{"id":146977927,"uuid":"106732141","full_name":"cathive/concourse-bitbucket-pullrequest-resource","owner":"cathive","description":"fetches pull request from BitBucket Server/Cloud and updates the status of the PR","archived":false,"fork":false,"pushed_at":"2017-10-17T11:11:49.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-17T01:08:09.242Z","etag":null,"topics":["bitbucket-cloud","bitbucket-server","concourse-resource","continuous-integration","pull-request"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cathive.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":"AUTHORS.md","dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-10-12T18:44:48.000Z","updated_at":"2017-10-18T12:16:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"54571336-5249-4011-80b1-815637832c51","html_url":"https://github.com/cathive/concourse-bitbucket-pullrequest-resource","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cathive%2Fconcourse-bitbucket-pullrequest-resource","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cathive%2Fconcourse-bitbucket-pullrequest-resource/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cathive%2Fconcourse-bitbucket-pullrequest-resource/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cathive%2Fconcourse-bitbucket-pullrequest-resource/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cathive","download_url":"https://codeload.github.com/cathive/concourse-bitbucket-pullrequest-resource/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231441,"owners_count":20093636,"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":["bitbucket-cloud","bitbucket-server","concourse-resource","continuous-integration","pull-request"],"created_at":"2024-11-16T08:21:06.510Z","updated_at":"2026-04-20T15:03:50.071Z","avatar_url":"https://github.com/cathive.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BitBucket Pull Request Resource\n\nTracks changes for all *git* branches managed by BitBucket (Server or Cloud) for pull requests.\n\n**This resource is meant to be used with [`version: every`](https://concourse.ci/get-step.html#get-version).**\n\n## Origins of this project\nWe have had some issues with the existing resources that implemented BitBucket pull request handling\nand therefore decided to roll our own. Most of the scripts are based on work from other GitHub\nrepositories:\n* [philicious/concourse-git-bitbucket-pr-resource](https://github.com/philicious/concourse-git-bitbucket-pr-resource)\n* [zarplata/concourse-git-bitbucket-pr-resource](https://github.com/zarplata/concourse-git-bitbucket-pr-resource)\n\n## Installation\n\nAdd the following `resource_types` entry to your pipeline:\n\n```yaml\n---\nresource_types:\n- name: bitbucket-pr\n  type: docker-image\n  source:\n    repository: cathive/concourse-bitbucket-pullrequest-resource\n    tag: latest # You'll probably want to use a verionsed tag to ensure that your builds are reproducible\n```\n\n## Source Configuration\n\n* `base_url`: *Required*. base URL of the bitbucket server, without a trailing slash. \nFor example: `http://bitbucket.local`\n* `username`: *Required*. username of the user which have access to repository.\n* `password`: *Required*. password of that user\n* `project`: *Required*. project for tracking\n* `repository`: *Required*. repository for tracking\n* `limit`: *Optional*. limit of tracked pull requests `default: 100`.\n* `git`: *Required*. configuration is based on the [Git\nresource](https://github.com/concourse/git-resource). The `branch` configuration\nfrom the original resource is ignored.\n* `bitbucket_type`: *Optional*. `cloud` for BitBucket Cloud or `server` for a self-hosted BitBucket Server. `default: server`\n\n### Example\n\n``` yaml\nresources:\n- name: my-repo-with-pull-requests\n  type: bitbucket-pr\n  source:\n    url: http://bitbucket.local\n    username: some-username\n    password: some-password\n    project: cathive\n    repository: concourse-bitbucket-pullrequest-resource\n    git:\n      uri: https://github.com/cathive/concourse-bitbucket-pullrequest-resource\n      private_key: ((git-repo-key))\n\njobs:\n  - name: my build\n    plan:    \n      - get: my-repo-with-pull-requests\n        trigger: true\n        version: every\n      - task: unit test\n          ...\n          inputs:          \n            - name: my-repo-with-pull-requests\n          run:\n          ...\n        on_failure:\n          put: my-repo-with-pull-requests\n          params:\n            state: FAILED\n            name: \"unit test\"\n            dir: my-repo-with-pull-requests\n        on_success:\n          put: my-repo-with-pull-requests\n          params:\n            state: SUCCESSFUL\n            name: \"unit test\"\n            dir: my-repo-with-pull-requests\n```\n\n## Behavior\n\n### `check`: Check for changes to all pull requests.\n\nThe current open pull requests fetched from Bitbucket server for given \nproject and repository. Update time are compared to the last fetched pull request.\n\nIf any pull request are new or updated or removed, a new version is emitted.\n\n### `in`: Fetch the commit that changed the pull request.\n\nThis resource delegates entirely to the `in` of the original Git resource, by\nspecifying `source.branch` as the branch that changed, and `version.ref` as the\ncommit on the branch.\n\nAll `params` and `source` configuration of the original resource will be\nrespected.\n\n### `out`: Update build task status.\n  \t\t  \nThis updates the build status of the task.\n\n#### Parameters\n\n* `dir`: *Optional*. set to name of the resource if resource name is different than repository name","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcathive%2Fconcourse-bitbucket-pullrequest-resource","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcathive%2Fconcourse-bitbucket-pullrequest-resource","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcathive%2Fconcourse-bitbucket-pullrequest-resource/lists"}