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
2 changes: 1 addition & 1 deletion .github/aw/create-shared-agentic-workflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ mcp-servers:
```yaml
mcp-servers:
serena:
container: "ghcr.io/githubnext/serena-mcp-server"
container: "ghcr.io/github/serena-mcp-server"
version: "latest"
args: # args come before the docker image argument
- "-v"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/agent-performance-analyzer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/agent-persona-explorer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions .github/workflows/daily-fact.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/daily-observability-report.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/example-workflow-analyzer.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/metrics-collector.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/python-data-charts.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/security-review.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .github/workflows/smoke-copilot.lock.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pkg/cli/copilot_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install gh-aw extension
uses: githubnext/gh-aw/actions/setup-cli%s
uses: github/gh-aw/actions/setup-cli%s
with:
version: %s
`, actionRef, version)
Expand Down Expand Up @@ -281,7 +281,7 @@ func upgradeSetupCliVersion(workflow *Workflow, actionMode workflow.ActionMode,
oldUses := step.Uses
if actionMode.IsRelease() {
// Update to the new version tag
newUses := fmt.Sprintf("githubnext/gh-aw/actions/setup-cli%s", actionRef)
newUses := fmt.Sprintf("github/gh-aw/actions/setup-cli%s", actionRef)
step.Uses = newUses

// Update the with.version parameter
Expand Down Expand Up @@ -321,7 +321,7 @@ func injectExtensionInstallStep(workflow *Workflow, actionMode workflow.ActionMo
}
installStep = CopilotWorkflowStep{
Name: "Install gh-aw extension",
Uses: fmt.Sprintf("githubnext/gh-aw/actions/setup-cli%s", actionRef),
Uses: fmt.Sprintf("github/gh-aw/actions/setup-cli%s", actionRef),
With: map[string]any{
"version": version,
},
Expand Down
8 changes: 4 additions & 4 deletions pkg/cli/copilot_setup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -852,7 +852,7 @@ jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- uses: githubnext/gh-aw/actions/setup-cli@v1.0.0
- uses: github/gh-aw/actions/setup-cli@v1.0.0
with:
version: v1.0.0
`
Expand Down Expand Up @@ -972,7 +972,7 @@ func TestInjectExtensionInstallStep_ReleaseMode(t *testing.T) {
if job.Steps[1].Name != "Install gh-aw extension" {
t.Errorf("Second step should be install, got: %s", job.Steps[1].Name)
}
expectedUses := "githubnext/gh-aw/actions/setup-cli@v4.5.6"
expectedUses := "github/gh-aw/actions/setup-cli@v4.5.6"
if job.Steps[1].Uses != expectedUses {
t.Errorf("Install should use %s, got: %s", expectedUses, job.Steps[1].Uses)
}
Expand Down Expand Up @@ -1056,7 +1056,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install gh-aw extension
uses: githubnext/gh-aw/actions/setup-cli@v1.0.0
uses: github/gh-aw/actions/setup-cli@v1.0.0
with:
version: v1.0.0
- name: Verify gh-aw installation
Expand Down Expand Up @@ -1203,7 +1203,7 @@ func TestUpgradeSetupCliVersion(t *testing.T) {
},
{
Name: "Install gh-aw",
Uses: "githubnext/gh-aw/actions/setup-cli@v1.0.0",
Uses: "github/gh-aw/actions/setup-cli@v1.0.0",
With: map[string]any{"version": "v1.0.0"},
},
},
Expand Down
12 changes: 6 additions & 6 deletions pkg/cli/git_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,22 @@ func TestParseGitHubRepoSlugFromURL(t *testing.T) {
{
name: "HTTPS URL with .git",
url: "https://github.com/github/gh-aw.git",
expected: "githubnext/gh-aw",
expected: "github/gh-aw",
},
{
name: "HTTPS URL without .git",
url: "https://github.com/github/gh-aw",
expected: "githubnext/gh-aw",
expected: "github/gh-aw",
},
{
name: "SSH URL with .git",
url: "git@github.com:githubnext/gh-aw.git",
expected: "githubnext/gh-aw",
url: "git@github.com:github/gh-aw.git",
expected: "github/gh-aw",
},
{
name: "SSH URL without .git",
url: "git@github.com:githubnext/gh-aw",
expected: "githubnext/gh-aw",
url: "git@github.com:github/gh-aw",
expected: "github/gh-aw",
},
{
name: "Invalid URL",
Expand Down
6 changes: 3 additions & 3 deletions pkg/cli/logs_parsing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ func TestParseLogFileWithCodexFormat(t *testing.T) {
I need to analyze the pull request details first.
[2025-08-13T00:24:50] codex

I'm ready to generate a Codex PR summary, but I need the pull request number to fetch its details. Could you please share the PR number (and confirm the repo/owner if it isn't ` + "`githubnext/gh-aw`" + `)?
I'm ready to generate a Codex PR summary, but I need the pull request number to fetch its details. Could you please share the PR number (and confirm the repo/owner if it isn't ` + "`github/gh-aw`" + `)?
[2025-08-13T00:24:50] thinking
Now I need to wait for the user's response.
[2025-08-13T00:24:50] tokens used: 13934
Expand Down Expand Up @@ -546,7 +546,7 @@ func TestExtractEngineFromAwInfoNestedDirectory(t *testing.T) {
"run_id": 123456789,
"run_number": 42,
"run_attempt": "1",
"repository": "githubnext/gh-aw",
"repository": "github/gh-aw",
"ref": "refs/heads/main",
"sha": "abc123",
"actor": "testuser",
Expand Down Expand Up @@ -591,7 +591,7 @@ func TestExtractEngineFromAwInfoNestedDirectory(t *testing.T) {
"run_id": 987654321,
"run_number": 7,
"run_attempt": "1",
"repository": "githubnext/gh-aw",
"repository": "github/gh-aw",
"ref": "refs/heads/copilot/fix-24",
"sha": "def456",
"actor": "testuser2",
Expand Down
4 changes: 2 additions & 2 deletions pkg/cli/mcp_validation.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,9 @@ func validateMCPServerConfiguration(cmdPath string) error {
fmt.Fprintln(os.Stderr, console.FormatErrorMessage(errMsg))
return fmt.Errorf("failed to run status command with custom command '%s': %w\nOutput: %s\n\nPlease ensure:\n - The command path is correct and executable\n - You are in a git repository with .github/workflows directory", cmdPath, err, string(output))
}
errMsg := fmt.Sprintf("failed to run status command: %v\nOutput: %s\n\nPlease ensure:\n - gh CLI is installed and in PATH\n - gh aw extension is installed (run: gh extension install githubnext/gh-aw)\n - You are in a git repository with .github/workflows directory", err, string(output))
errMsg := fmt.Sprintf("failed to run status command: %v\nOutput: %s\n\nPlease ensure:\n - gh CLI is installed and in PATH\n - gh aw extension is installed (run: gh extension install github/gh-aw)\n - You are in a git repository with .github/workflows directory", err, string(output))
fmt.Fprintln(os.Stderr, console.FormatErrorMessage(errMsg))
return fmt.Errorf("failed to run status command: %w\nOutput: %s\n\nPlease ensure:\n - gh CLI is installed and in PATH\n - gh aw extension is installed (run: gh extension install githubnext/gh-aw)\n - You are in a git repository with .github/workflows directory", err, string(output))
return fmt.Errorf("failed to run status command: %w\nOutput: %s\n\nPlease ensure:\n - gh CLI is installed and in PATH\n - gh aw extension is installed (run: gh extension install github/gh-aw)\n - You are in a git repository with .github/workflows directory", err, string(output))
}

// Status command succeeded - configuration is valid
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func getCurrentRepoSlugUncached() (string, error) {
parts := strings.Split(repoPath, "/")
if len(parts) != 2 || parts[0] == "" || parts[1] == "" {
repoLog.Printf("Invalid repository format: %s", repoPath)
return "", fmt.Errorf("invalid repository format: %s. Expected format: owner/repo. Example: githubnext/gh-aw", repoPath)
return "", fmt.Errorf("invalid repository format: %s. Expected format: owner/repo. Example: github/gh-aw", repoPath)
}

repoLog.Printf("Successfully parsed repository slug from git remote: %s", repoPath)
Expand Down
12 changes: 6 additions & 6 deletions pkg/cli/repo_error_messages_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ func TestRepoSlugErrorMessages(t *testing.T) {
expectInMessage: []string{
"invalid repository",
"Expected format: owner/repo",
"Example: githubnext/gh-aw",
"Example: github/gh-aw",
},
},
{
Expand All @@ -29,7 +29,7 @@ func TestRepoSlugErrorMessages(t *testing.T) {
expectInMessage: []string{
"invalid repository",
"Expected format: owner/repo",
"Example: githubnext/gh-aw",
"Example: github/gh-aw",
},
},
{
Expand All @@ -38,7 +38,7 @@ func TestRepoSlugErrorMessages(t *testing.T) {
expectInMessage: []string{
"invalid repository",
"Expected format: owner/repo",
"Example: githubnext/gh-aw",
"Example: github/gh-aw",
},
},
{
Expand All @@ -47,7 +47,7 @@ func TestRepoSlugErrorMessages(t *testing.T) {
expectInMessage: []string{
"invalid repository",
"Expected format: owner/repo",
"Example: githubnext/gh-aw",
"Example: github/gh-aw",
},
},
}
Expand Down Expand Up @@ -84,15 +84,15 @@ func TestParseRepoSpecErrorMessages(t *testing.T) {
repoSpec: "justname",
expectInMessage: []string{
"must be in format",
"Example: githubnext/gh-aw",
"Example: github/gh-aw",
},
},
{
name: "invalid format - too many parts",
repoSpec: "owner/repo/extra",
expectInMessage: []string{
"must be in format",
"Example: githubnext/gh-aw",
"Example: github/gh-aw",
},
},
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/cli/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func parseRepoSpec(repoSpec string) (*RepoSpec, error) {
// Validate repository format (org/repo)
repoParts := strings.Split(repo, "/")
if len(repoParts) != 2 || repoParts[0] == "" || repoParts[1] == "" {
return nil, fmt.Errorf("repository must be in format 'owner/repo'. Example: githubnext/gh-aw")
return nil, fmt.Errorf("repository must be in format 'owner/repo'. Example: github/gh-aw")
}
}

Expand Down
Loading
Loading