The project
The moderator does not come immediately. Therefore, to validate forms and perform operations
Features:
- The action is controlled using a YAML config and Markdown templates;
- A block is added to each Markdown template that describes the conditions for correctly filling out the form and the desired actions;
- A configuration file with global settings is added;
- Forms are made up of sections. There are 2 types of sections:
- Free text. The action can check that the user has bothered to fill in something. The meaning of the text is not automatically checked.
- Checkboxes. You can require n checkboxes to be filled, such that 0 {= m1 {= n {= m2 {= total number of checkboxes in the section. The action checks that the checkboxes match the checkboxes in the template. If the flags are set correctly, the action can hang tags on the issue, resp. checkboxes.
- If the form is filled out incorrectly, then the action instructs the user how to fill it out correctly and hangs a special label.
- If the form is not fixed within a certain time, then the action can close the issue. Automatic banning of users, deleting and moving an issue has not yet been implemented due to the lack of an official API for the necessary actions and problems with state storage.
- If the problem is resolved, the action removes the label.
- Action response templates are, of course, configurable.
Source: opennet.ru