This commit is contained in:
@@ -0,0 +1,42 @@
|
|||||||
|
name: 'OpenCommit Action'
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
# this list of branches is often enough,
|
||||||
|
# but you may still ignore other public branches
|
||||||
|
branches-ignore: [main master dev development release]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
opencommit:
|
||||||
|
timeout-minutes: 10
|
||||||
|
name: OpenCommit
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions: write-all
|
||||||
|
steps:
|
||||||
|
- name: Setup Node.js Environment
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: '16'
|
||||||
|
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- uses: https://git.trez.wtf/Trez/opencommit-gitea@main
|
||||||
|
with:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.BOT_GITEA_TOKEN }}
|
||||||
|
PLATFORM: gitea
|
||||||
|
GITEA_URL: ${{ secrets.TREZ_GITEA_URL }}
|
||||||
|
|
||||||
|
env:
|
||||||
|
OCO_AI_PROVIDER: ollama
|
||||||
|
OCO_API_URL: ${{ secrets.OLLAMA_API_URL }}
|
||||||
|
|
||||||
|
OCO_TOKENS_MAX_INPUT: 4096
|
||||||
|
OCO_TOKENS_MAX_OUTPUT: 500
|
||||||
|
OCO_OPENAI_BASE_PATH: ''
|
||||||
|
OCO_DESCRIPTION: true
|
||||||
|
OCO_EMOJI: true
|
||||||
|
OCO_MODEL: devstral-small-2:24b
|
||||||
|
OCO_LANGUAGE: en
|
||||||
|
OCO_PROMPT_MODULE: conventional-commit
|
||||||
Reference in New Issue
Block a user