42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
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: '20'
|
|
|
|
- uses: actions/checkout@v4
|
|
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 |