Skip to content

Commit 98713cf

Browse files
authored
Merge pull request #1900 from githubnext/copilot/debug-agentic-workflow-failure-64ce097f-7d40-48e9-9768-45c24f8fcc7b
Fix failure-issue generation to avoid linking successful runs for `test-copilot-add-comment`
2 parents 4caf77a + f4a6630 commit 98713cf

1 file changed

Lines changed: 1 addition & 11 deletions

File tree

e2e.sh

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2055,16 +2055,6 @@ run_report() {
20552055
--json databaseId,conclusion \
20562056
--jq '.[] | select(.conclusion == "failure" or .conclusion == "cancelled" or .conclusion == "timed_out") | .databaseId' 2>/dev/null | head -1 || echo "")
20572057

2058-
# Fall back to most recent run if no conclusively-failed run found
2059-
if [[ -z "$run_id" ]]; then
2060-
run_id=$(gh run list \
2061-
--repo "$repo_full" \
2062-
--workflow="$workflow_file" \
2063-
--limit=1 \
2064-
--json databaseId \
2065-
--jq '.[0].databaseId' 2>/dev/null || echo "")
2066-
fi
2067-
20682058
if [[ -n "$run_id" ]]; then
20692059
run_url="https://github.com/$repo_full/actions/runs/$run_id"
20702060
fi
@@ -2090,7 +2080,7 @@ Debug this workflow failure using your favorite Agent CLI and the agentic-workfl
20902080
20912081
* Start your agent
20922082
* Load the agentic-workflows prompt from \`.github/agents/agentic-workflows.agent.md\` or https://github.com/github/gh-aw/blob/main/.github/agents/agentic-workflows.agent.md
2093-
* Type \`debug the agentic workflow repo-assist failure in $run_ref\`
2083+
* Type \`debug the agentic workflow $test_name failure in $run_ref\`
20942084
ISSUEBODY
20952085
)
20962086

0 commit comments

Comments
 (0)