Compare commits
2 commits
65c1349fd1
...
119c9904e9
| Author | SHA1 | Date | |
|---|---|---|---|
| 119c9904e9 | |||
| 47c4c760be |
2 changed files with 63 additions and 3 deletions
60
.forgejo/workflows/opencode.yml
Normal file
60
.forgejo/workflows/opencode.yml
Normal file
|
|
@ -0,0 +1,60 @@
|
||||||
|
name: opencode
|
||||||
|
on:
|
||||||
|
issue_comment:
|
||||||
|
types: [created]
|
||||||
|
pull_request_review_comment:
|
||||||
|
types: [created]
|
||||||
|
pull_request_review:
|
||||||
|
types: [submitted]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
opencode:
|
||||||
|
if: |
|
||||||
|
contains(github.event.comment.body, '/oc') ||
|
||||||
|
contains(github.event.comment.body, '/opencode')
|
||||||
|
runs-on: docker-amd64
|
||||||
|
container:
|
||||||
|
image: node:lts-bookworm
|
||||||
|
permissions:
|
||||||
|
id-token: write
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- name: Install git, curl and Docker
|
||||||
|
run: |
|
||||||
|
apt-get update -qq
|
||||||
|
apt-get install -y -qq git curl unzip docker.io
|
||||||
|
|
||||||
|
- name: Start Docker daemon
|
||||||
|
run: |
|
||||||
|
dockerd --host=unix:///var/run/docker.sock --iptables=false --dns=8.8.8.8 --dns=8.8.4.4 > /tmp/dockerd.log 2>&1 &
|
||||||
|
for i in $(seq 1 30); do
|
||||||
|
sleep 2
|
||||||
|
docker info > /dev/null 2>&1 && echo "Docker daemon ready" && exit 0
|
||||||
|
echo "Waiting for Docker daemon... ($i/30)"
|
||||||
|
done
|
||||||
|
echo "=== dockerd failed to start, logs: ==="
|
||||||
|
cat /tmp/dockerd.log
|
||||||
|
exit 1
|
||||||
|
|
||||||
|
- name: Checkout repository
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 --branch "${{ github.ref_name }}" \
|
||||||
|
"https://oauth2:${{ github.token }}@bitfreedom.net/code/${{ github.repository }}.git" \
|
||||||
|
.
|
||||||
|
|
||||||
|
- name: Fetch action source
|
||||||
|
run: |
|
||||||
|
git clone --depth=1 --branch v1 \
|
||||||
|
"https://oauth2:${{ github.token }}@bitfreedom.net/code/nomyo-ai/actions.git" \
|
||||||
|
./.opencode-action
|
||||||
|
|
||||||
|
- name: Run opencode
|
||||||
|
uses: ./.opencode-action
|
||||||
|
with:
|
||||||
|
nomyo_api_key: ${{ secrets.NOMYO_API_KEY }}
|
||||||
|
model: nomyo/unsloth/Qwen3.6-35B-A3B-GGUF:UD-Q4_K_M
|
||||||
|
forgejo_api_url: https://bitfreedom.net/code/
|
||||||
|
forgejo_token: ${{ secrets.FORGEJO_TOKEN }}
|
||||||
|
forgejo_push_token: ${{ secrets.FORGEJO_PUSH_TOKEN }}
|
||||||
6
mcp-wrapper/package-lock.json
generated
6
mcp-wrapper/package-lock.json
generated
|
|
@ -518,9 +518,9 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@types/node": {
|
"node_modules/@types/node": {
|
||||||
"version": "22.19.17",
|
"version": "22.19.19",
|
||||||
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.17.tgz",
|
"resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.19.tgz",
|
||||||
"integrity": "sha512-wGdMcf+vPYM6jikpS/qhg6WiqSV/OhG+jeeHT/KlVqxYfD40iYJf9/AE1uQxVWFvU7MipKRkRv8NSHiCGgPr8Q==",
|
"integrity": "sha512-dyh/xO2Fh5bYrfWaaqGrRQQGkNdmYw6AmaAUvYeUMNTWQtvb796ikLdmTchRmOlOiIJ1TDXfWgVx1QkUlQ6Hew==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue