@oh-gc/cli 0.6.1 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +103 -89
- package/dist/api/repos.d.ts +150 -0
- package/dist/api/repos.js +116 -0
- package/dist/api/repos.js.map +1 -1
- package/dist/commands/issue/close.js +1 -1
- package/dist/commands/issue/history.js +1 -1
- package/dist/commands/issue/labels.js +1 -1
- package/dist/commands/issue/reactions.js +1 -1
- package/dist/commands/issue/reopen.js +1 -1
- package/dist/commands/issue/update.js +1 -1
- package/dist/commands/pr/close.js +1 -1
- package/dist/commands/pr/comment.js +1 -1
- package/dist/commands/pr/reactions.js +1 -1
- package/dist/commands/pr/reopen.js +1 -1
- package/dist/commands/repo/archive.d.ts +12 -0
- package/dist/commands/repo/archive.js +46 -0
- package/dist/commands/repo/archive.js.map +1 -0
- package/dist/commands/repo/contributors.d.ts +15 -0
- package/dist/commands/repo/contributors.js +91 -0
- package/dist/commands/repo/contributors.js.map +1 -0
- package/dist/commands/repo/create.d.ts +24 -0
- package/dist/commands/repo/create.js +74 -0
- package/dist/commands/repo/create.js.map +1 -0
- package/dist/commands/repo/delete.d.ts +11 -0
- package/dist/commands/repo/delete.js +46 -0
- package/dist/commands/repo/delete.js.map +1 -0
- package/dist/commands/repo/events.d.ts +16 -0
- package/dist/commands/repo/events.js +72 -0
- package/dist/commands/repo/events.js.map +1 -0
- package/dist/commands/repo/fork.d.ts +13 -0
- package/dist/commands/repo/fork.js +56 -0
- package/dist/commands/repo/fork.js.map +1 -0
- package/dist/commands/repo/forks.d.ts +13 -0
- package/dist/commands/repo/forks.js +66 -0
- package/dist/commands/repo/forks.js.map +1 -0
- package/dist/commands/repo/languages.d.ts +10 -0
- package/dist/commands/repo/languages.js +56 -0
- package/dist/commands/repo/languages.js.map +1 -0
- package/dist/commands/repo/list.d.ts +18 -0
- package/dist/commands/repo/list.js +89 -0
- package/dist/commands/repo/list.js.map +1 -0
- package/dist/commands/repo/module.d.ts +17 -0
- package/dist/commands/repo/module.js +69 -0
- package/dist/commands/repo/module.js.map +1 -0
- package/dist/commands/repo/roles.d.ts +10 -0
- package/dist/commands/repo/roles.js +53 -0
- package/dist/commands/repo/roles.js.map +1 -0
- package/dist/commands/repo/settings.d.ts +17 -0
- package/dist/commands/repo/settings.js +82 -0
- package/dist/commands/repo/settings.js.map +1 -0
- package/dist/commands/repo/stats.d.ts +16 -0
- package/dist/commands/repo/stats.js +92 -0
- package/dist/commands/repo/stats.js.map +1 -0
- package/dist/commands/repo/transition.d.ts +11 -0
- package/dist/commands/repo/transition.js +67 -0
- package/dist/commands/repo/transition.js.map +1 -0
- package/dist/commands/user/emails.js +1 -1
- package/dist/commands/user/followers.js +1 -1
- package/dist/commands/user/following.js +1 -1
- package/dist/commands/user/view.js +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
A command-line interface for [GitCode](https://gitcode.com), modeled after GitHub CLI (`gh`). Manage issues, pull requests, and authentication without leaving the terminal.
|
|
4
4
|
|
|
5
5
|
```
|
|
6
|
-
oh-gc issue
|
|
7
|
-
oh-gc issue
|
|
8
|
-
oh-gc pr
|
|
9
|
-
oh-gc pr
|
|
6
|
+
oh-gc issue list
|
|
7
|
+
oh-gc issue view 12
|
|
8
|
+
oh-gc pr create --title "Fix login bug" --base main
|
|
9
|
+
oh-gc pr merge 5 --method squash
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
---
|
|
@@ -37,7 +37,7 @@ npm link
|
|
|
37
37
|
**1. Log in with your GitCode personal access token:**
|
|
38
38
|
|
|
39
39
|
```bash
|
|
40
|
-
oh-gc auth
|
|
40
|
+
oh-gc auth login
|
|
41
41
|
# Enter your GitCode personal access token: ••••••••••
|
|
42
42
|
# Logged in as yourname (Your Name)
|
|
43
43
|
```
|
|
@@ -48,13 +48,13 @@ Get a token at: **GitCode → Settings → Access Tokens**
|
|
|
48
48
|
|
|
49
49
|
```bash
|
|
50
50
|
cd your-project # must be a git repo with a gitcode.com remote
|
|
51
|
-
oh-gc issue
|
|
51
|
+
oh-gc issue list
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
If your remote is not named `origin`, configure it:
|
|
55
55
|
|
|
56
56
|
```bash
|
|
57
|
-
oh-gc repo
|
|
57
|
+
oh-gc repo set-remote upstream
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
---
|
|
@@ -65,143 +65,157 @@ oh-gc repo:set-remote upstream
|
|
|
65
65
|
|
|
66
66
|
| Command | Description | Docs |
|
|
67
67
|
|---------|-------------|------|
|
|
68
|
-
| `oh-gc auth
|
|
69
|
-
| `oh-gc auth
|
|
70
|
-
| `oh-gc auth
|
|
68
|
+
| `oh-gc auth login` | Log in with a personal access token | [→ Details](docs/commands/en/auth.md#oh-gc-auth-login) |
|
|
69
|
+
| `oh-gc auth logout` | Remove stored token | [→ Details](docs/commands/en/auth.md#oh-gc-auth-logout) |
|
|
70
|
+
| `oh-gc auth status` | Show currently logged-in user | [→ Details](docs/commands/en/auth.md#oh-gc-auth-status) |
|
|
71
71
|
|
|
72
72
|
### Issues
|
|
73
73
|
| Command | Description | Docs |
|
|
74
74
|
|---------|-------------|------|
|
|
75
|
-
| `oh-gc issue
|
|
76
|
-
| `oh-gc issue
|
|
77
|
-
| `oh-gc issue
|
|
78
|
-
| `oh-gc issue
|
|
79
|
-
| `oh-gc issue
|
|
80
|
-
| `oh-gc issue
|
|
81
|
-
| `oh-gc issue
|
|
82
|
-
| `oh-gc issue
|
|
83
|
-
| `oh-gc issue
|
|
84
|
-
| `oh-gc issue
|
|
75
|
+
| `oh-gc issue list` | List issues | [→ Details](docs/commands/en/issue.md#oh-gc-issue-list) |
|
|
76
|
+
| `oh-gc issue view` | View issue details | [→ Details](docs/commands/en/issue.md#oh-gc-issue-view) |
|
|
77
|
+
| `oh-gc issue create` | Create an issue | [→ Details](docs/commands/en/issue.md#oh-gc-issue-create) |
|
|
78
|
+
| `oh-gc issue update` | Update an issue | [→ Details](docs/commands/en/issue.md#oh-gc-issue-update) |
|
|
79
|
+
| `oh-gc issue close` | Close an issue | [→ Details](docs/commands/en/issue.md#oh-gc-issue-close) |
|
|
80
|
+
| `oh-gc issue reopen` | Reopen a closed issue | [→ Details](docs/commands/en/issue.md#oh-gc-issue-reopen) |
|
|
81
|
+
| `oh-gc issue comment` | Add a comment | [→ Details](docs/commands/en/issue.md#oh-gc-issue-comment) |
|
|
82
|
+
| `oh-gc issue history` | View modification history | [→ Details](docs/commands/en/issue.md#oh-gc-issue-history) |
|
|
83
|
+
| `oh-gc issue labels` | Add or remove labels | [→ Details](docs/commands/en/issue.md#oh-gc-issue-labels) |
|
|
84
|
+
| `oh-gc issue reactions` | List reactions | [→ Details](docs/commands/en/issue.md#oh-gc-issue-reactions) |
|
|
85
85
|
|
|
86
86
|
### Pull Requests
|
|
87
87
|
| Command | Description | Docs |
|
|
88
88
|
|---------|-------------|------|
|
|
89
|
-
| `oh-gc pr
|
|
90
|
-
| `oh-gc pr
|
|
91
|
-
| `oh-gc pr
|
|
92
|
-
| `oh-gc pr
|
|
93
|
-
| `oh-gc pr
|
|
94
|
-
| `oh-gc pr
|
|
95
|
-
| `oh-gc pr
|
|
96
|
-
| `oh-gc pr
|
|
97
|
-
| `oh-gc pr
|
|
98
|
-
| `oh-gc pr
|
|
99
|
-
| `oh-gc pr
|
|
100
|
-
| `oh-gc pr
|
|
101
|
-
| `oh-gc pr
|
|
102
|
-
| `oh-gc pr
|
|
103
|
-
| `oh-gc pr
|
|
104
|
-
| `oh-gc pr
|
|
105
|
-
| `oh-gc pr
|
|
106
|
-
| `oh-gc pr
|
|
107
|
-
| `oh-gc pr
|
|
89
|
+
| `oh-gc pr list` | List pull requests | [→ Details](docs/commands/en/pr.md#oh-gc-pr-list) |
|
|
90
|
+
| `oh-gc pr view` | View PR details | [→ Details](docs/commands/en/pr.md#oh-gc-pr-view) |
|
|
91
|
+
| `oh-gc pr create` | Create a pull request | [→ Details](docs/commands/en/pr.md#oh-gc-pr-create) |
|
|
92
|
+
| `oh-gc pr update` | Update a pull request | [→ Details](docs/commands/en/pr.md#oh-gc-pr-update) |
|
|
93
|
+
| `oh-gc pr close` | Close a pull request | [→ Details](docs/commands/en/pr.md#oh-gc-pr-close) |
|
|
94
|
+
| `oh-gc pr reopen` | Reopen a closed PR | [→ Details](docs/commands/en/pr.md#oh-gc-pr-reopen) |
|
|
95
|
+
| `oh-gc pr merge` | Merge a pull request | [→ Details](docs/commands/en/pr.md#oh-gc-pr-merge) |
|
|
96
|
+
| `oh-gc pr diff` | View PR changes | [→ Details](docs/commands/en/pr.md#oh-gc-pr-diff) |
|
|
97
|
+
| `oh-gc pr comment` | Add a comment | [→ Details](docs/commands/en/pr.md#oh-gc-pr-comment) |
|
|
98
|
+
| `oh-gc pr comments` | List or delete comments | [→ Details](docs/commands/en/pr.md#oh-gc-pr-comments) |
|
|
99
|
+
| `oh-gc pr commits` | List commits in a PR | [→ Details](docs/commands/en/pr.md#oh-gc-pr-commits) |
|
|
100
|
+
| `oh-gc pr logs` | View operation logs | [→ Details](docs/commands/en/pr.md#oh-gc-pr-logs) |
|
|
101
|
+
| `oh-gc pr reactions` | List reactions | [→ Details](docs/commands/en/pr.md#oh-gc-pr-reactions) |
|
|
102
|
+
| `oh-gc pr reviewers` | Manage reviewers | [→ Details](docs/commands/en/pr.md#oh-gc-pr-reviewers) |
|
|
103
|
+
| `oh-gc pr testers` | Manage testers | [→ Details](docs/commands/en/pr.md#oh-gc-pr-testers) |
|
|
104
|
+
| `oh-gc pr review` | Approve a PR review | [→ Details](docs/commands/en/pr.md#oh-gc-pr-review) |
|
|
105
|
+
| `oh-gc pr test` | Mark test as passed | [→ Details](docs/commands/en/pr.md#oh-gc-pr-test) |
|
|
106
|
+
| `oh-gc pr labels` | Add or remove labels | [→ Details](docs/commands/en/pr.md#oh-gc-pr-labels) |
|
|
107
|
+
| `oh-gc pr link` | Link or unlink issues | [→ Details](docs/commands/en/pr.md#oh-gc-pr-link) |
|
|
108
108
|
|
|
109
109
|
### Repository
|
|
110
110
|
| Command | Description | Docs |
|
|
111
111
|
|---------|-------------|------|
|
|
112
|
-
| `oh-gc repo
|
|
113
|
-
| `oh-gc repo
|
|
114
|
-
| `oh-gc repo
|
|
115
|
-
| `oh-gc repo
|
|
116
|
-
| `oh-gc repo
|
|
112
|
+
| `oh-gc repo list` | List repositories | [→ Details](docs/commands/en/repo.md#oh-gc-repo-list) |
|
|
113
|
+
| `oh-gc repo create` | Create a new repository | [→ Details](docs/commands/en/repo.md#oh-gc-repo-create) |
|
|
114
|
+
| `oh-gc repo delete` | Delete a repository | [→ Details](docs/commands/en/repo.md#oh-gc-repo-delete) |
|
|
115
|
+
| `oh-gc repo fork` | Fork a repository | [→ Details](docs/commands/en/repo.md#oh-gc-repo-fork) |
|
|
116
|
+
| `oh-gc repo forks` | List repository forks | [→ Details](docs/commands/en/repo.md#oh-gc-repo-forks) |
|
|
117
|
+
| `oh-gc repo settings` | View or update repo settings | [→ Details](docs/commands/en/repo.md#oh-gc-repo-settings) |
|
|
118
|
+
| `oh-gc repo languages` | Show languages used in a repo | [→ Details](docs/commands/en/repo.md#oh-gc-repo-languages) |
|
|
119
|
+
| `oh-gc repo contributors` | List contributors | [→ Details](docs/commands/en/repo.md#oh-gc-repo-contributors) |
|
|
120
|
+
| `oh-gc repo events` | List repository events | [→ Details](docs/commands/en/repo.md#oh-gc-repo-events) |
|
|
121
|
+
| `oh-gc repo stats` | Show commit/download statistics | [→ Details](docs/commands/en/repo.md#oh-gc-repo-stats) |
|
|
122
|
+
| `oh-gc repo archive` | Archive or unarchive a repository | [→ Details](docs/commands/en/repo.md#oh-gc-repo-archive) |
|
|
123
|
+
| `oh-gc repo transition` | View or update permission mode | [→ Details](docs/commands/en/repo.md#oh-gc-repo-transition) |
|
|
124
|
+
| `oh-gc repo module` | Enable or disable repo modules | [→ Details](docs/commands/en/repo.md#oh-gc-repo-module) |
|
|
125
|
+
| `oh-gc repo roles` | List customized roles | [→ Details](docs/commands/en/repo.md#oh-gc-repo-roles) |
|
|
126
|
+
| `oh-gc repo view` | View repository info | [→ Details](docs/commands/en/repo.md#oh-gc-repo-view) |
|
|
127
|
+
| `oh-gc repo update` | Update repository settings | [→ Details](docs/commands/en/repo.md#oh-gc-repo-update) |
|
|
128
|
+
| `oh-gc repo transfer` | Transfer repository ownership | [→ Details](docs/commands/en/repo.md#oh-gc-repo-transfer) |
|
|
129
|
+
| `oh-gc repo set-remote` | Set which remote oh-gc uses | [→ Details](docs/commands/en/repo.md#oh-gc-repo-set-remote) |
|
|
130
|
+
| `oh-gc repo get-remote` | Show current remote | [→ Details](docs/commands/en/repo.md#oh-gc-repo-get-remote) |
|
|
117
131
|
|
|
118
132
|
### Branches
|
|
119
133
|
| Command | Description | Docs |
|
|
120
134
|
|---------|-------------|------|
|
|
121
|
-
| `oh-gc branch
|
|
122
|
-
| `oh-gc branch
|
|
123
|
-
| `oh-gc branch
|
|
135
|
+
| `oh-gc branch list` | List branches | [→ Details](docs/commands/en/branch.md#oh-gc-branch-list) |
|
|
136
|
+
| `oh-gc branch get` | View branch details | [→ Details](docs/commands/en/branch.md#oh-gc-branch-get) |
|
|
137
|
+
| `oh-gc branch protect` | Set branch protection | [→ Details](docs/commands/en/branch.md#oh-gc-branch-protect) |
|
|
124
138
|
|
|
125
139
|
### Commits
|
|
126
140
|
| Command | Description | Docs |
|
|
127
141
|
|---------|-------------|------|
|
|
128
|
-
| `oh-gc commit
|
|
129
|
-
| `oh-gc commit
|
|
130
|
-
| `oh-gc commit
|
|
131
|
-
| `oh-gc commit
|
|
142
|
+
| `oh-gc commit list` | List commits | [→ Details](docs/commands/en/commit.md#oh-gc-commit-list) |
|
|
143
|
+
| `oh-gc commit get` | View commit details | [→ Details](docs/commands/en/commit.md#oh-gc-commit-get) |
|
|
144
|
+
| `oh-gc commit diff` | View commit diff | [→ Details](docs/commands/en/commit.md#oh-gc-commit-diff) |
|
|
145
|
+
| `oh-gc commit compare` | Compare two refs | [→ Details](docs/commands/en/commit.md#oh-gc-commit-compare) |
|
|
132
146
|
|
|
133
147
|
### Files
|
|
134
148
|
| Command | Description | Docs |
|
|
135
149
|
|---------|-------------|------|
|
|
136
|
-
| `oh-gc file
|
|
137
|
-
| `oh-gc file
|
|
138
|
-
| `oh-gc file
|
|
150
|
+
| `oh-gc file get` | Get file contents (base64) | [→ Details](docs/commands/en/file.md#oh-gc-file-get) |
|
|
151
|
+
| `oh-gc file raw` | Get raw file contents | [→ Details](docs/commands/en/file.md#oh-gc-file-raw) |
|
|
152
|
+
| `oh-gc file list` | List directory contents | [→ Details](docs/commands/en/file.md#oh-gc-file-list) |
|
|
139
153
|
|
|
140
154
|
### Labels
|
|
141
155
|
| Command | Description | Docs |
|
|
142
156
|
|---------|-------------|------|
|
|
143
|
-
| `oh-gc label
|
|
144
|
-
| `oh-gc label
|
|
145
|
-
| `oh-gc label
|
|
146
|
-
| `oh-gc label
|
|
157
|
+
| `oh-gc label list` | List repository labels | [→ Details](docs/commands/en/label.md#oh-gc-label-list) |
|
|
158
|
+
| `oh-gc label create` | Create a label | [→ Details](docs/commands/en/label.md#oh-gc-label-create) |
|
|
159
|
+
| `oh-gc label update` | Update a label | [→ Details](docs/commands/en/label.md#oh-gc-label-update) |
|
|
160
|
+
| `oh-gc label delete` | Delete a label | [→ Details](docs/commands/en/label.md#oh-gc-label-delete) |
|
|
147
161
|
|
|
148
162
|
### Milestones
|
|
149
163
|
| Command | Description | Docs |
|
|
150
164
|
|---------|-------------|------|
|
|
151
|
-
| `oh-gc milestone
|
|
152
|
-
| `oh-gc milestone
|
|
153
|
-
| `oh-gc milestone
|
|
154
|
-
| `oh-gc milestone
|
|
155
|
-
| `oh-gc milestone
|
|
165
|
+
| `oh-gc milestone list` | List milestones | [→ Details](docs/commands/en/milestone.md#oh-gc-milestone-list) |
|
|
166
|
+
| `oh-gc milestone get` | View milestone details | [→ Details](docs/commands/en/milestone.md#oh-gc-milestone-get) |
|
|
167
|
+
| `oh-gc milestone create` | Create a milestone | [→ Details](docs/commands/en/milestone.md#oh-gc-milestone-create) |
|
|
168
|
+
| `oh-gc milestone update` | Update a milestone | [→ Details](docs/commands/en/milestone.md#oh-gc-milestone-update) |
|
|
169
|
+
| `oh-gc milestone delete` | Delete a milestone | [→ Details](docs/commands/en/milestone.md#oh-gc-milestone-delete) |
|
|
156
170
|
|
|
157
171
|
### Collaborators
|
|
158
172
|
| Command | Description | Docs |
|
|
159
173
|
|---------|-------------|------|
|
|
160
|
-
| `oh-gc collaborator
|
|
161
|
-
| `oh-gc collaborator
|
|
162
|
-
| `oh-gc collaborator
|
|
163
|
-
| `oh-gc collaborator
|
|
174
|
+
| `oh-gc collaborator list` | List collaborators | [→ Details](docs/commands/en/collaborator.md#oh-gc-collaborator-list) |
|
|
175
|
+
| `oh-gc collaborator add` | Add a collaborator | [→ Details](docs/commands/en/collaborator.md#oh-gc-collaborator-add) |
|
|
176
|
+
| `oh-gc collaborator remove` | Remove a collaborator | [→ Details](docs/commands/en/collaborator.md#oh-gc-collaborator-remove) |
|
|
177
|
+
| `oh-gc collaborator permission` | Get permission level | [→ Details](docs/commands/en/collaborator.md#oh-gc-collaborator-permission) |
|
|
164
178
|
|
|
165
179
|
### Webhooks
|
|
166
180
|
| Command | Description | Docs |
|
|
167
181
|
|---------|-------------|------|
|
|
168
|
-
| `oh-gc hook
|
|
169
|
-
| `oh-gc hook
|
|
170
|
-
| `oh-gc hook
|
|
171
|
-
| `oh-gc hook
|
|
182
|
+
| `oh-gc hook list` | List webhooks | [→ Details](docs/commands/en/hook.md#oh-gc-hook-list) |
|
|
183
|
+
| `oh-gc hook get` | View webhook details | [→ Details](docs/commands/en/hook.md#oh-gc-hook-get) |
|
|
184
|
+
| `oh-gc hook create` | Create a webhook | [→ Details](docs/commands/en/hook.md#oh-gc-hook-create) |
|
|
185
|
+
| `oh-gc hook delete` | Delete a webhook | [→ Details](docs/commands/en/hook.md#oh-gc-hook-delete) |
|
|
172
186
|
|
|
173
187
|
### Tags
|
|
174
188
|
| Command | Description | Docs |
|
|
175
189
|
|---------|-------------|------|
|
|
176
|
-
| `oh-gc tag
|
|
177
|
-
| `oh-gc tag
|
|
190
|
+
| `oh-gc tag list` | List repository tags | [→ Details](docs/commands/en/tag.md#oh-gc-tag-list) |
|
|
191
|
+
| `oh-gc tag protect` | Protect or unprotect a tag | [→ Details](docs/commands/en/tag.md#oh-gc-tag-protect) |
|
|
178
192
|
|
|
179
193
|
### Release
|
|
180
194
|
| Command | Description | Docs |
|
|
181
195
|
|---------|-------------|------|
|
|
182
|
-
| `oh-gc release
|
|
196
|
+
| `oh-gc release create` | Create a release | [→ Details](docs/commands/en/release.md#oh-gc-release-create) |
|
|
183
197
|
|
|
184
198
|
### Organizations
|
|
185
199
|
| Command | Description | Docs |
|
|
186
200
|
|---------|-------------|------|
|
|
187
|
-
| `oh-gc org
|
|
188
|
-
| `oh-gc org
|
|
189
|
-
| `oh-gc org
|
|
201
|
+
| `oh-gc org list` | List your organizations | [→ Details](docs/commands/en/org.md#oh-gc-org-list) |
|
|
202
|
+
| `oh-gc org view` | View organization details | [→ Details](docs/commands/en/org.md#oh-gc-org-view) |
|
|
203
|
+
| `oh-gc org members` | List organization members | [→ Details](docs/commands/en/org.md#oh-gc-org-members) |
|
|
190
204
|
|
|
191
205
|
### User
|
|
192
206
|
| Command | Description | Docs |
|
|
193
207
|
|---------|-------------|------|
|
|
194
|
-
| `oh-gc user
|
|
195
|
-
| `oh-gc user
|
|
196
|
-
| `oh-gc user
|
|
197
|
-
| `oh-gc user
|
|
208
|
+
| `oh-gc user view` | View user profile | [→ Details](docs/commands/en/user.md#oh-gc-user-view) |
|
|
209
|
+
| `oh-gc user emails` | List your email addresses | [→ Details](docs/commands/en/user.md#oh-gc-user-emails) |
|
|
210
|
+
| `oh-gc user followers` | List user followers | [→ Details](docs/commands/en/user.md#oh-gc-user-followers) |
|
|
211
|
+
| `oh-gc user following` | List followed users | [→ Details](docs/commands/en/user.md#oh-gc-user-following) |
|
|
198
212
|
|
|
199
213
|
### Search
|
|
200
214
|
| Command | Description | Docs |
|
|
201
215
|
|---------|-------------|------|
|
|
202
|
-
| `oh-gc search
|
|
203
|
-
| `oh-gc search
|
|
204
|
-
| `oh-gc search
|
|
216
|
+
| `oh-gc search repos` | Search repositories | [→ Details](docs/commands/en/search.md#oh-gc-search-repos) |
|
|
217
|
+
| `oh-gc search issues` | Search issues and PRs | [→ Details](docs/commands/en/search.md#oh-gc-search-issues) |
|
|
218
|
+
| `oh-gc search code` | Search code | [→ Details](docs/commands/en/search.md#oh-gc-search-code) |
|
|
205
219
|
|
|
206
220
|
---
|
|
207
221
|
|
|
@@ -215,9 +229,9 @@ Most commands that operate on a repository support the `--repo` flag, which allo
|
|
|
215
229
|
|
|
216
230
|
Examples:
|
|
217
231
|
```bash
|
|
218
|
-
oh-gc issue
|
|
219
|
-
oh-gc issue
|
|
220
|
-
oh-gc pr
|
|
232
|
+
oh-gc issue list --repo openharmony/arkui_ace_engine
|
|
233
|
+
oh-gc issue create --repo owner/repo --title "Bug report"
|
|
234
|
+
oh-gc pr view 123 --repo owner/repo
|
|
221
235
|
```
|
|
222
236
|
|
|
223
237
|
## Global Flags
|
|
@@ -235,11 +249,11 @@ All commands support:
|
|
|
235
249
|
|
|
236
250
|
### Token
|
|
237
251
|
|
|
238
|
-
Stored at `~/.config/gitcode-cli/config.json`. Set via `oh-gc auth
|
|
252
|
+
Stored at `~/.config/gitcode-cli/config.json`. Set via `oh-gc auth login`, removed via `oh-gc auth logout`.
|
|
239
253
|
|
|
240
254
|
### Remote
|
|
241
255
|
|
|
242
|
-
By default `oh-gc` uses the `origin` remote. To use a different remote for run `oh-gc repo
|
|
256
|
+
By default `oh-gc` uses the `origin` remote. To use a different remote for run `oh-gc repo set-remote <name>`. This writes a `.gitcode/oh-gc-config.json` file in the repo root:
|
|
243
257
|
|
|
244
258
|
```json
|
|
245
259
|
{ "remote": "upstream" }
|
package/dist/api/repos.d.ts
CHANGED
|
@@ -142,6 +142,116 @@ export interface CompareResult {
|
|
|
142
142
|
status: string;
|
|
143
143
|
}>;
|
|
144
144
|
}
|
|
145
|
+
export interface ListReposParams {
|
|
146
|
+
visibility?: 'public' | 'private' | 'all';
|
|
147
|
+
affiliation?: string;
|
|
148
|
+
type?: string;
|
|
149
|
+
sort?: 'created' | 'updated' | 'pushed' | 'full_name';
|
|
150
|
+
direction?: 'asc' | 'desc';
|
|
151
|
+
q?: string;
|
|
152
|
+
page?: number;
|
|
153
|
+
per_page?: number;
|
|
154
|
+
repo_type?: 'code' | 'model' | 'dataset' | 'space' | 'all';
|
|
155
|
+
}
|
|
156
|
+
export interface CreateRepoParams {
|
|
157
|
+
name: string;
|
|
158
|
+
description?: string;
|
|
159
|
+
homepage?: string;
|
|
160
|
+
has_issues?: boolean;
|
|
161
|
+
has_wiki?: boolean;
|
|
162
|
+
can_comment?: boolean;
|
|
163
|
+
auto_init?: boolean;
|
|
164
|
+
gitignore_template?: string;
|
|
165
|
+
license_template?: string;
|
|
166
|
+
path?: string;
|
|
167
|
+
private?: boolean;
|
|
168
|
+
public?: number;
|
|
169
|
+
default_branch?: string;
|
|
170
|
+
import_url?: string;
|
|
171
|
+
project_template?: string;
|
|
172
|
+
repository_type?: 'code' | 'model' | 'dataset' | 'space';
|
|
173
|
+
}
|
|
174
|
+
export interface ForkRepoParams {
|
|
175
|
+
organization?: string;
|
|
176
|
+
name?: string;
|
|
177
|
+
path?: string;
|
|
178
|
+
}
|
|
179
|
+
export interface ListForksParams {
|
|
180
|
+
sort?: 'newest' | 'oldest' | 'stargazers';
|
|
181
|
+
page?: number;
|
|
182
|
+
per_page?: number;
|
|
183
|
+
created_after?: string;
|
|
184
|
+
created_before?: string;
|
|
185
|
+
}
|
|
186
|
+
export interface RepoSettingsParams {
|
|
187
|
+
disable_fork?: boolean;
|
|
188
|
+
forbidden_developer_create_branch?: boolean;
|
|
189
|
+
forbidden_developer_create_tag?: boolean;
|
|
190
|
+
forbidden_committer_create_branch?: boolean;
|
|
191
|
+
forbidden_developer_create_branch_user_ids?: string;
|
|
192
|
+
branch_name_regex?: string;
|
|
193
|
+
tag_name_regex?: string;
|
|
194
|
+
generate_pre_merge_ref?: boolean;
|
|
195
|
+
rebase_disable_trigger_webhook?: boolean;
|
|
196
|
+
open_gpg_verified?: boolean;
|
|
197
|
+
include_lfs_objects?: boolean;
|
|
198
|
+
}
|
|
199
|
+
export interface ContributorStatistics {
|
|
200
|
+
name: string;
|
|
201
|
+
email: string;
|
|
202
|
+
overview?: object;
|
|
203
|
+
additions: number;
|
|
204
|
+
deletions: number;
|
|
205
|
+
total_changes: number;
|
|
206
|
+
commit_count: number;
|
|
207
|
+
}
|
|
208
|
+
export interface CommitStatisticsParams {
|
|
209
|
+
branch_name: string;
|
|
210
|
+
author?: string;
|
|
211
|
+
only_self?: boolean;
|
|
212
|
+
since?: string;
|
|
213
|
+
until?: string;
|
|
214
|
+
}
|
|
215
|
+
export interface DownloadStatisticsParams {
|
|
216
|
+
start_date?: string;
|
|
217
|
+
end_date?: string;
|
|
218
|
+
direction?: 'asc' | 'desc';
|
|
219
|
+
}
|
|
220
|
+
export interface RepoEventsParams {
|
|
221
|
+
filter?: 'all' | 'push' | 'merged' | 'issue' | 'comments' | 'team' | 'project';
|
|
222
|
+
author?: string;
|
|
223
|
+
before?: string;
|
|
224
|
+
after?: string;
|
|
225
|
+
page?: number;
|
|
226
|
+
per_page?: number;
|
|
227
|
+
}
|
|
228
|
+
export interface ArchiveRepoParams {
|
|
229
|
+
status: 0 | 2;
|
|
230
|
+
password: string;
|
|
231
|
+
}
|
|
232
|
+
export interface TransitionParams {
|
|
233
|
+
mode: 1 | 2;
|
|
234
|
+
}
|
|
235
|
+
export interface ModuleSettingParams {
|
|
236
|
+
has_wiki?: boolean;
|
|
237
|
+
has_issue?: boolean;
|
|
238
|
+
has_security?: boolean;
|
|
239
|
+
has_merge_request?: boolean;
|
|
240
|
+
has_fork?: boolean;
|
|
241
|
+
has_analysis?: boolean;
|
|
242
|
+
has_discussion?: boolean;
|
|
243
|
+
}
|
|
244
|
+
export interface CustomRole {
|
|
245
|
+
role_id: string;
|
|
246
|
+
access_level: number;
|
|
247
|
+
role_name: string;
|
|
248
|
+
role_chinese_name: string;
|
|
249
|
+
role_description: string;
|
|
250
|
+
role_type: string;
|
|
251
|
+
member_count: number;
|
|
252
|
+
created_at: string;
|
|
253
|
+
updated_at: string;
|
|
254
|
+
}
|
|
145
255
|
export interface ListBranchesParams {
|
|
146
256
|
page?: number;
|
|
147
257
|
per_page?: number;
|
|
@@ -168,3 +278,43 @@ export declare function getCommit(token: string, owner: string, repo: string, sh
|
|
|
168
278
|
export declare function getCommitDiff(token: string, owner: string, repo: string, sha: string): Promise<string>;
|
|
169
279
|
export declare function getCommitPatch(token: string, owner: string, repo: string, sha: string): Promise<string>;
|
|
170
280
|
export declare function compareCommits(token: string, owner: string, repo: string, base: string, head: string): Promise<CompareResult>;
|
|
281
|
+
export declare function listUserRepos(token: string, params?: ListReposParams): Promise<Repository[]>;
|
|
282
|
+
export declare function listUserPublicRepos(token: string, username: string, params?: ListReposParams): Promise<Repository[]>;
|
|
283
|
+
export declare function listOrgRepos(token: string, org: string, params?: ListReposParams): Promise<Repository[]>;
|
|
284
|
+
export declare function createUserRepo(token: string, params: CreateRepoParams): Promise<Repository>;
|
|
285
|
+
export declare function createOrgRepo(token: string, org: string, params: CreateRepoParams): Promise<Repository>;
|
|
286
|
+
export declare function deleteRepo(token: string, owner: string, repo: string): Promise<void>;
|
|
287
|
+
export declare function forkRepo(token: string, owner: string, repo: string, params?: ForkRepoParams): Promise<Repository>;
|
|
288
|
+
export declare function listForks(token: string, owner: string, repo: string, params?: ListForksParams): Promise<Repository[]>;
|
|
289
|
+
export declare function getRepoSettings(token: string, owner: string, repo: string): Promise<Record<string, unknown>>;
|
|
290
|
+
export declare function updateRepoSettings(token: string, owner: string, repo: string, params: RepoSettingsParams): Promise<Record<string, unknown>>;
|
|
291
|
+
export declare function getRepoLanguages(token: string, owner: string, repo: string): Promise<Record<string, number>>;
|
|
292
|
+
export declare function getRepoContributors(token: string, owner: string, repo: string, params?: {
|
|
293
|
+
type?: string;
|
|
294
|
+
page?: number;
|
|
295
|
+
per_page?: number;
|
|
296
|
+
}): Promise<Array<{
|
|
297
|
+
login: string;
|
|
298
|
+
contributions: number;
|
|
299
|
+
name?: string;
|
|
300
|
+
}>>;
|
|
301
|
+
export declare function getContributorStatistics(token: string, owner: string, repo: string, params?: {
|
|
302
|
+
author?: string;
|
|
303
|
+
page?: number;
|
|
304
|
+
per_page?: number;
|
|
305
|
+
}): Promise<ContributorStatistics[]>;
|
|
306
|
+
export declare function getCommitStatistics(token: string, owner: string, repo: string, params: CommitStatisticsParams): Promise<ContributorStatistics[]>;
|
|
307
|
+
export declare function getDownloadStatistics(token: string, owner: string, repo: string, params?: DownloadStatisticsParams): Promise<Array<{
|
|
308
|
+
date: string;
|
|
309
|
+
downloads: number;
|
|
310
|
+
}>>;
|
|
311
|
+
export declare function getRepoEvents(token: string, owner: string, repo: string, params?: RepoEventsParams): Promise<Array<Record<string, unknown>>>;
|
|
312
|
+
export declare function archiveRepo(token: string, org: string, repo: string, params: ArchiveRepoParams): Promise<void>;
|
|
313
|
+
export declare function getTransition(token: string, owner: string, repo: string): Promise<{
|
|
314
|
+
mode: number;
|
|
315
|
+
}>;
|
|
316
|
+
export declare function updateTransition(token: string, owner: string, repo: string, params: TransitionParams): Promise<{
|
|
317
|
+
mode: number;
|
|
318
|
+
}>;
|
|
319
|
+
export declare function updateModuleSetting(token: string, owner: string, repo: string, params: ModuleSettingParams): Promise<void>;
|
|
320
|
+
export declare function getCustomizedRoles(token: string, owner: string, repo: string): Promise<CustomRole[]>;
|
package/dist/api/repos.js
CHANGED
|
@@ -12,6 +12,27 @@ exports.getCommit = getCommit;
|
|
|
12
12
|
exports.getCommitDiff = getCommitDiff;
|
|
13
13
|
exports.getCommitPatch = getCommitPatch;
|
|
14
14
|
exports.compareCommits = compareCommits;
|
|
15
|
+
exports.listUserRepos = listUserRepos;
|
|
16
|
+
exports.listUserPublicRepos = listUserPublicRepos;
|
|
17
|
+
exports.listOrgRepos = listOrgRepos;
|
|
18
|
+
exports.createUserRepo = createUserRepo;
|
|
19
|
+
exports.createOrgRepo = createOrgRepo;
|
|
20
|
+
exports.deleteRepo = deleteRepo;
|
|
21
|
+
exports.forkRepo = forkRepo;
|
|
22
|
+
exports.listForks = listForks;
|
|
23
|
+
exports.getRepoSettings = getRepoSettings;
|
|
24
|
+
exports.updateRepoSettings = updateRepoSettings;
|
|
25
|
+
exports.getRepoLanguages = getRepoLanguages;
|
|
26
|
+
exports.getRepoContributors = getRepoContributors;
|
|
27
|
+
exports.getContributorStatistics = getContributorStatistics;
|
|
28
|
+
exports.getCommitStatistics = getCommitStatistics;
|
|
29
|
+
exports.getDownloadStatistics = getDownloadStatistics;
|
|
30
|
+
exports.getRepoEvents = getRepoEvents;
|
|
31
|
+
exports.archiveRepo = archiveRepo;
|
|
32
|
+
exports.getTransition = getTransition;
|
|
33
|
+
exports.updateTransition = updateTransition;
|
|
34
|
+
exports.updateModuleSetting = updateModuleSetting;
|
|
35
|
+
exports.getCustomizedRoles = getCustomizedRoles;
|
|
15
36
|
const client_1 = require("./client");
|
|
16
37
|
// --- Repository API Functions ---
|
|
17
38
|
async function getRepo(token, owner, repo) {
|
|
@@ -65,4 +86,99 @@ async function getCommitPatch(token, owner, repo, sha) {
|
|
|
65
86
|
async function compareCommits(token, owner, repo, base, head) {
|
|
66
87
|
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/compare/${base}...${head}`, token);
|
|
67
88
|
}
|
|
89
|
+
// --- Repo List/Create/Delete/Fork API Functions ---
|
|
90
|
+
async function listUserRepos(token, params = {}) {
|
|
91
|
+
return (0, client_1.apiRequest)('/user/repos', token, {
|
|
92
|
+
query: params,
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
async function listUserPublicRepos(token, username, params = {}) {
|
|
96
|
+
return (0, client_1.apiRequest)(`/users/${username}/repos`, token, {
|
|
97
|
+
query: params,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
async function listOrgRepos(token, org, params = {}) {
|
|
101
|
+
return (0, client_1.apiRequest)(`/orgs/${org}/repos`, token, {
|
|
102
|
+
query: params,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
105
|
+
async function createUserRepo(token, params) {
|
|
106
|
+
return (0, client_1.apiRequest)('/user/repos', token, {
|
|
107
|
+
method: 'POST',
|
|
108
|
+
body: params,
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
async function createOrgRepo(token, org, params) {
|
|
112
|
+
return (0, client_1.apiRequest)(`/orgs/${org}/repos`, token, {
|
|
113
|
+
method: 'POST',
|
|
114
|
+
body: params,
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
async function deleteRepo(token, owner, repo) {
|
|
118
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}`, token, { method: 'DELETE' });
|
|
119
|
+
}
|
|
120
|
+
async function forkRepo(token, owner, repo, params = {}) {
|
|
121
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/forks`, token, {
|
|
122
|
+
method: 'POST',
|
|
123
|
+
body: params,
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
async function listForks(token, owner, repo, params = {}) {
|
|
127
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/forks`, token, {
|
|
128
|
+
query: params,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
async function getRepoSettings(token, owner, repo) {
|
|
132
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/repo_settings`, token);
|
|
133
|
+
}
|
|
134
|
+
async function updateRepoSettings(token, owner, repo, params) {
|
|
135
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/repo_settings`, token, {
|
|
136
|
+
method: 'PATCH',
|
|
137
|
+
body: params,
|
|
138
|
+
});
|
|
139
|
+
}
|
|
140
|
+
async function getRepoLanguages(token, owner, repo) {
|
|
141
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/languages`, token);
|
|
142
|
+
}
|
|
143
|
+
async function getRepoContributors(token, owner, repo, params = {}) {
|
|
144
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/contributors`, token, { query: params });
|
|
145
|
+
}
|
|
146
|
+
async function getContributorStatistics(token, owner, repo, params = {}) {
|
|
147
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/contributors/statistic`, token, { query: params });
|
|
148
|
+
}
|
|
149
|
+
async function getCommitStatistics(token, owner, repo, params) {
|
|
150
|
+
return (0, client_1.apiRequest)(`/${owner}/${repo}/repository/commit_statistics`, token, { query: params });
|
|
151
|
+
}
|
|
152
|
+
async function getDownloadStatistics(token, owner, repo, params = {}) {
|
|
153
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/download_statistics`, token, { query: params });
|
|
154
|
+
}
|
|
155
|
+
async function getRepoEvents(token, owner, repo, params = {}) {
|
|
156
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/events`, token, {
|
|
157
|
+
query: params,
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
async function archiveRepo(token, org, repo, params) {
|
|
161
|
+
return (0, client_1.apiRequest)(`/org/${org}/repo/${repo}/status`, token, {
|
|
162
|
+
method: 'PATCH',
|
|
163
|
+
body: params,
|
|
164
|
+
});
|
|
165
|
+
}
|
|
166
|
+
async function getTransition(token, owner, repo) {
|
|
167
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/transition`, token);
|
|
168
|
+
}
|
|
169
|
+
async function updateTransition(token, owner, repo, params) {
|
|
170
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/transition`, token, {
|
|
171
|
+
method: 'PATCH',
|
|
172
|
+
body: params,
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
async function updateModuleSetting(token, owner, repo, params) {
|
|
176
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/module/setting`, token, {
|
|
177
|
+
method: 'PATCH',
|
|
178
|
+
body: params,
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
async function getCustomizedRoles(token, owner, repo) {
|
|
182
|
+
return (0, client_1.apiRequest)(`/repos/${owner}/${repo}/customized_roles`, token);
|
|
183
|
+
}
|
|
68
184
|
//# sourceMappingURL=repos.js.map
|
package/dist/api/repos.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"repos.js","sourceRoot":"","sources":["../../src/api/repos.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"repos.js","sourceRoot":"","sources":["../../src/api/repos.ts"],"names":[],"mappings":";;AAkTA,0BAMC;AAED,gCAUC;AAED,oCAUC;AAID,oCASC;AAED,8BAOC;AAED,sCAeC;AAED,0CAWC;AAID,kCASC;AAED,8BAOC;AAED,sCAOC;AAED,wCAOC;AAED,wCAWC;AAID,sCAOC;AAED,kDAQC;AAED,oCAQC;AAED,wCAQC;AAED,sCASC;AAED,gCAMC;AAED,4BAUC;AAED,8BASC;AAED,0CAMC;AAED,gDAUC;AAED,4CAMC;AAED,kDAWC;AAED,4DAWC;AAED,kDAWC;AAED,sDAWC;AAED,sCASC;AAED,kCAUC;AAED,sCAMC;AAED,4CAUC;AAED,kDAUC;AAED,gDAMC;AA3pBD,qCAAoD;AAgTpD,mCAAmC;AAE5B,KAAK,UAAU,OAAO,CAC3B,KAAa,EACb,KAAa,EACb,IAAY;IAEZ,OAAO,IAAA,mBAAU,EAAa,UAAU,KAAK,IAAI,IAAI,EAAE,EAAE,KAAK,CAAC,CAAA;AACjE,CAAC;AAEM,KAAK,UAAU,UAAU,CAC9B,KAAa,EACb,KAAa,EACb,IAAY,EACZ,MAAwB;IAExB,OAAO,IAAA,mBAAU,EAAa,UAAU,KAAK,IAAI,IAAI,EAAE,EAAE,KAAK,EAAE;QAC9D,MAAM,EAAE,OAAO;QACf,IAAI,EAAE,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CAAC;AAEM,KAAK,UAAU,kBAAkB,CACtC,KAAa,EACb,KAAa,EACb,IAAY;IAEZ,OAAO,IAAA,mBAAU,EAAe,UAAU,KAAK,IAAI,IAAI,mBAAmB,EAAE,KAAK,CAAC,CAAA;AACpF,CAAC"}
|
|
@@ -10,7 +10,7 @@ class IssueClose extends repo_command_1.RepoCommand {
|
|
|
10
10
|
const { flags, args } = await this.parse(IssueClose);
|
|
11
11
|
const token = (0, config_1.getToken)();
|
|
12
12
|
if (!token) {
|
|
13
|
-
this.error('Not authenticated. Run: oh-gc auth
|
|
13
|
+
this.error('Not authenticated. Run: oh-gc auth login');
|
|
14
14
|
}
|
|
15
15
|
const { owner, repo } = this.resolveRepoFromFlags(flags);
|
|
16
16
|
const issue = await (0, issues_1.closeIssue)(token, owner, repo, args.number);
|
|
@@ -10,7 +10,7 @@ class IssueHistory extends repo_command_1.RepoCommand {
|
|
|
10
10
|
const { flags, args } = await this.parse(IssueHistory);
|
|
11
11
|
const token = (0, config_1.getToken)();
|
|
12
12
|
if (!token) {
|
|
13
|
-
this.error('Not authenticated. Run: oh-gc auth
|
|
13
|
+
this.error('Not authenticated. Run: oh-gc auth login');
|
|
14
14
|
}
|
|
15
15
|
const { owner, repo } = this.resolveRepoFromFlags(flags);
|
|
16
16
|
const history = await (0, issues_1.listIssueHistory)(token, owner, repo, args.number);
|