Skip to content

Commit

Permalink
fix(notify): bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Dec 22, 2023
1 parent 3cc34c1 commit 0eeacb0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 6 deletions.
4 changes: 2 additions & 2 deletions packages/notify/lib/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,10 @@ function getCommits() {
subject,
url: `${DEPOT_URL}/git/commit/${hash}`,
})),
({ message }) => message.type,
({ message }) => message?.type || '未分类',
),
),
([type]) => configs[type].order,
([type]) => configs[type]?.order || 99,
).flatMap(([type, list]) => [
{
type: 'heading',
Expand Down
8 changes: 4 additions & 4 deletions packages/notify/package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
{
"name": "@bring-it/notify",
"version": "0.2.10",
"version": "0.2.11",
"description": "Send releases notifications",
"license": "MIT",
"author": {
"name": "Eric Chen",
"email": "[email protected]"
},
"keywords": [
"bot",
"bring-it",
"ci",
"cli",
"deployment",
"dingtalk",
"frontend",
"release",
"wechat",
"wecom"
"notify",
"release"
],
"homepage": "https://github.com/airkro/bring-it/tree/master/packages/notify",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions packages/npm/.best-shot/config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ export const config = {
path: 'dist',
module: true,
},
copy: ['./src/bin.mjs'],
entry: './src/cmd.mjs',
};
3 changes: 3 additions & 0 deletions packages/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@
"bugs": {
"url": "https://github.com/airkro/bring-it/issues"
},
"bin": {
"bring-it": "dist/bin.mjs"
},
"main": "dist/main.mjs",
"files": [
"dist"
Expand Down
4 changes: 4 additions & 0 deletions packages/npm/src/bin.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env node

/* eslint-disable n/shebang */
import '@bring-it/cli/dist/cli.mjs';

0 comments on commit 0eeacb0

Please sign in to comment.