feat/issue45-organizations
main
實作 tea organizations 對等的日常操作(#45)。
teai organizations list
teai orgs
tea organizations list --output json
teai organizations create --name <org> [--full-name …] [--description …] [--website …] [--location …] [--visibility public|limited|private] --yes
teai organizations delete <org> --yes
Closes #45
tea organizations 對等的日常操作: - organizations list:GET /user/orgs,輸出 name/full_name/website/ location/description/visibility(與 teai orgs 工作流命令同一 端點,但輸出完整欄位) - organizations create:POST /orgs,--name 必填,可選 --full-name/ --description/--website/--location/--visibility;寫入需 --yes - organizations delete:DELETE /orgs/{org},組織名為位置參數 (tea 相容);寫入需 --yes 驗收測試涵蓋端點、payload、--yes 閘門(未確認不發請求)與 值域檢查;並以本機建置對 Gitea 實測 list 輸出欄位與 tea 一致。
補充:此 PR 是 #45 的實作(branch feat/issue45-organizations、commit 8d446ed)。本機已實測:organizations list 對本站輸出 [{"name":"alterminal",...}] 與 tea 一致;create 未帶 --yes 時 exit 2 且不發請求。麻煩審核。
organizations list
create
No dependencies set.
The note is not visible to the blocked user.
實作 tea organizations 對等的日常操作(#45)。
內容
teai organizations list:GET /user/orgs,輸出 name/full_name/website/location/description/visibility。與既有teai orgs(工作流精簡版,只輸出帳號)同一端點,此為完整欄位版,輸出欄位與tea organizations list --output json一致。teai organizations create --name <org> [--full-name …] [--description …] [--website …] [--location …] [--visibility public|limited|private] --yes:POST /orgs。組織名改用 --name 旗標(teai 慣例,與 issues create --title 等一致;tea 用位置參數)。teai organizations delete <org> --yes:DELETE /orgs/{org},組織名為位置參數(tea 相容)。慣例
測試
Closes #45
tea organizations 對等的日常操作: - organizations list:GET /user/orgs,輸出 name/full_name/website/ location/description/visibility(與 teai orgs 工作流命令同一 端點,但輸出完整欄位) - organizations create:POST /orgs,--name 必填,可選 --full-name/ --description/--website/--location/--visibility;寫入需 --yes - organizations delete:DELETE /orgs/{org},組織名為位置參數 (tea 相容);寫入需 --yes 驗收測試涵蓋端點、payload、--yes 閘門(未確認不發請求)與 值域檢查;並以本機建置對 Gitea 實測 list 輸出欄位與 tea 一致。補充:此 PR 是 #45 的實作(branch feat/issue45-organizations、commit 8d446ed)。本機已實測:
organizations list對本站輸出 [{"name":"alterminal",...}] 與 tea 一致;create未帶 --yes 時 exit 2 且不發請求。麻煩審核。