Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
mmdapl committed Oct 5, 2024
1 parent efeba87 commit b4e8473
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/changelog/src/utils/github.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { $fetch } from 'ofetch'
import { cyan, green, red, yellow } from 'kolorist'
import qs from 'qs'
import { vipColor } from '@142vip/utils'
import type {
AuthorInfo,
ChangelogOptions,
Expand Down Expand Up @@ -36,7 +36,7 @@ export async function sendRelease(
prerelease: options.prerelease,
tag_name: options.to,
}
console.log(vipColor.cyan(method === 'POST'
console.log(cyan(method === 'POST'
? 'Creating release notes...'
: 'Updating release notes...'),
)
Expand All @@ -45,7 +45,7 @@ export async function sendRelease(
body: JSON.stringify(body),
headers,
})
console.log(vipColor.green(`Released on ${res.html_url}`))
console.log(green(`Released on ${res.html_url}`))
}

function getHeaders(options: ChangelogOptions) {
Expand Down Expand Up @@ -172,9 +172,9 @@ export function generateWebUrl(config: any, markdown: string) {
*/
export function printUrl(webUrl: string, success: boolean = true) {
if (success) {
console.error(`\n${vipColor.yellow('使用以下链接手动发布新的版本:')}\n${vipColor.yellow(webUrl)}\n`)
console.error(`\n${yellow('使用以下链接手动发布新的版本:')}\n${yellow(webUrl)}\n`)
}
else {
console.error(`\n${vipColor.red('无法创建发布。使用以下链接手动创建:')}\n${vipColor.yellow(webUrl)}\n`)
console.error(`\n${red('无法创建发布。使用以下链接手动创建:')}\n${yellow(webUrl)}\n`)
}
}

0 comments on commit b4e8473

Please sign in to comment.