5 Commits

Author SHA1 Message Date
4d815a6e81 docs(更新文档): 更新文档 2025-11-27 16:43:27 +08:00
ae8060fc9e docs(更新文档): 更新文档 2025-11-27 16:41:52 +08:00
49e77c8325 docs(更新文档): 更新文档 2025-11-27 16:37:52 +08:00
ded2a32ce6 feat(构建迁移): 构建迁移 2025-11-27 16:35:26 +08:00
8c594faab7 chore(触发构建): 触发构建 2023-10-07 14:55:14 +08:00
6 changed files with 37 additions and 33 deletions

View File

@@ -1,28 +0,0 @@
kind: pipeline
type: docker
name: default
node:
region: cn
steps:
- name: generate
pull: if-not-exists
image: ccr.ccs.tencentyun.com/xiaoqidun/build
commands:
- build -f build.sh -i gitcz.go -o release/gitcz
- name: build
pull: if-not-exists
image: ccr.ccs.tencentyun.com/xiaoqidun/goenv
commands:
- ./build.sh
- name: upload
image: ccr.ccs.tencentyun.com/xiaoqidun/gocos
settings:
secret_id:
from_secret: cos_secret_id
secret_key:
from_secret: cos_secret_key
bucket_url:
from_secret: cos_bucket_url
source: release/
target: product/gitcz
strip_prefix: release/

View File

@@ -0,0 +1,28 @@
on: [push, workflow_dispatch]
jobs:
build:
runs-on: cn
steps:
- name: checkout
uses: actions/checkout@v6
- name: generate
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/build:latest
with:
args: -f build.sh -i gitcz.go -o release/gitcz
- name: docker goenv
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
env:
GIT_SERVER: ${{ secrets.git_server }}
GIT_USER: ${{ secrets.git_user }}
GIT_TOKEN: ${{ secrets.git_token }}
with:
args: bash build.sh
- name: upload to cos
uses: docker://ccr.ccs.tencentyun.com/xiaoqidun/gocos
env:
PLUGIN_SECRET_ID: ${{secrets.cos_secret_id}}
PLUGIN_SECRET_KEY: ${{secrets.cos_secret_key}}
PLUGIN_BUCKET_URL: ${{secrets.cos_bucket_url}}
PLUGIN_SOURCE: release/
PLUGIN_TARGET: product/gitcz
PLUGIN_STRIP_PREFIX: release/

2
.gitignore vendored
View File

@@ -1 +1,3 @@
.idea/
.vscode/
.devcontainer/

View File

@@ -1,10 +1,12 @@
# gitcz
Golang 版本 Git Commitizencommit 规范工具
Go语言Git Commitizencommit规范工具
# 快速安装
```
go install github.com/xiaoqidun/gitcz@latest
```
# 编译安装
@@ -35,4 +37,4 @@ git push
# 规范文档
gitcz 使用[angular git commit 规范](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines)
gitcz 使用 [angular git commit](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines) 规范

2
go.mod
View File

@@ -1,3 +1,3 @@
module github.com/xiaoqidun/gitcz
go 1.21.1
go 1.21.0