daun / playwright-report-summary

A GitHub action to report Playwright test results as pull request comments
MIT License
40 stars 8 forks source link

[Feature] Support to post multiple comments without overwriting existing comments #216

Closed ZuzanaMihalyiova closed 3 months ago

ZuzanaMihalyiova commented 3 months ago

First of all, thank you for this incredibly helpful tool!

Currently, the action overwrites existing comments when it runs. While this behavior can be useful in some cases, I have a workflow where PRs run multiple Playwright tests from different sources. For example:

In this situation, I need the ability to post multiple comments on the same PR, instead of having the latest one overwrite the previous comment.

Request
Could you please add a feature that allows the action to post multiple comments without overwriting the existing ones?

Thanks a lot!

daun commented 3 months ago

This already exists :) When you pass in a different report-tag option to each test report, it will only overwrite the comments if they were created by that report. See this comment for an example.