chore(scripts): improve release notes tag filtering
This commit is contained in:
@@ -73,7 +73,7 @@ async function main() {
|
|||||||
|
|
||||||
console.log({ args })
|
console.log({ args })
|
||||||
|
|
||||||
const fromVersion = execSync('git describe --tags --abbrev=0').toString().trim()
|
const fromVersion = execSync('git describe --match "v*" --tags --abbrev=0').toString().trim()
|
||||||
|
|
||||||
const config = await loadChangelogConfig(process.cwd(), {
|
const config = await loadChangelogConfig(process.cwd(), {
|
||||||
repo: 'payloadcms/payload',
|
repo: 'payloadcms/payload',
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ export const updateChangelog = async (args: Args = {}): Promise<ChangelogResult>
|
|||||||
const { toVersion = 'HEAD', dryRun, bump, openReleaseUrl, writeChangelog } = args
|
const { toVersion = 'HEAD', dryRun, bump, openReleaseUrl, writeChangelog } = args
|
||||||
|
|
||||||
const fromVersion =
|
const fromVersion =
|
||||||
args.fromVersion || execSync('git describe --tags --abbrev=0').toString().trim()
|
args.fromVersion || execSync('git describe --match "v*" --tags --abbrev=0').toString().trim()
|
||||||
|
|
||||||
const tag = fromVersion.match(/-(\w+)\.\d+$/)?.[1] || 'latest'
|
const tag = fromVersion.match(/-(\w+)\.\d+$/)?.[1] || 'latest'
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user