@@ -4,6 +4,7 @@ import { ConventionalGitClient } from '@conventional-changelog/git-client'
44import { Bumper } from 'conventional-recommended-bump'
55import { ConventionalChangelog } from 'conventional-changelog'
66import { concatStringStream } from '@simple-libs/stream-utils'
7+ import { parseHostedGitUrl } from '@simple-libs/hosted-git-info'
78import semver , { type ReleaseType } from 'semver'
89import {
910 type ProjectManifestVersionUpdate ,
@@ -63,6 +64,10 @@ export interface GenericProjectBumpOptions {
6364 * By default will be auto detected based on tag existence.
6465 */
6566 firstRelease ?: boolean
67+ /**
68+ * Skip bumping.
69+ */
70+ skip ?: boolean
6671 preset ?: PresetParams
6772 /**
6873 * The prefix to use for the tag.
@@ -152,6 +157,17 @@ export abstract class GenericProject {
152157 this . gitClient = gitClient
153158 }
154159
160+ /**
161+ * Get the hosted git information for the project.
162+ * @returns The hosted git information.
163+ */
164+ async getHostedGitInfo ( ) {
165+ const remote = await this . gitClient . getConfig ( 'remote.origin.url' )
166+ const info = parseHostedGitUrl ( remote )
167+
168+ return info
169+ }
170+
155171 /**
156172 * Get the commit message for the version updates.
157173 * @returns The commit message.
@@ -249,7 +265,7 @@ export abstract class GenericProject {
249265 manifest
250266 } = this
251267
252- if ( await manifest . isPrivate ( ) ) {
268+ if ( options . skip || await manifest . isPrivate ( ) ) {
253269 return null
254270 }
255271
0 commit comments