From decca8072fd4bbe5e1a146961c15c1a4e5adc129 Mon Sep 17 00:00:00 2001 From: Matt Craven <28843561+matcra587@users.noreply.github.com> Date: Wed, 6 May 2026 21:41:35 -0400 Subject: [PATCH 1/3] ci: bump github-actions workflows --- .github/workflows/actions.yml | 2 +- .github/workflows/ci.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 629ee64..a83e59e 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -19,7 +19,7 @@ permissions: {} jobs: workflow-lint: name: Workflow lint - uses: matcra587/github-actions/.github/workflows/workflow-lint.yml@8b104684e72bef79fca78b294accb5f789d3f202 + uses: matcra587/github-actions/.github/workflows/workflow-lint.yml@67f0de0d0ceebe69895e868207c04e5c66b3bde8 permissions: contents: read # security-events: write # Required for zizmor SARIF upload. diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0df0cc..b325ebb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,18 +13,18 @@ permissions: {} jobs: go-test: name: Go test - uses: matcra587/github-actions/.github/workflows/go-test.yml@8b104684e72bef79fca78b294accb5f789d3f202 + uses: matcra587/github-actions/.github/workflows/go-test.yml@67f0de0d0ceebe69895e868207c04e5c66b3bde8 permissions: contents: read go-lint: name: Go lint - uses: matcra587/github-actions/.github/workflows/go-lint.yml@8b104684e72bef79fca78b294accb5f789d3f202 + uses: matcra587/github-actions/.github/workflows/go-lint.yml@67f0de0d0ceebe69895e868207c04e5c66b3bde8 permissions: contents: read md-lint: name: Markdown lint - uses: matcra587/github-actions/.github/workflows/md-lint.yml@8b104684e72bef79fca78b294accb5f789d3f202 + uses: matcra587/github-actions/.github/workflows/md-lint.yml@67f0de0d0ceebe69895e868207c04e5c66b3bde8 permissions: contents: read From a524a22b3e8bcae66865c8ef5d940af16a35972a Mon Sep 17 00:00:00 2001 From: Matt Craven <28843561+matcra587@users.noreply.github.com> Date: Wed, 6 May 2026 23:08:28 -0400 Subject: [PATCH 2/3] ci: exclude agent instruction docs from rumdl --- .rumdl.toml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.rumdl.toml b/.rumdl.toml index 3a88ed1..cf6da96 100644 --- a/.rumdl.toml +++ b/.rumdl.toml @@ -10,8 +10,9 @@ respect_gitignore = true exclude = [ ".git", + ".agents", + ".claude", ".github", - ".claude/rules", "build", "dist", "node_modules", From 8e7854a53ba5d818165850c9c3a63cc1599ad44b Mon Sep 17 00:00:00 2001 From: Matt Craven <28843561+matcra587@users.noreply.github.com> Date: Wed, 6 May 2026 23:16:36 -0400 Subject: [PATCH 3/3] test: isolate agent detection from CI env --- cmd/slack/main_test.go | 11 +++++++++++ internal/agent/detect_test.go | 12 ++++++++++++ 2 files changed, 23 insertions(+) diff --git a/cmd/slack/main_test.go b/cmd/slack/main_test.go index 7d74e54..17615ee 100644 --- a/cmd/slack/main_test.go +++ b/cmd/slack/main_test.go @@ -15,6 +15,17 @@ import ( "github.com/spf13/cobra" ) +func TestMain(m *testing.M) { + clearAmbientAgentEnvironment() + os.Exit(m.Run()) +} + +func clearAmbientAgentEnvironment() { + for _, key := range agent.KnownEnvVars() { + _ = os.Unsetenv(key) + } +} + func TestNewRootCommandDefinesPersistentFlags(t *testing.T) { cmd := NewRootCommand() if cmd.Use != "slack" { diff --git a/internal/agent/detect_test.go b/internal/agent/detect_test.go index 235fe1c..9c5ee82 100644 --- a/internal/agent/detect_test.go +++ b/internal/agent/detect_test.go @@ -1,11 +1,23 @@ package agent_test import ( + "os" "testing" "github.com/matcra587/slack-cli/internal/agent" ) +func TestMain(m *testing.M) { + clearAmbientAgentEnvironment() + os.Exit(m.Run()) +} + +func clearAmbientAgentEnvironment() { + for _, key := range agent.KnownEnvVars() { + _ = os.Unsetenv(key) + } +} + func TestDetectRecognizesAIAgentEnvironmentList(t *testing.T) { tests := []struct { env string