Skip to content

Commit

Permalink
fix: less dots
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Oct 3, 2023
1 parent f2ac40f commit 057d7c0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions packages/monorepo-release/src/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export async function analyze(config: Config): Promise<PackageToRelease[]> {
root: packages.rootPackage,
})

log.debug("Identifying latest tag...")
log.debug("Identifying latest tag.")
const latestTag = execSync("git describe --tags --abbrev=0", {
stdio: "pipe",
})
Expand All @@ -31,7 +31,7 @@ export async function analyze(config: Config): Promise<PackageToRelease[]> {

log.info(`Latest tag identified: \`${bold(latestTag)}\``)

log.debug("Identifying commits since the latest tag...")
log.debug("Identifying commits since the latest tag.")

// TODO: Allow passing in a range of commits to analyze and print the changelog
const range = `${latestTag}..HEAD`
Expand Down Expand Up @@ -68,11 +68,11 @@ export async function analyze(config: Config): Promise<PackageToRelease[]> {
const lastCommit = commitsSinceLatestTag[0]

if (lastCommit?.parsed.raw === RELEASE_COMMIT_MSG) {
log.debug("Already released...")
return []
log.debug("Already released.")
process.exit(0)
}

log.debug("Identifying commits that modified package code...")
log.debug("Identifying commits that modified package code.")
function getChangedFiles(commitSha: string) {
return execSync(
`git diff-tree --no-commit-id --name-only -r ${commitSha}`,
Expand All @@ -95,7 +95,7 @@ export async function analyze(config: Config): Promise<PackageToRelease[]> {
`modified package code`,
)

log.debug("Identifying packages that need a new release...")
log.debug("Identifying packages that need a new release.")

const packagesNeedRelease: Set<string> = new Set()
const grouppedPackages = packageCommits.reduce(
Expand Down
8 changes: 4 additions & 4 deletions packages/monorepo-release/src/publish.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export async function publish(packages: PackageToRelease[], options: Config) {
}

if (dryRun) {
log.debug("Dry run, skip release commit...")
log.debug("Dry run, skip release commit.")
} else {
log.debug("Commiting.")
execSync(
Expand All @@ -71,10 +71,10 @@ export async function publish(packages: PackageToRelease[], options: Config) {
log.debug(`Changelog generated for \`${bold(pkg.name)}\`:\n`, changelog)

if (!dryRun) {
log.info(`Creating git tag...`)
log.info(`Creating git tag.`)
execSync(`git tag ${gitTag}`)
execSync("git push --tags")
log.info(`Creating GitHub release notes...`)
log.info(`Creating GitHub release notes.`)
execSync(`gh release create ${gitTag} --notes '${changelog}'`)
}
}
Expand All @@ -93,7 +93,7 @@ function createChangelog(pkg: PackageToRelease) {
const {
commits: { features, breaking, bugfixes, other },
} = pkg
log.debug(`Generating changelog for package \`${bold(pkg.name)}\`...`)
log.debug(`Generating changelog for package \`${bold(pkg.name)}\`.`)

let changelog = ``
changelog += listGroup("Features", features)
Expand Down

0 comments on commit 057d7c0

Please sign in to comment.