Skip to content

Document rossjrw/pr-preview-action for GitHub Pages PR previews#201

Draft
Copilot wants to merge 3 commits intomainfrom
copilot/summarize-pr-preview-action
Draft

Document rossjrw/pr-preview-action for GitHub Pages PR previews#201
Copilot wants to merge 3 commits intomainfrom
copilot/summarize-pr-preview-action

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 30, 2026

Adds rossjrw/pr-preview-action to the PR comment automation comparison section. This action deploys preview builds to GitHub Pages and is already used in this repository's .github/workflows/preview.yml.

Changes

  • New action profile covering deployment lifecycle, preview URLs, and cleanup behavior
  • Selective cleanup pattern highlighted with example showing how to preserve merged PR previews while removing unmerged ones:
# Deploy on open/update
- uses: rossjrw/pr-preview-action@v1
  if: contains(['opened', 'reopened', 'synchronize'], github.event.action)
  with:
    source-dir: ./docs/
    action: deploy

# Remove only unmerged PRs on close
- uses: rossjrw/pr-preview-action@v1
  if: github.event.action == "closed" && !github.event.pull_request.merged
  with:
    action: remove
  • Comparison table extended with pr-preview-action features (Pages deployment, QR codes, selective cleanup)
  • Usage guidance added to "Choosing the Right Action" section

Links to upstream documentation for the selective cleanup pattern.

Original prompt

This section details on the original issue you should resolve

<issue_title>summarize and link to https://github.com/rossjrw/pr-preview-action</issue_title>
<issue_description>especially https://github.com/rossjrw/pr-preview-action?tab=readme-ov-file#only-remove-previews-for-unmerged-prs</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits January 30, 2026 19:33
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Co-authored-by: d-morrison <2474437+d-morrison@users.noreply.github.com>
Copilot AI changed the title [WIP] Summarize and link to PR preview action Document rossjrw/pr-preview-action for GitHub Pages PR previews Jan 30, 2026
Copilot AI requested a review from d-morrison January 30, 2026 19:41
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Feb 2, 2026

PR Preview Action v1.8.1-1-g6f3a89d

QR code for preview link

🚀 View preview at
https://UCD-SERG.github.io/lab-manual/pr-preview/pr-201/

Built to branch gh-pages at 2026-02-02 03:43 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

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.

summarize and link to https://github.com/rossjrw/pr-preview-action

2 participants