Skip to content

Commit

Permalink
modify(git): add commit msg style
Browse files Browse the repository at this point in the history
  • Loading branch information
Alice52 committed Apr 11, 2024
1 parent 9c522b3 commit 63f4492
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 5 deletions.
57 changes: 56 additions & 1 deletion common/git/readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Git
## line

1. [git introduce](./1.introduce.md)
2. [git install](./2.install.md)
Expand All @@ -8,6 +8,61 @@
6. [git theory](./6.theroy.md)
7. [github](./7.github.md)

---

## [commit msg](https://github.com/conventional-changelog/commitlint?tab=readme-ov-file#what-is-commitlint)

1. format: `type(scope?): subject`
2. type: angular style

- **perf**: 改进性能
- **modify**: 修改功能
- **delete**: 删除代码
- build: 构建流水线
- refactor
- style: 不影响代码含义的修改(如 formart)
- revert
-
- test
- docs
- fix
- chore
- feat: 心功能
-
- ci: 自动化流程

3. release with github action

```yaml
name: Release

permissions:
contents: write

on:
push:
tags:
- 'v*'

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set node
uses: actions/setup-node@v4
with:
node-version: 20
- name: Release
run: npx changelogithub
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
```
---
## reference
1. [offical website](https://git-scm.com/docs)
Expand Down
2 changes: 1 addition & 1 deletion database
2 changes: 1 addition & 1 deletion optimize
2 changes: 1 addition & 1 deletion programming

0 comments on commit 63f4492

Please sign in to comment.