forked from GitTools/GitReleaseManager
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(#146) Remove hard-coded values in create template
Within the scriban templates used for creating release notes, there is a hard-coded query string portion, which is used when linking to milestones from the generated release notes. When there was a single VCS provider, i.e. GitHub, this was fine. Now that we are introducing another provider, we need to make this configurable. This commit introduces a new method, GetMilestoneUrlQueryString(), which each VCS provider will need to implement, to return the correct value. In addition, the scriban template has been updated to make use of this, as well as the model that is passed into the generation of the template.
- Loading branch information
Showing
5 changed files
with
15 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
src/GitReleaseManager.Core/Templates/default/release-info.sbn
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters