Skip to main content

Tool to stay up to date with your reviews on GitLab – Don't let a comment slip you by

Project description

Reviewcheck logo

Reviewcheck

Reviewcheck is a tool to stay up to date with your reviews on GitLab. You can configure it to use any GitLab instance you have access to. The tool checks all open merge requests in the repositories chosen by you, and lets you know if there are open threads that need your attention.

Reviewcheck is in active development.

Installation

Reviewcheck depends on Python >=3.8.1. There are multiple ways to install it. The simplest is with pipx.

With pipx

Reviewcheck can be installed with the following command:

$ pipx install reviewcheck

With Poetry

If you are a developer, the best way to test changes you make without having to create a Python package and install it is to clone the repository and run poetry run reviewcheck from within it. You will need to have poetry installed. The process looks as follows:

$ pipx install poetry
$ git clone https://github.com/volvo-cars/Reviewcheck
$ cd reviewcheck
$ poetry install
$ poetry run reviewcheck

With Docker

There's also a Dockerfile available to use. Currently it does not get uploaded anywhere, so you'll need to build it locally and then run it. Example commands:

$ docker build -t reviewcheck .
$ docker run -tv ~/.config/reviewcheckrc:/root/.config/reviewcheckrc reviewcheck

Getting Started

Reviewcheck has a terminal-based user interface. You run it on the command line with reviewcheck. The first time you run it, you will be able to interactively configure it to find your reviews.

After that, any time you run reviewcheck, you will be presented with a list of threads from any MR where your response is needed. You can configure how verbose the output is with options. See the --help option for more information about that.

Whenever there is a new review comment that wasn't present the last time Reviewcheck fetched comments, you will receive a desktop notification. An example:

screenshot of Reviewcheck desktop notification

Notifications are sent using notify-send so the notification should look like any other desktop notification on your system. They will likely differ in visual appearance from the example image.

Configuration

The first time you run Reviewcheck, the interactive configuration will start. If you ever want to reconfigure it, just run reviewcheck configure. You can also modify the configuration file directly. Unless you configured a separate configurations directory, it should be in ~/.config/reviewcheckrc.

You will be asked for an access token. It can be created in your GitLab settings, under "User settings" > "Access Token". It should have at least the read_api access.

You will also be asked for your "GitLab URL". For the main GitLab instance, it would be https://gitlab.com but if you have your own instance, use that instead. Do not add a slash at the end.

There is the possibility to add a Jira base URL. It is used if you have Jira ticket referenced in your commits. An example would be https://jira.example.com.

Finally, you should fill in the project IDs of projects where you want to track merge requests. This can be a bit tricky to find and you might need to consult the GitLab documentation. It may be under the title of your repository. It may also be to the right of the title, under the three-dots menu.

After that, you're all set.

FAQ

How do I configure Reviewcheck?
The first time you run `reviewcheck`, the interactive configuration will start. You can rerun it with `reviewcheck configure`. If you know what you're doing, you may also edit the configuration file directly. You'll find the configuration file `reviewcheckrc` in your configuration files directory, usually `~/.config/`.
Will you support other software hosting pages than GitLab?
Yes! We hope to support Gerrit in the near future and Gitea and GitHub in the far future.
What triggers the desktop notifications?
When Reviewcheck is run and a new message is discovered in a thread that Reviewcheck judges you should respond to, you will get a desktop notification containing the new message. This may be useful when you're running in a loop with the `--refresh` option.
Why are you asking for a JIRA URL?
This is only relevant if your organization uses JIRA and tags merge requests with the JIRA ticket number. It will help Reviewcheck provide you with a link to the ticket connected to the merge request. Please report a bug if your organization uses JIRA but the current system doesn't work for you.
How can I get regular updates without having to remember to run Reviewcheck?
You may benefit from running Reviewcheck with the `--refresh` option. It will check for new review data at a regular interval of your choosing. For example. if you run `reviewcheck --refresh 10`, you will get a new report every 10 minutes. You can even keep Reviewcheck running in the background this way, since you get desktop notifications any time there is a new message that needs your attention.

Support

For support or other queries, contact project owner Simon Bengtsson or project maintainer Pontus Laos.

Contributing

See the contributing guide for detailed instructions on how to get started with this project.

Code of Conduct

This project adheres to the Code of Conduct. By participating, you are expected to honor this code.

License

This repository is licensed under Apache License 2.0 © 2022 Volvo Cars.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reviewcheck-0.7.0.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

reviewcheck-0.7.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file reviewcheck-0.7.0.tar.gz.

File metadata

  • Download URL: reviewcheck-0.7.0.tar.gz
  • Upload date:
  • Size: 20.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for reviewcheck-0.7.0.tar.gz
Algorithm Hash digest
SHA256 c774403ff34b2cfb501e7c3fa507e2df62cdf8e1f59e1c2c78c0d788737575db
MD5 74bfcf558ce4e9498faecc773ba44fff
BLAKE2b-256 2d98a6045652d332c1f1205d76db29abfe742aaecc16c5c2744408c60f5f0d7e

See more details on using hashes here.

File details

Details for the file reviewcheck-0.7.0-py3-none-any.whl.

File metadata

  • Download URL: reviewcheck-0.7.0-py3-none-any.whl
  • Upload date:
  • Size: 22.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.10.12 Linux/6.2.0-1018-azure

File hashes

Hashes for reviewcheck-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 62a75823f6d0145924cf9056276c8f49341e2cbf08fdffb2308f0c8089af249a
MD5 d3805cbb495eee81d07110f84ff560ab
BLAKE2b-256 f1d8414c492d450a3c6197f0925e89ddfabe11a4b6caf5a7d33ce2c8fc52d3e5

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page