Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/scripts/select-eval-agents-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,22 +47,20 @@ host_files:
dest: /sandbox/workspace/.env.d/gcp-vertex.env
- src: ${GOOGLE_APPLICATION_CREDENTIALS}
dest: /tmp/.gcp-credentials.json
forge:
github:
overlays:
- when: 'runtime.forge == "github"'
providers:
- providers/github-ro.yaml
openshell:
profiles:
- profiles/fullsend-github-ro.yaml
pre_script: scripts/forge-pre-triage.sh
post_script: scripts/forge-post-triage.sh
skills:
- skills/github-forge
- skills/issue-labels/github
host_files:
- src: env/github/triage.env
dest: /sandbox/workspace/.env.d/triage.env
gitlab:
- when: 'runtime.forge == "gitlab"'
policy: policies/gitlab/triage.yaml
skills:
- skills/gitlab-forge
Expand Down Expand Up @@ -316,8 +314,8 @@ cleanup_fixture "$FIXTURE"
# ---------------------------------------------------------------------------
run_test
Comment thread
ralphbean marked this conversation as resolved.
FIXTURE="$(setup_fixture)"
RESULT=$(echo "scripts/forge-pre-triage.sh" | "$SELECT_SCRIPT" --repo-root "$FIXTURE")
if [[ "$RESULT" == "triage" ]]; then
RESULT=$(echo "scripts/pre-review.sh" | "$SELECT_SCRIPT" --repo-root "$FIXTURE")
Comment thread
ralphbean marked this conversation as resolved.
if [[ "$RESULT" == "review" ]]; then
pass "forge script change selects agent"
else
fail "forge script change selects agent (got: '$RESULT')"
Expand Down
3 changes: 2 additions & 1 deletion .github/scripts/select-eval-agents.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ extract_refs() {
(.plugins[]?),
(.providers[]?),
(.openshell?.profiles[]?),
(.forge[]? | (.pre_script, .post_script, .policy, (.skills[]?), (.host_files[]?.src), (.providers[]?), (.openshell?.profiles[]?)))
(.forge[]? | (.pre_script, .post_script, .policy, (.skills[]?), (.host_files[]?.src), (.providers[]?), (.openshell?.profiles[]?))),
(.overlays[]? | (.pre_script, .post_script, .policy, (.skills[]?), (.host_files[]?.src), (.providers[]?), (.openshell?.profiles[]?)))
] | .[] | select(. != null)
' "$harness_file" | { grep -v '\$' || true; } | sort -u
}
Expand Down
8 changes: 4 additions & 4 deletions harness/triage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ env:
TRIAGE_AUTO_CODE: "on"
TRIAGE_AUTO_CODE_CATEGORIES: "bug,documentation,performance"

forge:
github:
overlays:
- when: 'runtime.forge == "github"'
providers:
- providers/github-ro.yaml
openshell:
Expand All @@ -68,7 +68,7 @@ forge:
ISSUE_URL: "${GITHUB_ISSUE_URL}"
GH_TOKEN: "${GH_TOKEN}"
FULLSEND_FORGE: github
gitlab:
- when: 'runtime.forge == "gitlab"'
policy: policies/gitlab/triage.yaml
skills:
- skills/gitlab-forge
Expand All @@ -86,7 +86,7 @@ forge:
ISSUE_URL: "${GITLAB_ISSUE_URL}"
GITLAB_TOKEN: "${GITLAB_TOKEN}"
FULLSEND_FORGE: gitlab
jira:
- when: 'runtime.forge == "jira"'
policy: policies/jira/triage.yaml
skills:
- skills/jira-forge
Expand Down
Loading