PR Comment Pro
Version updated for https://github.com/Malnati/pr-comment to version v8.0.0.
- This action is used across all versions by 1 repositories.
Go to the GitHub Marketplace to find the latest changes.
Release notes
Malnati/pr-comment@v8.0.0 updates the GitHub Action Malnati/pr-comment from version 7.1.0 to 8.0.0 and refactors the input and template variable handling for posting comments on pull requests. The main changes focus on simplifying how variables are passed to templates, improving raw body handling, and enhancing validation and messaging for users.
Template and variable handling:
- Removed individual template variable inputs (
header_title,header_subject,header_actor,body_message,footer_result,footer_advise) fromaction.yml, shifting variable management to environment variables and allowing dynamic variable substitution via envsubst. - Improved detection and messaging for template variables: now, if a template file is present, the action scans for variables and instructs users on how to pass them using a
variablesblock, making the usage clearer and more flexible.
Raw body mode improvements:
- Enhanced validation for raw body mode (
use_raw_body=true): the action now checks if theBODY_MESSAGEenvironment variable is set and provides clear error messages if not, ensuring more robust input handling. - Updated all references and messaging to use
BODY_MESSAGEfrom the environment, instead of the previous input-based approach. [1] [2] [3]
Sticky comment logic:
- Changed sticky comment search to look for a hidden comment ID (
pr-comment-id:$MSG_ID) in the comment body, improving reliability and consistency in updating existing comments.
General improvements and cleanup: