Skip to content

v7.0.0 - Modularizing the architecture, improving template flexibility, enhancing sticky comment support

Choose a tag to compare

@Malnati Malnati released this 05 Dec 16:08
· 36 commits to main since this release
Immutable release. Only release title and notes can be modified.
79af588

These changes updates the action.yml to Malnati/pr-comment@v7.0.0 for the Malnati/pr-comment GitHub Action, introducing a major version upgrade to v7.0.0. The changes focus on modularizing the architecture, improving template flexibility, enhancing sticky comment support, and providing better input validation and error handling. The inputs, steps, and documentation have been refactored for clarity and extensibility, with many descriptions now in Portuguese.

Major Version & Architecture Update:

  • Upgraded the action from v6.1.0 to v7.0.0, with a modular architecture and improved documentation.

Template System Enhancements:

  • Added support for custom Markdown templates via template_path and direct string templates via template_string, with priority for direct string input. Also introduced a variables input for extra JSON-based substitutions.
  • Refactored template rendering to use environment variable substitution and improved logic for selecting and processing the template source.

Sticky Comment Improvements:

  • Enhanced sticky comment logic by searching for existing comments using a unique message_id and updating them if found, otherwise creating new ones. This logic is now more robust and clearly separated in the workflow steps.

Input Validation & Permissions:

  • Improved input validation and permissions checks, including early failure on missing required inputs and better API access diagnostics for the GitHub token.

Error Handling & User Feedback:

  • Refined error messages and user feedback throughout the workflow, including clearer success/failure messages and step grouping for easier debugging.