Skip to content

Conversation

@cderv
Copy link
Collaborator

@cderv cderv commented May 27, 2025

Idea is to

  • Takeover netlify action for preview to do the comment deploy message ourselves
  • By looking for changed files in the pull request and writing a comment showing links to the previewed website using the document's target URL
  • At first the logic is quite simple
    • Search for modified / renamed / added files in docs, either .qmd or .md
    • get relative path to project
    • replace extension with html
    • prepend deployment url
    • comment on the PR.

Let's see

cderv added 2 commits May 27, 2025 11:46
It will look for changed files in the pull request and write a comment showing links to previewed website using document target url
- Modified file
- Added file
- Modified included file
@github-actions github-actions bot temporarily deployed to pull request May 27, 2025 10:01 Inactive
@github-actions github-actions bot temporarily deployed to pull request May 27, 2025 10:16 Inactive
@github-actions
Copy link
Contributor

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-1674.quarto.org

🔄 Modified Documents

@github-actions github-actions bot temporarily deployed to pull request May 27, 2025 10:25 Inactive
@github-actions
Copy link
Contributor

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-1674.quarto.org

@cderv cderv merged commit 3a14407 into main May 27, 2025
4 checks passed
@cderv cderv deleted the preview-doc-url branch May 27, 2025 10:26
@github-actions
Copy link
Contributor

Successfully created backport PR for prerelease:

@cscheid
Copy link
Collaborator

cscheid commented May 27, 2025

Amazing!!

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.

3 participants