Skip to content

Commit e67da05

Browse files
feat: add always-latest-comment input to manage PR comment updates (#153)
* feat: add always-latest-comment input to manage PR comment updates * feat: use workflowListRuns
1 parent 27b97ad commit e67da05

File tree

13 files changed

+615
-35
lines changed

13 files changed

+615
-35
lines changed

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ There are several inputs available
159159
use-suite-name: false # Prefix test names with the suite name for better grouping. Default is false
160160
update-comment: false # Update existing Pull Request comment. Default is false
161161
overwrite-comment: false # Overwrite existing Pull Request comment. Default is false
162+
always-latest-comment: false # Create a new comment if the existing comment is not the latest in the thread. Default is false
162163
comment-tag: false # Tag to match Pull Request comment
163164
write-ctrf-to-file: 'ctrf/ctrf-report.json' # Path to write the processed CTRF report for future processing. Default no write
164165
upload-artifact: true # Upload to workflow artifact the processed CTRF report for future processing. Default false
@@ -241,6 +242,8 @@ appended to it. Otherwise, a new comment is created.
241242
`--overwrite-comment` An existing tagged comment is found, that comment's entire
242243
content is replaced with the new report. Otherwise, a new comment is created.
243244

245+
`--always-latest-comment` Create a new comment if the existing comment is not the latest in the thread. Use with `--update-comment` or `--overwrite-comment`. Default is false
246+
244247
`--comment-tag` A unique identifier for comments posted. Used to find and
245248
update/overwrite existing comments.
246249

0 commit comments

Comments
 (0)