Skip to content

Modify the workflow to not be blocked by old posts changed mails - #390

Open
mdubel wants to merge 3 commits into
mainfrom
fix-link-check-changed-files-only
Open

Modify the workflow to not be blocked by old posts changed mails#390
mdubel wants to merge 3 commits into
mainfrom
fix-link-check-changed-files-only

Conversation

@mdubel

@mdubel mdubel commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

This PR fixes the issue with new blogposts being blocked by the mail changes in the historical posts.
See example: https://github.com/pharmaverse/blog/actions/runs/27440413131/job/81112836728?pr=389
Ben's email from the 2023 post is no longer active, and it makes CI red for the 2026 new post that is not touching the old content at all.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the link-check GitHub Actions workflow so that CI only checks links in markdown/quarto files modified by the current pull request, preventing unrelated historical content (e.g., outdated author emails/links in old posts) from blocking new contributions.

Changes:

  • Fetch full git history to enable reliable PR diffing for changed-file detection.
  • Add a “changed files” step to scope link checking to only touched .qmd/.md files.
  • Remap changed .qmd paths to .md after switch.R renames files, and run Lychee only when relevant files changed.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/link_check.yml Outdated
Comment on lines +18 to +22
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the link checker CI is so fast - like seconds to run feels like we should just fix the links imo

@github-actions

Copy link
Copy Markdown
Contributor

👀 Preview available!

The preview website for this PR is available at:
https://pharmaverse.github.io/blog/fix-link-check-changed-files-only

The preview is updated every time a new commit is pushed to this PR.

@bms63 bms63 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh i think we should continuously check all the files to make sure the links still work...i did not know my old gsk address was in that post. it can just be removed.

@rossfarrugia
rossfarrugia removed their request for review June 15, 2026 07:23
@rossfarrugia

Copy link
Copy Markdown
Contributor

Redirecting to @ashley-tarasiewicz and @aaehmann

@mdubel

mdubel commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator Author

@bms63 my intention was to not modify the archived posts, so I decided to modify the CI.

However, if the original intention was not to track who wrote a post (Ben from GSK), but rather to be able to contact the author with the current mail, then I can modify the email only.

Clarifying this intention was why I brought @rossfarrugia to the discussion.

@rossfarrugia

Copy link
Copy Markdown
Contributor

@mdubel i'm not sure the original intention sorry. i wasn't part of the team that created this blog site. i would trust whatever Ashley and Alice prefer here

@bms63

bms63 commented Jun 17, 2026

Copy link
Copy Markdown
Collaborator

It is my old email lol :) - I think the CICD link check should check that all the links are good over the whole site imo. Things go bad quick, but maybe we could just check back 12 months for links and leave everything else alone...cause who is going to read a post from 2023??

mdubel and others added 2 commits June 24, 2026 12:35
Keep checking all links across the repo (per maintainer preference) and
handle the failing links via .lycheeignore: Ben Straub's GSK email plus
the rate-limited Wikimedia asset and the timing-out SAS blog posts.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mdubel

mdubel commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator Author

@bms63 I made it as simple as possible, to also keep your and GSK contribution. Just added your old email (as well as other flaky links) to the ignored checks. I see it is a used before approach. A little bit counter the idea of actually making sure that links work, but I guess we shouldn't work too much on the 2023 post.

@aaehmann aaehmann left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

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.

5 participants