{"id":43352172,"url":"https://github.com/dimagi/git-build-branch","last_synced_at":"2026-02-02T02:32:38.390Z","repository":{"id":46139166,"uuid":"291961432","full_name":"dimagi/git-build-branch","owner":"dimagi","description":"Utility tool for building Git branches my merging multiple other branches together.","archived":false,"fork":false,"pushed_at":"2025-11-20T17:10:31.000Z","size":83,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":20,"default_branch":"master","last_synced_at":"2025-11-20T18:22:02.607Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"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/dimagi.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":"CONTRIBUTING.rst","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-09-01T09:59:45.000Z","updated_at":"2025-11-20T17:09:25.000Z","dependencies_parsed_at":"2025-07-25T20:41:12.408Z","dependency_job_id":"9fa1453b-4d60-49f4-b6aa-d072d1afbb39","html_url":"https://github.com/dimagi/git-build-branch","commit_stats":{"total_commits":58,"total_committers":5,"mean_commits":11.6,"dds":0.3793103448275862,"last_synced_commit":"04d981aedce7f8b8f73f5afa06762259c3e384f0"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/dimagi/git-build-branch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fgit-build-branch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fgit-build-branch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fgit-build-branch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fgit-build-branch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dimagi","download_url":"https://codeload.github.com/dimagi/git-build-branch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dimagi%2Fgit-build-branch/sbom","scorecard":{"id":343142,"data":{"date":"2025-08-11","repo":{"name":"github.com/dimagi/git-build-branch","commit":"5b3a5c73acb27ba6145948ba9bfecf94a59d1952"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":4.5,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":7,"reason":"9 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 7","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"15 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2022-42986 / GHSA-43fp-rhv2-5gv8","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: PYSEC-2023-177 / GHSA-x7m3-jprg-wc5g","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: PYSEC-2022-43017 / GHSA-qwmp-2cf2-g9g6","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-18T06:25:33.763Z","repository_id":46139166,"created_at":"2025-08-18T06:25:33.763Z","updated_at":"2025-08-18T06:25:33.763Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29001654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T01:32:03.847Z","status":"online","status_checked_at":"2026-02-02T02:00:07.448Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-02-02T02:32:37.814Z","updated_at":"2026-02-02T02:32:38.380Z","avatar_url":"https://github.com/dimagi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"==================\ngit-build-branch\n==================\n\n\n.. image:: https://img.shields.io/pypi/v/git-build-branch.svg\n        :target: https://pypi.python.org/pypi/git-build-branch\n\n\nUtility tool for building Git branches by merging multiple other branches together.\n\n\n* Free software: BSD license\n\nFor guidelines on contributing to the project please read the CONTRIBUTING_ documentation.\n\n.. _CONTRIBUTING: CONTRIBUTING.rst\n\n\nDocumentation\n-------------\nIn some cases it may be desirable to have full control over what code is deployed. This can\nbe accomplished by creating a YAML configuration file to describe what should be included in your branch.\n\nThe format of the file is as follows:\n\n.. code-block:: yaml\n\n    trunk: master\n    name: autostaging  # name of the branch to build\n    branches:  # list of branches to merge into final branch\n      - feature1\n      - feature2\n      - forkowner:feature3 # branch from fork of repository\n    submodules:\n      submodules/module1:\n        branches:\n          - feature1\n          - forkowner:feature2 # branch from fork of repository\n      submodules/module2:\n        trunk: develop\n        branches:\n          - feature2\n\nTo add some safety around this file you should use the ``safe-commit-files`` utility:\n\n.. code-block:: shell\n\n    safe-commit-files --push /path/to/branch_config.yml\n\nBuilding the branch\n~~~~~~~~~~~~~~~~~~~\nThis configuration file can be used to build a deploy branch:\n\n.. code-block:: bash\n\n    git checkout master\n    git-build-branch path/to/branch_config.yml\n\nConflict Resolution\n~~~~~~~~~~~~~~~~~~~\n\nFirst, determine where the conflict lies.\n\na). branch ``foo`` conflicts with ``master``\n\n.. code-block:: shell\n\n    git checkout -b foo origin/foo\n    git pull origin master\n\n    # try to resolve conflict\n\n    git push origin foo\n\nb). branch ``foo`` conflicts with branch ``bar``\n\nYou can't just merge foo into bar or vice versa, otherwise the PR\nfor foo will contain commits from bar.  Instead make a third,\nconflict-resolution branch:\n\n.. code-block:: shell\n\n    git checkout -b foo+bar --no-track origin/foo\n    git pull origin bar\n\n    # try to resolve conflict\n\n    git push origin foo+bar\n\nNow add the branch ``foo+bar`` to ``branch_config.yml`` and move branches foo and\nbar to right below it.\n\nLater on branch B gets merged into master and removed from ``branch_config.yml``.\n\nPerhaps the person who removes it also notices the A+B and does the\nfollowing. Otherwise anyone who comes along and sees A+B but not both\nbranches can feel free to assume the following need to be done.\n\n* Merge A+B into A. Since B is now gone, you want to merge the\n  resolution into A, otherwise A will conflict with master.\n\n* Remove A+B from ``branch_config.yml``. It's no longer necessary since it's\n  now a subset of A.\n\nIf you are unsure of how to resolve a conflict, notify the branch owner.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimagi%2Fgit-build-branch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdimagi%2Fgit-build-branch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdimagi%2Fgit-build-branch/lists"}