Sticky Note Automate

For Sticky Note, automate your code review process by integrating with GitLab to filter changes, generate review comments, and post discussions seamlessly. This workflow enhances collaboration, saves time, and ensures thorough code evaluations, improving overall code quality.

7/8/2025
14 nodes
Complex
webhookcomplexsticky notesplitoutlangchainadvancedlogicconditionalapiintegration
Categories:
Complex WorkflowWebhook Triggered
Integrations:
Sticky NoteSplitOutLangChain

Target Audience

This workflow is designed for:
- Developers and Software Engineers: Who need to automate code review processes in GitLab.
- Project Managers: Seeking to streamline feedback on code changes.
- DevOps Teams: Aiming to enhance CI/CD pipelines with automated reviews.
- Quality Assurance Teams: Interested in ensuring code quality through automated checks.

Problem Solved

This workflow addresses the challenge of manually reviewing code changes in GitLab. It automates the review process by:
- Filtering and Analyzing Changes: Automatically retrieves and processes changes from merge requests.
- Generating Review Comments: Utilizes AI to provide structured feedback on code modifications, saving time and reducing human error.
- Integrating with GitLab: Posts discussions directly in the merge request, ensuring seamless communication among team members.

Workflow Steps

  • Webhook Trigger: The workflow starts when a webhook is triggered by a merge request event in GitLab.
    2. Need Review Check: It checks if the merge request contains comments that need review.
    3. Get Changes: Retrieves the changes made in the merge request using the GitLab API.
    4. Split Out Changes: Splits the changes into individual files for detailed analysis.
    5. Skip File Changes: Evaluates whether to skip files based on certain conditions (e.g., renamed or deleted files).
    6. Parse Last Diff Line: Analyzes the last line of the diff to identify specific changes.
    7. Code Extraction: Extracts original and new code from the diff for review.
    8. AI Review Generation: Uses a language model to generate a review comment based on the extracted code.
    9. Post Discussions: Posts the AI-generated review comments back to the merge request in GitLab.
  • Customization Guide

    Users can customize this workflow by:
    - Modifying Webhook URL: Change the webhook path to match your GitLab project settings.
    - Adjusting Review Criteria: Update the conditions in the 'Need Review' node to fit specific project needs.
    - Customizing AI Prompts: Edit the prompt in the 'Basic LLM Chain' node to alter the tone or style of the review comments.
    - Adding More Nodes: Integrate additional nodes for more complex workflows, such as notifications or additional checks.