SF017 Source links in manifestΒΆ
The user shall be able to declare a source_links section in the project manifest
to enable clickable links from code references to the corresponding lines in the
hosted repository (GitHub, GitLab, Codeberg, or any compatible platform).
The source_links section shall accept:
url: the base URL of the repository (e.g.https://github.com/owner/repo). The special valueautoinstructs Speky to detect it by runninggit remote get-url originand normalizing the result to an HTTPS URL.branch: the branch or ref used to build links (e.g.main). The special valueautoinstructs Speky to detect the current branch by runninggit rev-parse --abbrev-ref HEAD. Defaults toautowhen omitted.
Generated links shall have the form:
{url}/blob/{branch}/{path_from_git_root}#L{line}
Example:
source_links:
url: https://github.com/owner/repo
branch: main
With auto-detection:
source_links:
url: auto