Skip to content

Commit

Permalink
fix: respect tagSeparator and includeVInTag everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
niieani committed May 5, 2024
1 parent cb106cd commit 3c69fed
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
7 changes: 6 additions & 1 deletion src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,12 @@ export class Manifest {
`No latest release found for path: ${path}, component: ${component}, but a previous version (${version.toString()}) was specified in the manifest.`
);
releasesByPath[path] = {
tag: new TagName(version, component),
tag: new TagName(
version,
component,
this.repositoryConfig[path].tagSeparator,
this.repositoryConfig[path].includeVInTag
),
sha: '',
notes: '',
};
Expand Down
7 changes: 6 additions & 1 deletion src/strategies/php-yoshi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ export class PHPYoshi extends BaseStrategy {
const versionsMap: VersionsMap = new Map();
const directoryVersionContents: Record<string, ComponentInfo> = {};
const component = await this.getComponent();
const newVersionTag = new TagName(newVersion, component);
const newVersionTag = new TagName(
newVersion,
component,
this.tagSeparator,
this.includeVInTag
);
let releaseNotesBody = `## ${newVersion.toString()}`;
for (const directory of topLevelDirectories) {
try {
Expand Down

0 comments on commit 3c69fed

Please sign in to comment.