Download benchmarks/evals/commit_no_markdown/task.yml from SaylorTwift/forgecode: direct link, hf CLI and curl.
- Browser
- Download file 1.44 kB
-
https://huggingface.co/SaylorTwift/forgecode/resolve/main/benchmarks/evals/commit_no_markdown/task.yml
- Command line
-
hf download hf://SaylorTwift/forgecode/benchmarks/evals/commit_no_markdown/task.yml
-
curl -L -o task.yml https://huggingface.co/SaylorTwift/forgecode/resolve/main/benchmarks/evals/commit_no_markdown/task.yml
1.44 kB
| run: | |
| - mkdir -p test_repo | |
| - cd test_repo && git init | |
| - cd test_repo && git config user.email "test@example.com" | |
| - cd test_repo && git config user.name "Test User" | |
| - | | |
| cat > test_repo/example.js << 'EOF' | |
| function hello() { | |
| console.log("Hello World"); | |
| } | |
| EOF | |
| - cd test_repo && git add example.js | |
| - cd test_repo && git commit -m "initial commit" | |
| - | | |
| cat > test_repo/example.js << 'EOF' | |
| function hello(name) { | |
| console.log(`Hello ${name}!`); | |
| } | |
| function goodbye(name) { | |
| console.log(`Goodbye ${name}!`); | |
| } | |
| EOF | |
| - cd test_repo && git add example.js | |
| - cd test_repo && forgee --provider {{provider}} --model {{model}} commit --preview | |
| parallelism: 2 | |
| timeout: 120 | |
| validations: | |
| - name: "Should generate conventional commit message" | |
| type: regex | |
| regex: "(feat|fix|refactor|chore|docs|style|test|perf)(\\(|:)" | |
| - name: "Should NOT contain markdown code block with json" | |
| type: shell | |
| command: "! grep -qE '```json'" | |
| - name: "Should NOT contain plain code block markers" | |
| type: shell | |
| command: "! grep -qE '^```$'" | |
| - name: "Should NOT contain backticks wrapping commit message" | |
| type: shell | |
| command: "! grep -qE '`(feat|fix|refactor|chore|docs|style|test|perf)\\('" | |
| sources: | |
| - value: | |
| - provider: "anthropic" | |
| model: "claude-sonnet-4-5-20250929" | |
| - provider: "open_router" | |
| model: "z-ai/glm-4.7" | |