[scm_request_processor] Make bot more interactive

This commits adds separate processing for comments in
scm_request_processor and adds following commands the bot will react on.

help - prints this help message
retry - retries the failed request processing
valid - can be used by authorized user to mark the request as valid
This commit is contained in:
Michal Konecny 2025-04-02 16:07:50 +02:00
parent 8900a0aff9
commit f8a8c2b68a
4 changed files with 465 additions and 398 deletions

View file

@ -10,6 +10,16 @@ The SCM Request processor accepts few topics emitted by pagure. These topics all
* org.fedoraproject.*.pagure.issue.edit - Issue on pagure is edited
* org.fedoraporject.*.pagure.issue.comment.added - New comment is added to issue
## Supported commands
The SCM Request processor now supports few commands that could be invoked by sending comment
addressed to bot user (releng-bot) in issue opened on https://pagure.io/releng/fedora-scm-requests/
Supported commands:
* help - prints help for commands
* retry - retries the failed request
* valid - validate the request as authorized user
## Flowchart diagram
[Flowchart diagram](./scm_request_processor.png) illustrates the code flow of the SCM Request Processor, what is being validated and what reaction is done if the validation fails.