gerrit-owners-cli
Print Gerrit Code Owners groups for a file.
Installation
python -m pip install gerrit-owners-cli
Requirements
Run the command inside a Git repository with:
gitreview.hostnameconfigured in Git config;gitreview.usernameconfigured in Git config, unless the credential helper provides it;- a Git credential helper that can provide the HTTPS password;
- a
.gitreviewfile with[gerrit] project=....
The password is read through git credential fill and is never a command-line argument.
Usage
gerrit-owners path/to/file
gerrit-owners path/to/file --branch release/1.0
gerrit-owners path/to/file --json
The default branch is master.
The command prints owner groups and resolves code owner account IDs to names and emails. Inherited and global owner groups included by the API are printed too. Account lookup failures fall back to the account ID.
Use --json to print the complete Gerrit response, including code_owners account IDs and
scoring data alongside code_owner_configs.
Example:
Owner groups:
- project-a:team-a
- project-b:team-b
Code owners:
- Example User <user@example.com>
Development
python -m pip install -e '.[dev]'
pytest
ruff check .
python -m build
Releases
The version is derived from Git tags by setuptools-scm. Create a tag such as v0.1.0 and
publish a GitHub release. The included workflow publishes the distribution to PyPI through
Trusted Publishing.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gerrit_owners_cli-0.1.3.tar.gz.
File metadata
- Download URL: gerrit_owners_cli-0.1.3.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e046fe4d6d3145431f039b0ceee32bff186b595a5ac64088aad91a8e936288aa
|
|
| MD5 |
e0674b89d41249cc021197f096921af4
|
|
| BLAKE2b-256 |
89d26f8b6a18f320eaaeff7cfffbd3a0b5c967fb996f1fbc0c854921fba49cfb
|
Provenance
The following attestation bundles were made for gerrit_owners_cli-0.1.3.tar.gz:
Publisher:
build.yml on kotborealis/gerrit-owners-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gerrit_owners_cli-0.1.3.tar.gz -
Subject digest:
e046fe4d6d3145431f039b0ceee32bff186b595a5ac64088aad91a8e936288aa - Sigstore transparency entry: 2335496938
- Sigstore integration time:
-
Permalink:
kotborealis/gerrit-owners-cli@555772a257fb067e7c0975c24d960958f498e215 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/kotborealis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@555772a257fb067e7c0975c24d960958f498e215 -
Trigger Event:
release
-
Statement type:
File details
Details for the file gerrit_owners_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: gerrit_owners_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 7.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80ea41155e8eb1743815a78c240620d7c13c1da2ce64d5f433e29ce295ecbb2d
|
|
| MD5 |
5b8b677526a79b6961f2069f7d978b91
|
|
| BLAKE2b-256 |
2e74ebeec86d190b3987cd384fba00dde0e581a1f098176065f894f294f6a2f3
|
Provenance
The following attestation bundles were made for gerrit_owners_cli-0.1.3-py3-none-any.whl:
Publisher:
build.yml on kotborealis/gerrit-owners-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
gerrit_owners_cli-0.1.3-py3-none-any.whl -
Subject digest:
80ea41155e8eb1743815a78c240620d7c13c1da2ce64d5f433e29ce295ecbb2d - Sigstore transparency entry: 2335496952
- Sigstore integration time:
-
Permalink:
kotborealis/gerrit-owners-cli@555772a257fb067e7c0975c24d960958f498e215 -
Branch / Tag:
refs/tags/v0.1.3 - Owner: https://github.com/kotborealis
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@555772a257fb067e7c0975c24d960958f498e215 -
Trigger Event:
release
-
Statement type: