{"id":15003446,"url":"https://github.com/meffie/git-gerrit","last_synced_at":"2025-08-31T12:35:13.751Z","repository":{"id":37978616,"uuid":"131209725","full_name":"meffie/git-gerrit","owner":"meffie","description":"Command line tools for gerrit code review","archived":false,"fork":false,"pushed_at":"2025-08-26T14:57:55.000Z","size":192,"stargazers_count":7,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-30T10:51:51.310Z","etag":null,"topics":["gerrit","gerrit-cli","git"],"latest_commit_sha":null,"homepage":"","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/meffie.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2018-04-26T20:55:48.000Z","updated_at":"2025-08-25T17:55:15.000Z","dependencies_parsed_at":"2024-05-29T21:29:34.417Z","dependency_job_id":null,"html_url":"https://github.com/meffie/git-gerrit","commit_stats":{"total_commits":75,"total_committers":1,"mean_commits":75.0,"dds":0.0,"last_synced_commit":"8cdc8d75803870eb27bb8eae3c3ed905ec44ab5c"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/meffie/git-gerrit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meffie%2Fgit-gerrit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meffie%2Fgit-gerrit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meffie%2Fgit-gerrit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meffie%2Fgit-gerrit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meffie","download_url":"https://codeload.github.com/meffie/git-gerrit/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meffie%2Fgit-gerrit/sbom","scorecard":{"id":634863,"data":{"date":"2025-08-11","repo":{"name":"github.com/meffie/git-gerrit","commit":"eb3e29275cbaba997fd68aff5545af05fd14bf74"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"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":"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":"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 0/30 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":-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":"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":-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":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"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":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"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.txt: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":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"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"}}]},"last_synced_at":"2025-08-21T08:51:38.182Z","repository_id":37978616,"created_at":"2025-08-21T08:51:38.182Z","updated_at":"2025-08-21T08:51:38.182Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272982738,"owners_count":25025984,"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","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"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":["gerrit","gerrit-cli","git"],"created_at":"2024-09-24T18:58:30.611Z","updated_at":"2025-08-31T12:35:13.701Z","avatar_url":"https://github.com/meffie.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"git-gerrit\n==========\n\n**git-gerrit** is command line tool for the `Gerrit code review system`_, with an\nemphasis on the Gerrit legacy numerical identifiers.  The heavy lifting is done\nwith the **pygerrit2** package to access the Gerrit REST API.\n\n.. _Gerrit code review system: https://www.gerritcodereview.com/\n\n**git-gerrit** is compatible with Python 2 and Python 3.\n\nCommands\n========\n\n.. code-block:: console\n\n    git gerrit-checkout          Fetch then checkout by gerrit number.\n    git gerrit-cherry-pick       Cherry pick from upstream branch by gerrit number to make a new gerrit.\n    git gerrit-fetch             Fetch by gerrit number.\n    git gerrit-help              List commands.\n    git gerrit-install-hooks     Install git hooks to create gerrit change-ids.\n    git gerrit-log               Show oneline log with gerrit numbers.\n    git gerrit-query             Search gerrit.\n    git gerrit-update            Update gerrits matching search terms.\n    git gerrit-unpicked          Find gerrit numbers on upstream branch not cherry picked.\n    git gerrit-version           Print version and exit.\n\nInstallation\n============\n\n.. _pipx: https://pipx.pypa.io/stable/\n\nInstall with `pipx`_::\n\n    $ pipx install git-gerrit\n\nBe sure your ``PATH`` has been updated to run **pipx** installed commands::\n\n    $ pipx ensurepath\n\nIf **pipx** is not available, then install in a project local virtualenv::\n\n    $ cd \u003cmy-project-directory\u003e\n    $ python3 -m venv .venv\n    $ source .venv/bin/activate\n    (.venv) $ pip install -U pip setuptools\n    (.venv) $ pip install git-gerrit\n\n\nSetup\n=====\n\nSet the Gerrit host and project names in your local git repo under Gerrit code\nreview::\n\n    $ cd \u003cmy-project-directory\u003e\n    $ git config gerrit.host \u003cgerrit-hostname\u003e\n    $ git config gerrit.project \u003cgerrit-project\u003e\n\nInstall the Gerrit provided ``commit-msg`` git-hook and the git-gerrrit ``prepare-commit-msg``\ngit hook::\n\n    $ git gerrit-install-hooks\n\nExamples\n========\n\nSetup a local OpenAFS git repo::\n\n    $ git clone git://git.openafs.org/openafs.git # (if not already cloned)\n    $ cd openafs\n    $ git config --local gerrit.host gerrit.openafs.org\n    $ git config --local gerrit.project openafs\n    $ git gerrit-install-hooks\n\nFind open gerrits on the master branch::\n\n    $ git gerrit-query is:open branch:master\n    13030 redhat: Make separate debuginfo for kmods work with recent rpm\n    13031 redhat: PACKAGE_VERSION macro no longer exists\n    13021 autoconf: update curses.m4\n\nFind the gerrit numbers and current patchset numbers of the gerrits open on the\n`master` branch::\n\n    $ git gerrit-query --format='{number},{patchset} {subject}' is:open branch:master\n    13832,9 IPV6 prep: introduce helpers for formatting network addrs\n    13926,2 afs: client read-only mode\n    13927,2 Do not build shared-only libs for --disable-shared\n\nFind links to the open gerrits on the `master` branch::\n\n    $ git gerrit-query --format='{url} {subject}' is:open branch:master\n    https://gerrit.example.com/13832 IPV6 prep: introduce helpers for formatting network addrs\n    https://gerrit.example.com/13926 afs: client read-only mode\n    https://gerrit.example.com/13927 Do not build shared-only libs for --disable-shared\n\nFind gerrits with subjects containing the term 'debuginfo'::\n\n    $ git gerrit-query debuginfo\n    13030 redhat: Make separate debuginfo for kmods work with recent rpm\n    13029 redhat: Create unique debuginfo packages for kmods\n    12818 redhat: separate debuginfo package for kmod rpm\n\nFind the branch names of gerrits with the subject containing the term 'debuginfo'::\n\n    $ git gerrit-query --format='{branch:\u003e20s} {_number} {subject}' debuginfo\n                  master 13030 redhat: Make separate debuginfo for kmods work with recent rpm\n    openafs-stable-1_6_x 13029 redhat: Create unique debuginfo packages for kmods\n    openafs-stable-1_6_x 12818 redhat: separate debuginfo package for kmod rpm\n\nList the gerrit topics on a branch::\n\n    $ git gerrit-query --format='{topic}' is:open branch:master | sort -u\n    afsd-cache-verify\n    AFS-OSD-integration\n    afs_read-EOF\n\nShow gerrit submissions on the master branch I need to review::\n\n    $ git gerrit-query branch:master status:open NOT label:Code-Review=-2 NOT reviewer:tycobb@yoyodyne.com\n    ...\n\nFetch a gerrit by number::\n\n    $ git gerrit-fetch 12977\n\nCheckout a gerrit by number::\n\n    $ git gerrit-checkout 13000\n\nCherry-pick a gerrit onto the current branch::\n\n    $ git gerrit-fetch --no-branch 13001 \u0026\u0026 git cherry-pick FETCH_HEAD\n\nShow gerrit numbers in the checked out branch in the local git repo::\n\n    $ git gerrit-log\n    12958 f47cb2d Suppress statement not reached warnings under Solaris Studio\n    12957 306f0f3 afs: squash empty declaration warning\n    12955 e006609 libafs: git ignore build artifacts on Solaris\n\nShow gerrit numbers by a revision in the local git repo::\n\n    $ git gerrit-log openafs-stable-1_8_0\n    12953 a08327f Update NEWS for 1.8.0 final release\n    12938 acb0e84 afs_pioctl: avoid -Wpointer-sign\n    12950 b73863b LINUX: fix RedHat 7.5 ENOTDIR issues\n\nShow gerrit numbers by a range of revisions in the local git repo::\n\n    $ git gerrit-log 607eba34d..origin/openafs-stable-1_8_x\n    13268 554176bd2 LINUX: Update to Linux struct iattr-\u003eia_ctime to timespec64 with 4.18\n    13266 eb107ed5c Make OpenAFS 1.8.1\n    13265 8de978420 Update NEWS for 1.8.1\n\nShow just the gerrit numbers and subjects in the local git repo::\n\n    $ git gerrit-log --format='{number}: {subject}'\n    12958: Suppress statement not reached warnings under Solaris Studio\n    12957: afs: squash empty declaration warning\n    12955: libafs: git ignore build artifacts on Solaris\n\nShow the commits on the master branch which have not been cherry-picked on to\nthe stable branch. (Gerrits may already exists for them.)::\n\n    $ git gerrit-unpicked -u origin/master origin/openafs-stable-1_8_x\n    13656 4eeed830fa31b7b8b5487ba619acbc8d30642aaa afscp: Link against opr/roken/hcrypto\n    13659 f5f59cd8d336b153e2b762bb7afd16e6ab1b1ee2 util: serverLog using memory after free\n    13665 1210a8d6d96db2d84595d35ef81ec5d176de05e8 LINUX: Run the 'sparse' checker if available\n    ...\n\nAdd reviewers to the **foobar** topic::\n\n    $ git gerrit-update --add-reviewer=\"ty@example.com\" branch:master is:open topic:foobar\n\nAbandon all of the changes for the **baz** topic::\n\n    $ git gerrit-update --abandon --message=\"nevermind\" branch:master topic:baz\n\n\nUsing git aliases\n=================\n\nComplex queries can be saved as git aliases. For example to create an alias\ncalled ``gerrit-assigned`` to show the gerrits which have not been reviewed\nyet::\n\n    [alias]\n    # Show assigned reviews.\n    # (Replace \u003cgerrit-account-id\u003e with your gerrit account number.)\n    gerrit-assigned = gerrit-query \\\n      --format='\"{url} ({branch}) {subject}\"' \\\n      is:open \\\n      AND reviewer:\u003cgerrit-account-id\u003e \\\n      AND label:Code-Review=0,\u003cgerrit-account-id\u003e \\\n      AND NOT owner:\u003cgerrit-account-id\u003e \\\n      AND NOT label:Code-Review=-2\n\nSee Also\n========\n\nSee the `git-review`_ project for a more complete git/gerrit workflow tool.\n\n.. _git-review: https://www.mediawiki.org/wiki/Gerrit/git-review\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeffie%2Fgit-gerrit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeffie%2Fgit-gerrit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeffie%2Fgit-gerrit/lists"}