Files
Adam Majer 79318dc169 group-review: add env variables
instead of using command-line parameters, we can use env variables
Very helpful for services.
2026-01-05 16:53:30 +01:00
..
2026-01-05 16:53:30 +01:00
2026-01-05 16:53:30 +01:00

Group Review Bot

Areas of responsibility

  1. Is used to handle reviews associated with groups defined in the ProjectGit.

  2. Assumes: workflow-pr needs to associate and define the PR set from which the groups.json is read (Base of the PrjGit PR)

Target Usage

Projects where policy reviews are required.

Configiuration

Groups are defined in the workflow.config inside the project git. They take following options,

{ ... ReviewGroups: [ { "Name": "name of the group user", "Reviewers": ["members", "of", "group"], "Silent": (true, false) -- if true, do not explicitly require review requests of group members }, ], ... }

Requirements

  • Gitea token to:
    • R/W PullRequest
    • R/W Notification
    • R User

Env Variables

The following variables can be used (and override) command line parameters.

  • AUTOGITS_CONFIG - config file location
  • AUTOGITS_URL - Gitea URL
  • AUTOGITS_RABBITURL - RabbitMQ url
  • AUTOGITS_DEBUG - when set, debug level logging enabled

Authentication env variables

  • GITEA_TOKEN - Gitea user token
  • AMQP_USERNAME, AMQP_PASSWORD - username and password for rabbitmq