forked from Gitlink/gitlink-cli
Adds a repo +edit shortcut that updates repository metadata via PATCH /:owner/:repo.json: --description, --website, --private, --default-branch, --category-id, --language-id. The server dispatches on which key is present (website, default_branch, or general metadata) and the metadata path validates name/identifier, so the command resolves them from the repository detail first and sends each field group as its own request. Requires at least one field and validates --private and integer IDs before any API call. Production-verified against gitlink.org.cn (description/website update and default-branch round-trip). Includes 6 unit tests and bilingual README examples plus en-US/zh-CN i18n keys. Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| cmd/check | ||
| locales | ||
| schema | ||
| args.go | ||
| doc.go | ||
| loader.go | ||
| locale.go | ||
| locale_test.go | ||
| options.go | ||
| resolver.go | ||
| resolver_test.go | ||
| template.go | ||
| template_test.go | ||
| translator.go | ||
| translator_test.go | ||
| validate.go | ||
| validate_test.go | ||