fix: rename --github flag to --git for generic git provider support#277
Conversation
|
this is an overkill, we should just call that option "Git" and not add other sub-options as they are functionality exactly the same. |
|
Simplified per feedback — removed the GitHub/GitLab/Bitbucket dropdown. Now just a single "Git Repository" option with a plain URL input. Source type is auto-detected from the URL (gitlab.com → gitlab, bitbucket.org → bitbucket, otherwise github). |
|
can you update the PR description per the template? |
peterj
left a comment
There was a problem hiding this comment.
can you update the PR template and if you could also update the flags we use in the CLI -- currently, those are --github, we should rename them to --git so they are generic and comparable to the UI.
Similarly, we'll need to update the "Source" field in the "SkillRepository", so we're setting it to "git", not "github".
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
Done - renamed |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
All feedback addressed in c4d8867:
|
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
4 similar comments
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
There are other instances where "github" is used -- especially here: -- I think this is used in the validation logic and right now it's explicitly checking github/gitlab. This needs to be updated too and we have to ensure this logic works and it's solid. |
…gentregistry-dev#265) The Add Skill dialog only offered "GitHub Repository" as the repository source option. This adds a source dropdown (GitHub/GitLab/Bitbucket) matching the pattern already used in the Add Server dialog. - Rename publish source from "github" to "repository" with a separate source selector - Add dropdown with GitHub, GitLab, and Bitbucket options - Update labels from "GitHub Repository" to "Git Repository" - Pass selected source to the API via repository.source field Co-Authored-By: Claude Opus 4.6 <[email protected]>
Per review feedback: removed GitHub/GitLab/Bitbucket dropdown and replaced with a single "Git Repository" option. Source type is auto-detected from the repository URL. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Per review feedback, rename the CLI flag from --github to --git and set SkillRepository.Source to "git" instead of "github" to be generic and consistent with the UI changes. - Rename --github flag to --git in skill publish command - Update Source field to "git" in all skill publish paths - Update pull.go to accept both "git" and "github" for backwards compat - Update error messages and tests accordingly Co-Authored-By: Claude Opus 4.6 <[email protected]>
Address review feedback: the Source field in SkillRepository should always be "git" rather than conditionally detecting github/gitlab/bitbucket from the URL. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Update unit test (TestSkillPublishFlags) and e2e tests (skill_publish_test.go) to match the renamed --git flag and "git" source value. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Rename the --github CLI flag to --git in agent, mcp, and skill publish commands to make them generic for any git provider (GitHub, GitLab, Bitbucket). Also updates Source field from "github" to "git" and adds backward compatibility in pull/runtime to accept both values. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1b75f37 to
0db5bec
Compare
|
@optimus-fulcria I've taken over this PR for now and will take it to completion. You've been doing a 100% AI code here and it's just not working out. |
Signed-off-by: Peter Jausovec <[email protected]>
|
Thanks for taking this over, Peter. Understood on the AI code quality concerns -- I'll work on being more thorough with manual testing and validation before pushing changes. Appreciate the patience and the detailed feedback throughout. |
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
Per review feedback, remove the source field check so any repository with a valid URL is accepted regardless of source type. Co-Authored-By: Claude Opus 4.6 <[email protected]>
|
You already have 3 pull requests open. Please consider working on getting the existing ones merged before opening new ones. Thanks! |
|
All feedback addressed: |
- Replace deprecated --github flag with --git (renamed in agentregistry-dev#277) - Use createSkillDir helper instead of inline dir creation - Add t.Cleanup to delete remaining versions in promote test Co-Authored-By: Claude Opus 4.6 <[email protected]>
Description
--githubCLI flag was too specific — it should support any git provider (GitHub, GitLab, Bitbucket). Fixes No option in the UI for GitLab repo #265.--githubflag to--gitacrossagent publish,mcp publish, andskill publishcommandsRepository.Sourcefrom"github"to"git"in all publish pathsgithubRepository→gitRepository,GithubURL→GitURL) for consistencyChange Type
/kind fix
Changelog
Additional Notes
checkGitHubSkillMdExistsfunction andgithubRawBaseURLvariable are intentionally left unchanged — they are internal implementation details specific to GitHub raw content verification, not user-facing.SkillRepositoryis now strictly"git"— the previous backward-compat check for"github"has been removed.