Closes #157 Create website preview within Pull Request#374
Conversation
Co-authored-by: bms63 <10111024+bms63@users.noreply.github.com> Agent-Logs-Url: https://github.com/pharmaverse/blog/sessions/d18e90d9-3b9b-48aa-8374-3cb582679e94
|
@copilot could you run the action and have a preview of the blog sent into this Pull Request please? |
Co-authored-by: bms63 <10111024+bms63@users.noreply.github.com> Agent-Logs-Url: https://github.com/pharmaverse/blog/sessions/c0bacbfa-791d-4954-8769-0c88f26998c3
The PR Preview workflow was triggered by commit You can approve it here: https://github.com/pharmaverse/blog/actions/runs/23356998421 Once approved (and on all subsequent pushes), it will build the Quarto site and post a comment on this PR with the preview URL: |
|
❌ Preview removed. This PR has been closed and the preview website has been removed. |
@rossfarrugia, @aaehmann, @ashley-tarasiewicz, @manciniedoardo (retired) inspired by others - we now have a preview of the blog in each Pull Request!! Okay to merge in?? |
|
looks great! |
Adds two GitHub Actions workflows that build and publish a live preview site for every PR, matching the pattern used in
pharmaverse/examples.New Workflows
pr-preview.yml— Fires on PR open/sync/reopen/ready-for-review targetingmain. Renders the Quarto site using the same Docker image and R packages aspublish.yml, deploys the output to agh-pagessubdirectory named after the sanitized branch, and posts (or updates) a sticky PR comment with the preview URL.remove-pr-preview.yml— Fires when a PR targetingmainis closed. Checks outgh-pages, removes the branch subdirectory, and updates the sticky comment to indicate the preview is gone.Key Details
[^a-zA-Z0-9._-]→-) before use as directory/URL slugs, handlingfeature/branch-name-style refs safely.https://pharmaverse.github.io/blog/<sanitized-branch>marocchino/sticky-pull-request-commentso the comment is updated in-place on each push, not duplicated.contents: write+pull-requests: writepermissions.6e0259c. A repository maintainer must approve the first workflow run at https://github.com/pharmaverse/blog/actions/runs/23356998421 before the preview is published. Subsequent runs will execute automatically on each push.Thank you for your Pull Request! We have developed this task checklist to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your blog post.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the
mainbranch until you have checked off each task."posts/date_with_short_tile"and the blog post file and any other artifacts have informative but succinct names.CICD.Rline by line to first check the spelling in your post and then to make sure your code is compatible with our code-style. Address any incongruences by following the instructions in the file!tag(s)or categories from the current list:c("Metadata", "SDTM", "ADaM", "TLG", "Shiny", "Python", "Community", "Conferences", "Submissions", "Technical", "DEI")for your blog post. If you cannot find anything that fits your blog post, propose a new tag to the maintainers! Note: if you use a tag not from this list, the "Check Post Tags" CICD pipeline will error. We occasionally tidy up alltagsfor consistency.descriptionfield at the top of the markdown document.Original prompt
📍 Connect Copilot coding agent with Jira, Azure Boards or Linear to delegate work to Copilot in one click without leaving your project management tool.