{"id":20030283,"url":"https://github.com/pycontribs/gri","last_synced_at":"2025-05-05T03:32:48.352Z","repository":{"id":35094555,"uuid":"205845628","full_name":"pycontribs/gri","owner":"pycontribs","description":"Git/Gerrit Review Interface helps you manage change requests from multiple servers.","archived":false,"fork":false,"pushed_at":"2025-04-28T16:51:33.000Z","size":95,"stargazers_count":10,"open_issues_count":6,"forks_count":7,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-28T17:48:47.540Z","etag":null,"topics":["gerrit","gerrit-api","gerrit-cli","gerrit-review-cli","hacktoberfest","python-module","tui"],"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/pycontribs.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":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2019-09-02T11:49:06.000Z","updated_at":"2025-01-14T19:16:00.000Z","dependencies_parsed_at":"2023-11-27T17:52:06.984Z","dependency_job_id":"800a6fa7-dbc5-4255-8c36-80410c925077","html_url":"https://github.com/pycontribs/gri","commit_stats":{"total_commits":73,"total_committers":3,"mean_commits":"24.333333333333332","dds":0.04109589041095896,"last_synced_commit":"8d1ca81150f2137186cdc7e4dbbc5bb55848c4bd"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycontribs%2Fgri","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycontribs%2Fgri/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycontribs%2Fgri/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pycontribs%2Fgri/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pycontribs","download_url":"https://codeload.github.com/pycontribs/gri/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252435560,"owners_count":21747457,"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":["gerrit","gerrit-api","gerrit-cli","gerrit-review-cli","hacktoberfest","python-module","tui"],"created_at":"2024-11-13T09:25:41.000Z","updated_at":"2025-05-05T03:32:47.772Z","avatar_url":"https://github.com/pycontribs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gri : Git Reduced Interface\n\n`gri` is a CLI tool that **lists git reviews** from multiple servers\nin a way that makes easier to to identify which one need you attention.\n\nCurrently supported backends are Gerrit and GitHub but it should be easy to\nadd others if needed.\n\n![screenshot](https://sbarnea.com/ss/Screen-Shot-2020-09-18-10-41-05.06.png)\n\n## Features\n\n* combines results from multiple Gerrit or GitHub servers\n* uses terminal clickable links to make it easy to access these reviews\n* displays important metadata related to reviews in a compressed format\n* reviews are sorted based on probablility of getting merged\n* allows user to abandon very old reviews\n* can be used to query:\n  * already merged reviews\n  * incoming reviews (where you are a reviewer)\n  * reviewes created by other users than yourself\n* produce HTML reports\n\n## Installing\n\n```bash\npip install gri\n```\n\n## Usage\n\nYou can just run `gri`, or `python -m gri` in order to get a list of your\ncurrent reviews, aslo known as outgoing reviews.\n\nGRI uses a simple config file [`~/.config/gri/gri.yaml`][1] but when the file\nis missing, it will try to load servers from [`~/.gertty.yaml`][2] in case you\nhave one.\n\n```console\n$ gri --help\nUsage: gri [OPTIONS] COMMAND1 [ARGS]... [COMMAND2 [ARGS]...]...\n\nOptions:\n  -a, --abandon              Abandon changes (delete for drafts) when they are\n                              \u003e90 days old and with negative score. Requires -f\n                             to perform the action.\n  -z, --abandon-age INTEGER  default=90, number of days for which changes are\n                             subject to abandon\n  -u, --user TEXT            Query another user than self\n  -s, --server TEXT          [0,1,2] key in list of servers, Query a single\n                             server instead of all\n  -o, --output TEXT          Filename to dump the result in, currently only\n                             HTML is supported\n  -f, --force                Perform potentially destructive actions.\n  -d, --debug                Debug mode\n  --help                     Show this message and exit.\n\nCommands:\n  incoming  Incoming reviews (not mine)\n  merged    merged in the last number of days\n  owned     Changes originated from current user (implicit)\n```\n\nThere is also an experimental `grib` command line for quering bugs (issues),\nwhich has almost identical options.\n\n## Configuring\n\nUnless you already have a GerTTY config, here is how to configure the tool:\n\n```yaml\n# ~/.config/gri/gri.yaml\nservers:\n- name: opendev  # server 0, select it with '-s 0'\n  url: https://review.opendev.org/\n- name: rdo  # server 0, select it with '-s 1'\n  url: https://review.rdoproject.org/r/\n  auth-type: basic  # needed only for old gerrit versions\n```\n\nYou may be surprised to observe that the credentials are not stored inside\nthe same file. That is by design and the tool will load them from `~/.netrc`\nfile, which is also the standard way to place network related credentials.\n\n```ini\n# ~/.netrc\n# password is the token generated by gerrit on your user settings page\nmachine review.rdoproject.org login jonhdoe password changeme\n```\n\n## Contributing\n\nAre you missing a feature, just check if there is a bug open for it and add\na new one if not. Once done, you are welcomed to make a PR that implements\nthe missing change.\n\n## Related tools\n\n* [git-review][4] is the git extension for working with gerrit, where I am also\n  one of the core contributors.\n* [gertty](https://opendev.org/ttygroup/gertty) is a very useful tui for gerrit\n  which inspired me but which presents one essential design limitation: it does\n  not work with multiple Gerrit servers.\n* [gerrit-view](https://github.com/Gruntfuggly/gerrit-view) is a vscode plugin\n  that can be installed from [Visual Studio Marketplace][3].\n\n## Notes\n\n1. `gri` name comes from my attempt to find a short name that was starting\n   with **g** (from git/gerrit) and preferably sounds like `cli`.\n\n[1]: https://github.com/pycontribs/gri/blob/master/test/gri.yaml\n[2]: https://opendev.org/ttygroup/gertty/src/branch/master/examples/minimal-gertty.yaml\n[3]: https://marketplace.visualstudio.com/items?itemName=Gruntfuggly.gerrit-view\n[4]: https://docs.openstack.org/infra/git-review/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycontribs%2Fgri","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpycontribs%2Fgri","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpycontribs%2Fgri/lists"}