{"id":19594478,"url":"https://github.com/swoft-cloud/swoft-design","last_synced_at":"2025-02-26T14:21:12.297Z","repository":{"id":95217701,"uuid":"162426033","full_name":"swoft-cloud/swoft-design","owner":"swoft-cloud","description":"swoft framework design","archived":false,"fork":false,"pushed_at":"2019-04-28T06:34:59.000Z","size":72,"stargazers_count":13,"open_issues_count":0,"forks_count":4,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-09T07:13:00.531Z","etag":null,"topics":["swoft"],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/swoft-cloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-19T11:11:05.000Z","updated_at":"2024-12-16T05:57:52.000Z","dependencies_parsed_at":"2023-04-09T19:31:49.847Z","dependency_job_id":null,"html_url":"https://github.com/swoft-cloud/swoft-design","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-design","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-design/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-design/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/swoft-cloud%2Fswoft-design/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/swoft-cloud","download_url":"https://codeload.github.com/swoft-cloud/swoft-design/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240867751,"owners_count":19870469,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["swoft"],"created_at":"2024-11-11T08:43:40.502Z","updated_at":"2025-02-26T14:21:12.231Z","avatar_url":"https://github.com/swoft-cloud.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# swoft-design\n\nswoft framework design draft\n\n- [swoft 2.0](swoft-v2/README.md)\n\n## 开发规范\n\n- 代码风格遵循 PSR-2\n- 遵循 PSR-4 自动加载规范 \n- 有完善的单元测试\n- 功能描述\n\n\n## Commit Message 格式\n\n目前规范使用较多的是 Angular 团队的规范, 继而衍生了 Conventional Commits specification. 很多工具也是基于此规范, 它的 message 格式如下:\n\n```text\n\u003ctype\u003e(\u003cscope\u003e): \u003csubject\u003e\n\u003cBLANK LINE\u003e\n\u003cbody\u003e\n\u003cBLANK LINE\u003e\n\u003cfooter\u003e\n```\n\n我们通过 git commit 命令带出的 vim 界面填写的最终结果应该类似如上这个结构, 大致分为三个部分(使用空行分割):\n\n标题行: 必填, 描述主要修改类型和内容\n主题内容: 描述为什么修改, 做了什么样的修改, 以及开发的思路等等\n页脚注释: 放 Breaking Changes 或 Closed Issues\n\n分别由如下部分构成:\n\n```text\ntype: commit 的类型\n feat: 新特性\n fix: 修改问题\n refactor: 代码重构\n docs: 文档修改\n style: 代码格式修改, 注意不是 css 修改\n test: 测试用例修改\n chore: 其他修改, 比如构建流程, 依赖管理.\nscope: commit 影响的范围, 比如: route, component, utils, build...\nsubject: commit 的概述, 建议符合 50/72 formatting\nbody: commit 具体修改内容, 可以分为多行, 建议符合 50/72 formatting\nfooter: 一些备注, 通常是 BREAKING CHANGE 或修复的 bug 的链接.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoft-cloud%2Fswoft-design","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fswoft-cloud%2Fswoft-design","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fswoft-cloud%2Fswoft-design/lists"}