Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support duplicate action comments on PRs #52

Merged
merged 9 commits into from
Jul 22, 2024
Merged

Conversation

emcfarlane
Copy link
Collaborator

@emcfarlane emcfarlane commented Jul 18, 2024

The action may be run multiple times as requested. This isn't supported by the PR comment status update as it presumes a single run of a v2 style workspace. To support this case we now dedupe comments on workflow and job name. The view link is moved to a <workflow> / <job> (pull_request) link in the comment description to help users differentiate runs. The name matches the status name below the CI fold. Note: there is no step level ID provided to the action so each invocation must be unique combination of workflow and job name otherwise the comment will update a previous comment.

Screenshot 2024-07-18 at 9 40 35 PM

Fixes #51

@bufbuild bufbuild deleted a comment from github-actions bot Jul 18, 2024
The action may be run multiple times as requested. This isn't supported by
the PR comment status update as it presumes a single run of a v2 style
workspace. To support this case we now dedupe comments on workflow and
job name, setting the job name in the PR to differentiate runs.

This comment has been minimized.

@emcfarlane emcfarlane marked this pull request as ready for review July 18, 2024 19:51
@emcfarlane emcfarlane marked this pull request as draft July 18, 2024 19:54
@emcfarlane emcfarlane marked this pull request as ready for review July 18, 2024 19:56
@nicksnyder
Copy link
Member

also need to update screenshot of summary comment in main readme

@emcfarlane emcfarlane merged commit 3f33586 into main Jul 22, 2024
34 checks passed
@emcfarlane emcfarlane deleted the ed/multiComments branch July 22, 2024 13:03
@emcfarlane emcfarlane restored the ed/multiComments branch July 22, 2024 13:03
@emcfarlane
Copy link
Collaborator Author

Leaving branch as it may be referenced, to delete on release.

@emcfarlane emcfarlane deleted the ed/multiComments branch August 1, 2024 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail to differentiate between multiple separate checks in same PR
2 participants