{"id":35226124,"url":"https://github.com/getpatchwork/git-pw","last_synced_at":"2026-04-09T05:32:03.751Z","repository":{"id":46768570,"uuid":"44945068","full_name":"getpatchwork/git-pw","owner":"getpatchwork","description":"A tool for integrating Git with Patchwork, the web-based patch tracking system","archived":false,"fork":false,"pushed_at":"2025-04-12T08:57:12.000Z","size":362,"stargazers_count":35,"open_issues_count":13,"forks_count":20,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-02-21T02:30:32.978Z","etag":null,"topics":["cli","developer-tools","git","patchwork"],"latest_commit_sha":null,"homepage":null,"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/getpatchwork.png","metadata":{"files":{"readme":"README.rst","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,"zenodo":null}},"created_at":"2015-10-26T04:01:39.000Z","updated_at":"2025-07-16T03:25:14.000Z","dependencies_parsed_at":"2023-02-09T15:45:44.864Z","dependency_job_id":"e3b61b4b-8d96-4600-9585-09194d2bb1f8","html_url":"https://github.com/getpatchwork/git-pw","commit_stats":{"total_commits":268,"total_committers":10,"mean_commits":26.8,"dds":0.04477611940298509,"last_synced_commit":"9d52062e6cb733a2837a8d5df31f6744638a7508"},"previous_names":[],"tags_count":32,"template":false,"template_full_name":null,"purl":"pkg:github/getpatchwork/git-pw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpatchwork%2Fgit-pw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpatchwork%2Fgit-pw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpatchwork%2Fgit-pw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpatchwork%2Fgit-pw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/getpatchwork","download_url":"https://codeload.github.com/getpatchwork/git-pw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/getpatchwork%2Fgit-pw/sbom","scorecard":{"id":424521,"data":{"date":"2025-08-11","repo":{"name":"github.com/getpatchwork/git-pw","commit":"8d65b8bea69b08ce8a4c510a1458f8dd22de1401"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 2/27 approved changesets -- score normalized to 0","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/ci.yaml:1","Info: no jobLevel write permissions found"],"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"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":"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":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:50: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:83: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yaml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yaml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/getpatchwork/git-pw/ci.yaml/main?enable=pin","Warn: pipCommand not pinned by hash: .github/workflows/ci.yaml:21","Warn: pipCommand not pinned by hash: .github/workflows/ci.yaml:38","Warn: pipCommand not pinned by hash: .github/workflows/ci.yaml:55","Warn: pipCommand not pinned by hash: .github/workflows/ci.yaml:79","Info:   0 out of  11 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   2 third-party GitHubAction dependencies pinned","Info:   0 out of   4 pipCommand dependencies pinned"],"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":"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":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"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":0,"reason":"Project has not signed or included provenance with any releases.","details":["Warn: release artifact 2.6.0 not signed: https://api.github.com/repos/getpatchwork/git-pw/releases/137417421","Warn: release artifact 2.5.0 not signed: https://api.github.com/repos/getpatchwork/git-pw/releases/103468279","Warn: release artifact 2.4.1 not signed: https://api.github.com/repos/getpatchwork/git-pw/releases/102194222","Warn: release artifact 2.6.0 does not have provenance: https://api.github.com/repos/getpatchwork/git-pw/releases/137417421","Warn: release artifact 2.5.0 does not have provenance: https://api.github.com/repos/getpatchwork/git-pw/releases/103468279","Warn: release artifact 2.4.1 does not have provenance: https://api.github.com/repos/getpatchwork/git-pw/releases/102194222"],"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":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-176 / GHSA-3pqx-4fqf-j49f","Warn: Project is vulnerable to: PYSEC-2020-96 / GHSA-6757-jp84-gxfx","Warn: Project is vulnerable to: PYSEC-2021-142 / GHSA-8q59-q68h-6hv4","Warn: Project is vulnerable to: PYSEC-2014-14 / GHSA-652x-xj99-gmcc","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2014-13 / GHSA-cfj3-7x9c-4p3h","Warn: Project is vulnerable to: PYSEC-2018-28 / GHSA-x84v-xcm2-53pg"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci.yaml:63"],"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":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 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-19T01:57:40.409Z","repository_id":46768570,"created_at":"2025-08-19T01:57:40.409Z","updated_at":"2025-08-19T01:57:40.409Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31587798,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"online","status_checked_at":"2026-04-09T02:00:06.848Z","response_time":112,"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":["cli","developer-tools","git","patchwork"],"created_at":"2025-12-30T01:08:42.793Z","updated_at":"2026-04-09T05:32:03.744Z","avatar_url":"https://github.com/getpatchwork.png","language":"Python","readme":"======\ngit-pw\n======\n\n.. NOTE: If editing this, be sure to update the line numbers in 'doc/index'\n\n.. image:: https://badge.fury.io/py/git-pw.svg\n   :target: https://badge.fury.io/py/git-pw\n   :alt: PyPi Status\n\n.. image:: https://readthedocs.org/projects/git-pw/badge/?version=latest\n   :target: http://git-pw.readthedocs.io/en/latest/?badge=latest\n   :alt: Documentation Status\n\n.. image:: https://github.com/getpatchwork/git-pw/actions/workflows/ci.yaml/badge.svg\n   :target: https://github.com/getpatchwork/git-pw/actions/workflows/ci.yaml\n   :alt: Build Status\n\n*git-pw* is a tool for integrating Git with `Patchwork`__, the web-based patch\ntracking system.\n\n.. important::\n\n   `git-pw` only supports Patchwork 2.0+ and REST API support must be enabled\n   on the server end. You can check for support by browsing ``/about`` for your\n   given instance. If this page returns a 404, you are using Patchwork \u003c 2.0.\n\n   The `pwclient`__ utility can be used to interact with older Patchwork\n   instances or instances with the REST API disabled.\n\n.. __: http://jk.ozlabs.org/projects/patchwork/\n.. __: https://patchwork.ozlabs.org/help/pwclient/\n\nInstallation\n------------\n\nThe easiest way to install *git-pw* and its dependencies is using ``pip``. To\ndo so, run:\n\n.. code-block:: bash\n\n   $ pip install git-pw\n\nYou can also install *git-pw* manually. First, install the required\ndependencies.  On Fedora, run:\n\n.. code-block:: bash\n\n   $ sudo dnf install python3-requests python3-click python3-pbr \\\n       python3-arrow python3-tabulate python3-yaml\n\nOn Ubuntu, run:\n\n.. code-block:: bash\n\n   $ sudo apt-get install python3-requests python3-click python3-pbr \\\n       python3-arrow python3-tabulate python3-yaml\n\nOnce dependencies are installed, clone this repo and install with ``pip``:\n\n.. code-block:: bash\n\n   $ git clone https://github.com/getpatchwork/git-pw\n   $ cd git-pw\n   $ pip install --user .\n\nGetting Started\n---------------\n\nTo begin, you'll need to configure Git settings appropriately. The following\nsettings are **required**:\n\n``pw.server``\n  The URL for the Patchwork instance's API. This should include the API\n  version::\n\n      https://patchwork.ozlabs.org/api/1.3\n\n  You can discover the API version supported by your instance by comparing the\n  server version, found at ``/about``, with the API versions provided in the\n  `documentation`__. For example, if your server is running Patchwork version\n  3.2.x, you should use API version 1.3.\n\n  .. __: https://patchwork.readthedocs.io/en/stable-3.2/api/rest/#rest-api-versions\n\n``pw.project``\n  The project name or list-id. This will appear in the URL when using the web\n  UI::\n\n      https://patchwork.ozlabs.org/project/{project_name}/list/\n\nFor read-write access, you also need authentication - you can use either API\ntokens or a username/password combination:\n\n``pw.token``\n  The API token for your Patchwork account.\n\n``pw.username``\n  The username for your Patchwork account.\n\n``pw.password``\n  The password for your Patchwork account.\n\nIf only read-only access is desired, credentials can be omitted.\n\nThe following settings are **optional** and may need to be set depending on\nyour Patchwork instance's configuration:\n\n``pw.states``\n  The states that can be applied to a patch using the ``git pw patch update``\n  command. Should be provided in slug form (``changes-requested`` instead of\n  ``Changes Requested``). Only required if your Patchwork instance uses\n  non-default states.\n\nYou can set these settings using the ``git config`` command. This should be\ndone in the repo in which you intend to apply patches. For example, to\nconfigure the Patchwork project, run:\n\n.. code-block:: bash\n\n   $ git config pw.server 'https://patchwork.ozlabs.org/api/1.1/'\n   $ git config pw.project 'patchwork'\n\nDevelopment\n-----------\n\nIf you're interested in contributing to *git-pw*, first clone the repo:\n\n.. code-block:: bash\n\n   $ git clone https://github.com/getpatchwork/git-pw\n   $ cd git-pw\n\nCreate a *virtualenv*, then install the package in `editable`__ mode:\n\n.. code-block:: bash\n\n   $ virtualenv .venv\n   $ source .venv/bin/activate\n   $ pip install --editable .\n\n.. __: https://pip.pypa.io/en/stable/reference/pip_install/#editable-installs\n\nDocumentation\n-------------\n\nDocumentation is available on `Read the Docs`__\n\n.. __: https://git-pw.readthedocs.org/\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetpatchwork%2Fgit-pw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgetpatchwork%2Fgit-pw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgetpatchwork%2Fgit-pw/lists"}