Skip to content

Commit

Permalink
fix: respect tagSeparator and includeVInTag everywhere (#2283)
Browse files Browse the repository at this point in the history
fixes #2282

Co-authored-by: Jeff Ching <chingor@google.com>
  • Loading branch information
niieani and chingor13 authored Sep 11, 2024
1 parent acc3242 commit dad27e3
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 @@ -687,7 +687,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 @@ -101,7 +101,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 dad27e3

Please sign in to comment.