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
4 changes: 0 additions & 4 deletions docs/src/content/docs/agent-factory-status.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -238,11 +238,7 @@ These are experimental agentic workflows used by the GitHub Next team to learn,
| [Super Linter Report](https://github.com/github/gh-aw/blob/main/.github/workflows/super-linter.md) | copilot | [![Super Linter Report](https://github.com/github/gh-aw/actions/workflows/super-linter.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/super-linter.lock.yml) | `daily around 14:00 on weekdays` | - |
| [Team Status](https://github.com/github/gh-aw/blob/main/.github/workflows/daily-team-status.md) | copilot | [![Team Status](https://github.com/github/gh-aw/actions/workflows/daily-team-status.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/daily-team-status.lock.yml) | - | - |
| [Terminal Stylist](https://github.com/github/gh-aw/blob/main/.github/workflows/terminal-stylist.md) | copilot | [![Terminal Stylist](https://github.com/github/gh-aw/actions/workflows/terminal-stylist.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/terminal-stylist.lock.yml) | - | - |
| [Test Create PR Error Handling](https://github.com/github/gh-aw/blob/main/.github/workflows/test-create-pr-error-handling.md) | claude | [![Test Create PR Error Handling](https://github.com/github/gh-aw/actions/workflows/test-create-pr-error-handling.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/test-create-pr-error-handling.lock.yml) | - | - |
| [Test Dispatcher Workflow](https://github.com/github/gh-aw/blob/main/.github/workflows/test-dispatcher.md) | copilot | [![Test Dispatcher Workflow](https://github.com/github/gh-aw/actions/workflows/test-dispatcher.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/test-dispatcher.lock.yml) | - | - |
| [Test Project URL Explicit Requirement](https://github.com/github/gh-aw/blob/main/.github/workflows/test-project-url-default.md) | copilot | [![Test Project URL Explicit Requirement](https://github.com/github/gh-aw/actions/workflows/test-project-url-default.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/test-project-url-default.lock.yml) | - | - |
| [Test Quality Sentinel](https://github.com/github/gh-aw/blob/main/.github/workflows/test-quality-sentinel.md) | copilot | [![Test Quality Sentinel](https://github.com/github/gh-aw/actions/workflows/test-quality-sentinel.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/test-quality-sentinel.lock.yml) | - | - |
| [Test Workflow](https://github.com/github/gh-aw/blob/main/.github/workflows/test-workflow.md) | copilot | [![Test Workflow](https://github.com/github/gh-aw/actions/workflows/test-workflow.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/test-workflow.lock.yml) | - | - |
| [The Daily Repository Chronicle](https://github.com/github/gh-aw/blob/main/.github/workflows/daily-repo-chronicle.md) | copilot | [![The Daily Repository Chronicle](https://github.com/github/gh-aw/actions/workflows/daily-repo-chronicle.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/daily-repo-chronicle.lock.yml) | `daily around 16:00 on weekdays` | - |
Comment on lines 238 to 242
| [The Great Escapi](https://github.com/github/gh-aw/blob/main/.github/workflows/firewall-escape.md) | copilot | [![The Great Escapi](https://github.com/github/gh-aw/actions/workflows/firewall-escape.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/firewall-escape.lock.yml) | - | - |
| [Tidy](https://github.com/github/gh-aw/blob/main/.github/workflows/tidy.md) | copilot | [![Tidy](https://github.com/github/gh-aw/actions/workflows/tidy.lock.yml/badge.svg)](https://github.com/github/gh-aw/actions/workflows/tidy.lock.yml) | `daily around 7:00` | - |
Expand Down
32 changes: 18 additions & 14 deletions pkg/cli/add_command_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,18 +142,26 @@ func TestAddWorkflows(t *testing.T) {

func TestAddResolvedWorkflows(t *testing.T) {
tests := []struct {
name string
expectError bool
errorContains string
name string
}{
{
name: "valid workflow",
expectError: true, // Will still error due to missing git repo, but validates basic flow
name: "valid workflow",
},
}

for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
tmpDir := t.TempDir()
oldWd, err := os.Getwd()
require.NoError(t, err)
require.NoError(t, os.Chdir(tmpDir))
defer func() {
require.NoError(t, os.Chdir(oldWd))
}()
Comment on lines +155 to +160
gitInit := exec.Command("git", "init")
gitInit.Dir = tmpDir
require.NoError(t, gitInit.Run())

// Create a minimal resolved workflow structure
resolved := &ResolvedWorkflows{
Workflows: []*ResolvedWorkflow{
Expand All @@ -170,21 +178,17 @@ func TestAddResolvedWorkflows(t *testing.T) {
}

opts := AddOptions{}
_, err := AddResolvedWorkflows(
_, err = AddResolvedWorkflows(
context.Background(),
[]string{"test/repo/test-workflow"},
resolved,
opts,
)
require.NoError(t, err, "Should not error for test case: %s", tt.name)

if tt.expectError {
require.Error(t, err, "Expected error for test case: %s", tt.name)
if tt.errorContains != "" {
assert.Contains(t, err.Error(), tt.errorContains, "Error should contain expected message")
}
} else {
assert.NoError(t, err, "Should not error for test case: %s", tt.name)
}
workflowPath := filepath.Join(tmpDir, ".github", "workflows", "test-workflow.md")
_, err = os.Stat(workflowPath)
require.NoError(t, err, "workflow should be written to the temporary workflows directory")
})
}
}
Expand Down
26 changes: 26 additions & 0 deletions pkg/cli/workflows/shared/otlp.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
network:
allowed:
- "*.sentry.io"
- "*.grafana.net"
observability:
otlp:
endpoint:
- url: ${{ secrets.GH_AW_OTEL_SENTRY_ENDPOINT }}
headers:
Authorization: ${{ secrets.GH_AW_OTEL_SENTRY_AUTHORIZATION }}
- url: ${{ secrets.GH_AW_OTEL_GRAFANA_ENDPOINT }}
headers:
Authorization: ${{ secrets.GH_AW_OTEL_GRAFANA_AUTHORIZATION }}
---

<!--
## Required secrets

Consumers of this shared import must provision the following secrets:

- `GH_AW_OTEL_SENTRY_ENDPOINT`
- `GH_AW_OTEL_SENTRY_AUTHORIZATION`
- `GH_AW_OTEL_GRAFANA_ENDPOINT`
- `GH_AW_OTEL_GRAFANA_AUTHORIZATION`
-->
File renamed without changes.