Repository navigation
Conversation
--github-update-comment[=<key>] implies --github-write-comment, and updates the comment the token's user previously wrote with the same key instead of adding a new one on every run. The report is skipped when the PR head moved past the tested commit. Assisted-by: Claude Opus 5.5
|
Tested end to end against real GitHub on pan3793/yetus-comment-test#1, running
The marker does not show in the rendered comment. The stale-build skip is covered by |
|
cc @aw-was-here @ndimiduk, could you please take a look? The current Yetus report (post a new comment for each report) keeps spamming the PR and makes it too hard for reviewers to find the real review comment ... |
|
ACK. I'll make time to take a look in the next couple days, if Allen doesn't beat me to it. |
|
friendly ping @ndimiduk ~ |
|
So my preference is against editing an existing comment in place. I would rather than the automation hides the out-of-date comment and posts a new one. That way everyone gets a notification about the new activity and the history of results is available for those who are interested. All that said, I'm not opposed to the plugin supporting either mode. I think there's good arguments for each depending on what checks are managed via Yetus. |
|
Jogging my memory... I implemented the hide-and-post behavior in https://issues.apache.org/jira/browse/HBASE-28642 . It would be excellent if we could get both behaviors into Yetus as variants on a feature. |
https://issues.apache.org/jira/browse/YETUS-1280
--github-write-commentadds a new PR comment on every run.--github-update-comment[=<key>]implies it and updates the comment the token's user previously wrote with the same key instead.<!-- yetus-report:<key> -->and adds aTested commitrow.GET /user, orgithub-actions[bot]under GitHub Actions), skipping hidden ones, and PATCHes it. Lookup or PATCH failures fall back to POST.Tested with the new
github_update_comment.bats.Assisted-by: Claude Opus 5.5