Skip to content

Commit

Permalink
refactor(notify): ignore 'Accept Merge Request'
Browse files Browse the repository at this point in the history
  • Loading branch information
Airkro committed Dec 4, 2024
1 parent 6e6549a commit c27af00
Show file tree
Hide file tree
Showing 10 changed files with 460 additions and 343 deletions.
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@
"playwright-core": "~1.49.0"
},
"devDependencies": {
"@nice-move/all-in-base": "^0.2.5",
"@nice-move/all-in-base": "^0.2.14",
"@nice-move/syncpack-config": "^0.2.9",
"best-shot": "0.7.7",
"best-shot": "0.7.9",
"eslint": "^8.57.1",
"garou": "^0.8.1",
"garou": "^0.8.2",
"log-symbols": "^4.1.0",
"prettier": "^3.3.3",
"prettier": "^3.4.1",
"syncpack": "^13.0.0",
"typescript": "~5.6.3"
"typescript": "~5.7.2"
},
"peerDependencies": {
"@bring-it/npm": "workspace:~",
Expand All @@ -48,11 +48,11 @@
"cpu-features": "-"
}
},
"packageManager": "pnpm@9.12.1",
"packageManager": "pnpm@9.14.4",
"engines": {
"node": ">=22.0.0 || ^18.20.0 || ^20.5.0",
"node": ">=22.11.0 || ^18.20.5 || ^20.18.1",
"npm": "^10.5.0",
"pnpm": "^9.12.1"
"pnpm": "^9.14.4"
},
"eslintConfig": {
"extends": "@nice-move/eslint-config-base"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"cheetor": "catalog:"
},
"engines": {
"node": ">=22.0.0 || ^18.20.0 || ^20.5.0"
"node": ">=22.11.0 || ^18.20.5 || ^20.18.1"
},
"publishConfig": {
"access": "public",
Expand Down
19 changes: 11 additions & 8 deletions packages/notify/lib/utils.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -174,14 +174,17 @@ async function getCommits() {
: sortBy(
Object.entries(
groupBy(
// eslint-disable-next-line unicorn/no-await-expression-member
(await getLogs()).map(({ abbrevHash, hash, subject }) => ({
hash,
abbrevHash,
message: parser.parse(subject),
subject,
url: `${DEPOT_URL}/git/commit/${hash}`,
})),
(await getLogs()) // eslint-disable-next-line unicorn/no-await-expression-member
.filter(
({ subject }) => !subject.startsWith('Accept Merge Request'),
)
.map(({ abbrevHash, hash, subject }) => ({
hash,
abbrevHash,
message: parser.parse(subject),
subject,
url: `${DEPOT_URL}/git/commit/${hash}`,
})),
({ message }) => message?.type || '未分类',
),
),
Expand Down
8 changes: 4 additions & 4 deletions packages/notify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bring-it/notify",
"version": "0.3.17",
"version": "0.3.18",
"description": "Send releases notifications",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -41,17 +41,17 @@
},
"devDependencies": {
"conventional-commits-parser": "^6.0.0",
"fast-clean": "^1.3.2",
"fast-clean": "^1.4.0",
"gitlog": "^5.1.0",
"lodash": "catalog:",
"mdast-util-to-markdown": "^2.1.0",
"mdast-util-to-markdown": "^2.1.2",
"semver": "catalog:"
},
"peerDependencies": {
"@bring-it/cli": "workspace:~"
},
"engines": {
"node": ">=22.0.0 || ^18.20.0 || ^20.5.0"
"node": ">=22.11.0 || ^18.20.5 || ^20.18.1"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 2 additions & 2 deletions packages/npm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"@bring-it/cli": "workspace:~"
},
"engines": {
"node": ">=22.0.0 || ^18.20.0 || ^20.5.0",
"node": ">=22.11.0 || ^18.20.5 || ^20.18.1",
"npm": "^10.5.0",
"pnpm": "^9.12.1"
"pnpm": "^9.14.4"
},
"publishConfig": {
"access": "public",
Expand Down
4 changes: 2 additions & 2 deletions packages/sample/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,15 @@
},
"peerDependencies": {
"@bring-it/cli": "workspace:~",
"playwright-core": "~1.48.1"
"playwright-core": "~1.49.0"
},
"peerDependenciesMeta": {
"playwright-core": {
"optional": true
}
},
"engines": {
"node": ">=22.0.0 || ^18.20.0 || ^20.5.0"
"node": ">=22.11.0 || ^18.20.5 || ^20.18.1"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/sentry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@bring-it/cli": "workspace:~"
},
"engines": {
"node": ">=22.0.0 || ^18.20.0 || ^20.5.0"
"node": ">=22.11.0 || ^18.20.5 || ^20.18.1"
},
"publishConfig": {
"access": "public",
Expand Down
8 changes: 4 additions & 4 deletions packages/sftp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bring-it/sftp",
"version": "0.3.7",
"version": "0.3.8",
"description": "SFTP deployment tool for frontend",
"license": "MIT",
"author": {
Expand Down Expand Up @@ -46,17 +46,17 @@
"lodash": "catalog:",
"node-ssh": "^13.2.0",
"p-all": "^5.0.0",
"p-retry": "^6.2.0",
"p-retry": "^6.2.1",
"p-series": "^3.0.0",
"p-timeout": "^6.1.3",
"slash": "catalog:",
"ssh-config": "^5.0.0"
"ssh-config": "^5.0.1"
},
"peerDependencies": {
"@bring-it/cli": "workspace:~"
},
"engines": {
"node": ">=22.0.0 || ^18.20.0 || ^20.5.0"
"node": ">=22.11.0 || ^18.20.5 || ^20.18.1"
},
"publishConfig": {
"access": "public",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"@bring-it/cli": "workspace:~"
},
"engines": {
"node": ">=22.0.0 || ^18.20.0 || ^20.5.0"
"node": ">=22.11.0 || ^18.20.5 || ^20.18.1"
}
}
Loading

0 comments on commit c27af00

Please sign in to comment.