Skip to content
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

#96: move weburl logic from template #102

Merged
merged 5 commits into from
Oct 16, 2024

Conversation

japroc
Copy link
Contributor

@japroc japroc commented Oct 15, 2024

This MR introduced a callback functions for sarif module and to-html command.
sarif and git modules don't know anything about vcs web url structure. And this callback function allows to move this logic right inside main command. It also allowed us to remove web url logic from html templates. So html template are vcs agnostic now.

The functions that were introduced in to-html (buildWebURLToBranch, buildWebURLToCommit), runtime callback function (locationWebURLCallback) and existing (gitURLtoWebURL) should be used in future for vcs specific logic.

For now generic logic was introduced, that should work for most cloud vcs solutions (gitlab, github, bitbucket cloud).

@japroc japroc added the enhancement New feature or request label Oct 15, 2024
@japroc japroc requested a review from shikari-ac October 15, 2024 19:52
@japroc japroc self-assigned this Oct 15, 2024
@shikari-ac
Copy link
Contributor

PyYAML issue: yaml/pyyaml#724

Copy link
Contributor

@shikari-ac shikari-ac left a comment

Choose a reason for hiding this comment

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

LGTM

@japroc japroc merged commit 217ab1e into main Oct 16, 2024
6 checks passed
@japroc japroc deleted the japroc/move-weburl-logic-from-template branch October 16, 2024 19:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants