chore: move flow prompts to system
and user
folders
What does this merge request do and why?
First step towards Add self-hosted prompts for flows (#1582). We need this refactoring first so that gpt
and claude_3
prompts (for self-hosted models) for these features can be added in easily in a follow-up MR.
This change refactors AI prompt templates by extracting repeated content into reusable template files. Instead of having the same prompt text duplicated across multiple configuration files, the code now uses a template system where common instructions are stored in separate .jinja
files and referenced using {% include %}
statements. This makes the codebase more maintainable by eliminating duplication - when prompt text needs to be updated, it only needs to be changed in one place rather than multiple files. The change affects prompts for code review scanning, commit message generation, and pipeline failure analysis, converting them all to use this new modular template approach.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed. -
If this change requires executor implementation: verified that issues/MRs exist for both Go executor and Node executor or confirmed that changes are backward-compatible and don't break existing executor functionality.
Closes #1582