From a93bed3577c8627650420365e795fd4319dbad33 Mon Sep 17 00:00:00 2001 From: "Trez.One" Date: Sun, 28 Dec 2025 17:31:49 -0500 Subject: [PATCH] Adding OpenCommit workflow. --- .gitea/workflows/opencommit.yml | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .gitea/workflows/opencommit.yml diff --git a/.gitea/workflows/opencommit.yml b/.gitea/workflows/opencommit.yml new file mode 100644 index 00000000..f038e17e --- /dev/null +++ b/.gitea/workflows/opencommit.yml @@ -0,0 +1,33 @@ +name: 'OpenCommit Action' + +on: + push: + # this list of branches is often enough, + # but you may still ignore other public branches + branches-ignore: + - main + +jobs: + opencommit: + timeout-minutes: 10 + name: OpenCommit + runs-on: ubuntu-latest + steps: + - name: Setup Node.js Environment + uses: actions/setup-node@v4 + with: + node-version: '20' + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: di-sukharev/opencommit@github-action-v1.0.4 + with: + GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }} + env: + OCO_AI_PROVIDER: ollama + OCO_API_URL: ${{ secrets.OLLAMA_API_URL }} + OCO_DESCRIPTION: true + OCO_EMOJI: true + OCO_MODEL: deepseek-coder:1.3b + OCO_LANGUAGE: en + OCO_PROMPT_MODULE: conventional-commit \ No newline at end of file