From 8ee966b7affd1d386a8dd37ae6246405f11f88c0 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Mar 2026 11:26:58 +0000 Subject: [PATCH 1/2] Initial plan From 55069994b70a1eed1616f99df16377adf50d85df Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Mar 2026 11:38:03 +0000 Subject: [PATCH 2/2] Fix syntax-check docs URL mapping in getActionlintDocsURL MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `syntax-check` is actionlint's general YAML syntax error kind (unexpected keys, missing required fields, etc.) — not expression-specific. Map it to `check-unexpected-keys` instead of the incorrect `check-syntax-expression`. Also adds a test case for the `syntax-check` kind. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> Agent-Logs-Url: https://github.com/github/gh-aw/sessions/e0d31ab5-a7b1-4bfe-a8ab-49a097379915 --- pkg/cli/actionlint.go | 2 +- pkg/cli/actionlint_test.go | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/pkg/cli/actionlint.go b/pkg/cli/actionlint.go index ddbbdbdbb1d..b04ca6fa180 100644 --- a/pkg/cli/actionlint.go +++ b/pkg/cli/actionlint.go @@ -43,7 +43,7 @@ func getActionlintDocsURL(kind string) string { case "expression": anchor = "check-syntax-expression" case "syntax-check": - anchor = "check-syntax-expression" + anchor = "check-unexpected-keys" default: // For other kinds, try the standard "check-{kind}" pattern if !strings.HasPrefix(anchor, "check-") { diff --git a/pkg/cli/actionlint_test.go b/pkg/cli/actionlint_test.go index 17a0bb9f0a3..8d61093b6c4 100644 --- a/pkg/cli/actionlint_test.go +++ b/pkg/cli/actionlint_test.go @@ -298,6 +298,11 @@ func TestGetActionlintDocsURL(t *testing.T) { kind: "expression", expected: "https://github.com/rhysd/actionlint/blob/main/docs/checks.md#check-syntax-expression", }, + { + name: "syntax-check kind", + kind: "syntax-check", + expected: "https://github.com/rhysd/actionlint/blob/main/docs/checks.md#check-unexpected-keys", + }, { name: "generic kind with check- prefix", kind: "check-job-deps",