diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 00000000..e6b9ef93 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,3 @@ +# Changelog + +Visit [releases](https://github.com/canyon-project/canyon/releases) for full changelog. diff --git a/package.json b/package.json index eab9326a..80b8d5c7 100755 --- a/package.json +++ b/package.json @@ -1,7 +1,10 @@ { "name": "canyon", "version": "1.0.0", - "main": "index.js", + "description": "Canyon is a JavaScript code coverage solution", + "author": "wr_zhang25@163.com", + "private": true, + "license": "MIT", "type": "module", "scripts": { "test": "pnpm -r do-test", @@ -10,8 +13,5 @@ "migrate": "npx prisma migrate dev --schema ./packages/canyon-backend/prisma/schema.prisma", "rm": "find ./ -type d \\( -name \"dist\" -o -name \"node_modules\" \\) -exec rm -rf {} +", "preinstall": "node ./scripts/check.js" - }, - "keywords": [], - "author": "", - "license": "ISC" + } } diff --git a/packages/canyon-backend/prisma/schema.prisma b/packages/canyon-backend/prisma/schema.prisma index ae44d36d..6c8a0f8e 100755 --- a/packages/canyon-backend/prisma/schema.prisma +++ b/packages/canyon-backend/prisma/schema.prisma @@ -22,9 +22,6 @@ model User { @@map("user") } -// 确认数据结构,Coverage使用随机生成的id,不使用自增id。 -// 取消task,使用consumer消费者模式聚合数据 -// commitSha => sha model Coverage { id String @id @default(cuid()) key String? @@ -39,9 +36,9 @@ model Coverage { relationID String @map("relation_id") createdAt DateTime @default(now()) @map("created_at") @db.Timestamp(3) updatedAt DateTime @default(now()) @map("updated_at") @db.Timestamp(3) - consumer Int // 1: 未消费, 2: 已消费 - children String[] // 记录由哪些子任务生成 - tags Json[] // 打标签 + consumer Int + children String[] + tags Json[] @@map("coverage") } @@ -52,7 +49,6 @@ model Project { pathWithNamespace String @map("path_with_namespace") description String bu String - // maxCoverage Float @map("max_coverage") createdAt DateTime @default(now()) @map("created_at") @db.Timestamp(3) @@map("project")