Make preview comment sticky - #803
Merged
Merged
Conversation
Co-Authored-By: Mattias Buelens <mattias.buelens@dolby.com>
MattiasBuelens
requested review from
FabienLavocat and
jorisfluyt
and removed request for
a team
August 10, 2026 12:58
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
Co-Authored-By: Mattias Buelens <mattias.buelens@dolby.com>
This comment has been minimized.
This comment has been minimized.
Co-Authored-By: Mattias Buelens <mattias.buelens@dolby.com>
FabienLavocat
approved these changes
Aug 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up on #786: replace the
actions/github-scriptstep that callsissues.createComment()(a new comment on every push) withmarocchino/sticky-pull-request-comment@v2usingheader: pr-preview, so each new deployment updates the same comment.The message is modelled on rossjrw/pr-preview-action's comment, which this repo used before, e.g.
There's no "preview will be ready once the deployment completes" line: the comment is posted after the S3 sync and CloudFront invalidation, so the preview is already live.
_undeploy.ymlnow updates the same sticky comment to say the preview was removed, then hides it (minimized as outdated). That takes two steps because the action ignoresmessagewhenhide: true: one step withonly_update: true(a no-op if there is no existing comment) and one withhide: true.The timestamp comes from a small
date -ustep (the sticky action takes a plain string, not JS). Both jobs getpull-requests: write, the undeploy job gets the app token (andsecrets: inheritinpull-request.yml) so the comment is posted by the bot.Link to Devin session: https://dolby.devinenterprise.com/sessions/5dd3c46c6c65412c8954ba72ef6d43db
Requested by: @MattiasBuelens