Skip to content

Improve [rendered-link] guess of the relevant file to point to #2118

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Urgau
Copy link
Member

@Urgau Urgau commented Jul 17, 2025

This pull-request improves the guess of the relevant file to point to by:

  1. introducing an exclusion list of filenames (defaults to SUMMARY.md)
  2. by sorting all the matching files by the total number of lines changed (additions + removals + changes)

This should drastically improve our guess as before we took the first file we match on.

cc @apiraino
Fixes #2116

@Urgau Urgau force-pushed the rendered-link-improv-guess branch from e877943 to fdbc0a9 Compare July 17, 2025 19:44
@Urgau Urgau force-pushed the rendered-link-improv-guess branch from fdbc0a9 to e06e1e9 Compare July 17, 2025 19:49
@Urgau Urgau force-pushed the rendered-link-improv-guess branch from e06e1e9 to 1496c0c Compare July 17, 2025 20:06
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.

Rendered link does not point to correct file
2 participants