diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index abc721e..0000000 --- a/.drone.yml +++ /dev/null @@ -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/ \ No newline at end of file diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..dc0e7bd --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -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/ \ No newline at end of file diff --git a/.gitignore b/.gitignore index 9f11b75..647d5b0 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ .idea/ +.vscode/ +.devcontainer/ \ No newline at end of file diff --git a/gitcz.go b/gitcz.go index 3211096..ba075c3 100644 --- a/gitcz.go +++ b/gitcz.go @@ -32,8 +32,8 @@ var ( InputScopePrompt = "说明本次提交的影响范围(必填): " InputSubjectPrompt = "对本次提交进行简短描述(必填): " InputBodyPrompt = "对本次提交进行完整描述(选填): " - InputBreakingChangePrompt = "如果当前代码版本与上一版本不兼容,对变动、变动的理由及迁移的方法进行描述(选填): " - InputClosesPrompt = "如果本次提交针对某个issue,列出关闭的issues(选填): " + InputBreakingChangePrompt = "如果当前代码版本与上一版本不兼容, 对变动、变动的理由及迁移的方法进行描述(选填): " + InputClosesPrompt = "如果本次提交针对某个issue, 列出关闭的issues(选填): " ) var CzTypeList = []CzType{ diff --git a/go.mod b/go.mod index f99daa5..bfe8c27 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ module github.com/xiaoqidun/gitcz -go 1.21.2 +go 1.21.0