fix(cli): direct GitHub repos to gh-aw for compile/init#447
Merged
Conversation
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/975e9c1e-543c-479c-882a-e61fd6fd4146 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/975e9c1e-543c-479c-882a-e61fd6fd4146 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/975e9c1e-543c-479c-882a-e61fd6fd4146 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
jamesadevine
May 7, 2026 20:32
View session
Collaborator
|
@copilot gh-aw is now in github/gh-aw org. Update the urls. |
Collaborator
|
@copilot what happens if the remote is not origin? What happens if the GitHub remote is an upstream repo and the current repo is actually hosted ado? |
Agent-Logs-Url: https://github.com/githubnext/ado-aw/sessions/34b6e9ca-f148-4d5e-bfe1-f273719c7b61 Co-authored-by: jamesadevine <4742697+jamesadevine@users.noreply.github.com>
Contributor
Author
Updated in commit |
Contributor
Author
Current behavior checks only |
jamesadevine
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
ado-awcurrently allowscompile/initto run in GitHub repos, which is the wrong workflow target and leads to unclear outcomes for users and agents. This change adds an early remote check and returns a clear, actionable error that points GitHub-hosted repos togh-aw.Remote classification guard
originforms (https://github.com/...,git@github.com:...,ssh://git@github.com/...).compileandinit.Actionable failure message
originis GitHub, command exits with explicit guidance:ado-awis for Azure DevOps repos.gh-aw:https://github.com/github/gh-aw.Test compatibility + coverage
Test plan
Covered by existing Rust test suite with new unit tests for remote detection paths, plus targeted validation of the remote-detection tests after the URL correction.