{"id":20471762,"url":"https://github.com/signiant/plumber","last_synced_at":"2025-06-12T23:03:27.176Z","repository":{"id":209907515,"uuid":"724846766","full_name":"Signiant/plumber","owner":"Signiant","description":"A tool that deletes Bitbucket pipeline build steps that are now obsolete and opens a PR in the given repo.","archived":false,"fork":false,"pushed_at":"2023-11-29T18:15:53.000Z","size":2,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-05T13:49:02.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/Signiant.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}},"created_at":"2023-11-28T23:02:59.000Z","updated_at":"2023-11-29T18:15:52.000Z","dependencies_parsed_at":"2023-11-29T19:30:36.786Z","dependency_job_id":"1fa80a65-2255-4284-ac33-71c8115e0afe","html_url":"https://github.com/Signiant/plumber","commit_stats":null,"previous_names":["signiant/plumber"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Signiant/plumber","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Signiant%2Fplumber","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Signiant%2Fplumber/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Signiant%2Fplumber/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Signiant%2Fplumber/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Signiant","download_url":"https://codeload.github.com/Signiant/plumber/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Signiant%2Fplumber/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259546410,"owners_count":22874560,"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-11-15T14:17:10.508Z","updated_at":"2025-06-12T23:03:27.150Z","avatar_url":"https://github.com/Signiant.png","language":"Python","readme":"# Plumber\n\nA tool that deletes Bitbucket pipeline build steps that are now obsolete and opens a PR in the given repo.\n\n## How do I get set up?\n\nThis tool requires 3 things to be done before being able to run the script.\n\n### Dependencies\n\nTo install this script's dependencies, run the following command:  \n`pip install -r requirements.txt`\n\n### Environment variables\n\nAs this tool requires authentication to connect to the Bitbucket API, you will need to set 2 environment variables:\n1. BB_USER_ID\n2. BB_APP_PASS\n\n### Configuration\n\nFinally, this tool requires a JSON formatted configuration file. By default, it assumes the filepath to\nbe `./config.json`, but this can be changed using the `-c` argument.\n\nThe config file should be structured as follows:\n```json\n{\n  \"workspace\": \"\u003cstring\u003e\",\n  \"repositories\": [\n    \"\u003cstring\u003e\"\n  ],\n  \"steps\": [\n    {\n      \"name\": \"\u003cstring\u003e\",\n      \"files\": [\n        \"\u003cstring\u003e\"\n      ]\n    }\n  ],\n  \"reviewers\": [\n    {\n      \"account_id\": \"\u003cstring\u003e\"\n    }\n  ]\n}\n```\nUse the following endpoint, replacing all values where needed, to find the account ids of each reviewer:  \nhttps://bitbucket.org/!api/2.0/workspaces/\u003cworkspace_name\u003e/members\n\n# TODO \n- Refactor to utilize asyncio\n- Use regex when finding build steps for deletion\n- Add method of dynamically retrieving reviewer account ids\n- Modify logic to create only one PR per repository if multiple steps are being removed","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigniant%2Fplumber","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsigniant%2Fplumber","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsigniant%2Fplumber/lists"}