instead of using command-line parameters, we can use env variables Very helpful for services.
Group Review Bot
Areas of responsibility
-
Is used to handle reviews associated with groups defined in the ProjectGit.
-
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 locationAUTOGITS_URL- Gitea URLAUTOGITS_RABBITURL- RabbitMQ urlAUTOGITS_DEBUG- when set, debug level logging enabled
Authentication env variables
GITEA_TOKEN- Gitea user tokenAMQP_USERNAME,AMQP_PASSWORD- username and password for rabbitmq