Skip to content

Commit

Permalink
updated commander action
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 4, 2024
1 parent 116b02d commit 4cfb2c5
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/genai-commander.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@ name: genai commander
on:
issue_comment:
types: [created]
env:
GENAISCRIPT_DEFAULT_MODEL: ollama:qwen2.5-coder:7b
GENAISCRIPT_DEFAULT_SMALL_MODEL: ollama:qwen2.5-coder:1.5b
GENAISCRIPT_DEFAULT_VISION_MODEL: ollama:llama3.2-vision:11b
jobs:
pr_commented:
# must be PR and have a comment starting with /genai
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/genai-') }}
runs-on: ubuntu-latest
permissions:
contents: write
contents: read
pull-requests: write
steps:
- name: resolve pr sha
Expand Down Expand Up @@ -47,20 +51,17 @@ jobs:
run: docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
- name: genaiscript pr-describe
if: contains(github.event.comment.body, '/genai-describe')
run: node packages/cli/built/genaiscript.cjs run pr-describe --out ./temp/genai/pr-describe -prd --out-trace $GITHUB_STEP_SUMMARY --model ollama:qwen2.5-coder:7b
run: node packages/cli/built/genaiscript.cjs run pr-describe --out ./temp/genai/pr-describe -prd --out-trace $GITHUB_STEP_SUMMARY
env:
GITHUB_ISSUE: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: genaiscript pr-review
if: contains(github.event.comment.body, '/genai-review')
run: node packages/cli/built/genaiscript.cjs run pr-review --out ./temp/genai/pr-review -prc --out-trace $GITHUB_STEP_SUMMARY --model ollama:qwen2.5-coder:7b
run: node packages/cli/built/genaiscript.cjs run pr-review --out ./temp/genai/pr-review -prc --out-trace $GITHUB_STEP_SUMMARY
env:
GITHUB_ISSUE: ${{ github.event.issue.number }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_COMMIT_SHA: ${{ fromJSON(steps.sha.outputs.result).sha }}
- name: run test within scripts
if: contains(github.event.comment.body, '/genai-test')
run: yarn test:scripts --out-summary $GITHUB_STEP_SUMMARY --test-delay 10
- name: Archive genai results
if: always()
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 4cfb2c5

Please sign in to comment.