Skip to content

Conversation

@github-actions
Copy link
Contributor

Description

Sync of #1674 to prerelease.

Original PR

Comment in PR with the preview url to the modified files

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 4 commits May 27, 2025 10:27
It will look for changed files in the pull request and write a comment showing links to previewed website using document target url

(cherry picked from commit a411839)
- Modified file
- Added file
- Modified included file

(cherry picked from commit 3cc8409)
(cherry picked from commit cb0cd62)
This reverts commit 3cc8409.

(cherry picked from commit 10f6f69)
@cderv
Copy link
Collaborator

cderv commented May 27, 2025

/deploy-preview

@github-actions
Copy link
Contributor Author

📝 Preview Deployment

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

@cderv cderv merged commit 354157e into prerelease May 27, 2025
@cderv cderv deleted the sync-1674-to-prerelease branch May 27, 2025 10:36
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.

2 participants