Skip to main content

Module models

Module models 

Source

Structs§

Collaborator
CollaboratorPermissions
Comment
FileDiff
One changed file from GET /repos/{owner}/{repo}/pulls/{number}/files.
Gist
GistFile
GitCommitInfo
Nested git commit payload on PR commits (GitCommit in Gitee v5 swagger).
GitPerson
Author/committer on a git commit (GitUser in Gitee v5 swagger).
Issue
IssueRepoRef
Minimal repo reference embedded in user-level issues (GET /user/issues).
Label
Milestone
Gitee milestone. number is the id the v5 mutation endpoints take (milestone_number); title is what users type, so CLI flags accept either and resolve via Milestone::resolve.
Org
Organization from GET /user/orgs (swagger Group). List payload has login and description only — not name or membership role.
PrBranch
Gitee returns PR head/base as objects { ref, label, sha, repo, user }, not plain strings (the swagger model is wrong on this point).
PrComment
PR comment (PullRequestComments in Gitee v5 swagger). Richer than issue Comment/Note: carries optional positional fields and comment_type (diff_comment | pr_comment). position / new_line are strings in the swagger response even though create takes an int position.
PrCommit
Commit in a pull request (PullRequestCommits in Gitee v5 swagger). The swagger may describe commit as a string; live responses use a nested object.
PrRepoRef
Minimal repo reference embedded in PR head/base (includes clone URLs on live API).
PullRequest
Release
ReleaseAsset
RepoDetails
RepoInfo
SshKey
UserAssignee
PR reviewer/tester membership (UserAssignee in Gitee v5 swagger). Extends the basic user shape with optional accept (审查通过).
UserBasic
Webhook

Enums§

IssueState
Gitee lifecycle state. Unknown values deserialize to Unknown (forward-compatible); serialization always emits the API string, so --json output is unchanged for known states.
MergeMethod
Gitee merge methods for PR merge (form field merge_method).
PrCommentKind
CLI --type for pr comment list. Ops maps to Gitee comment_type (diff_comment | pr_comment).
PrState
Gitee lifecycle state. Unknown values deserialize to Unknown (forward-compatible); serialization always emits the API string, so --json output is unchanged for known states.