@ycodium-ai/plugin-pull-requests 0.2.0
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 +62 -0
- package/assets/ui.js +1830 -0
- package/dist/index.js +4688 -0
- package/locales/en.json +140 -0
- package/locales/zh-CN.json +140 -0
- package/package.json +58 -0
package/README.md
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
# @ycodium-ai/plugin-pull-requests
|
|
2
|
+
|
|
3
|
+
The pull request page for GitHub and GitLab: list, filter, review, comment,
|
|
4
|
+
and merge from the machines in this Ycodium workspace.
|
|
5
|
+
|
|
6
|
+
## What it does
|
|
7
|
+
|
|
8
|
+
Each connected machine whose plugin is running lists change requests for the
|
|
9
|
+
git repositories in its workspace. Two machines that hold the same repository
|
|
10
|
+
are de-duplicated by the remote's canonical key; the listing is sent to the
|
|
11
|
+
machine that owns that copy, so credentials never leak across machines.
|
|
12
|
+
|
|
13
|
+
Reads and writes go straight over the host API with a token you paste in the
|
|
14
|
+
plugin settings card. The machine does not need `gh` or `glab`. GitLab uses
|
|
15
|
+
the `api` scope; GitHub uses `repo`, and `read:org` if you also want team
|
|
16
|
+
reviewers.
|
|
17
|
+
|
|
18
|
+
Bitbucket and Azure DevOps are not supported.
|
|
19
|
+
|
|
20
|
+
## Install
|
|
21
|
+
|
|
22
|
+
```
|
|
23
|
+
ycodium plugin add @ycodium-ai/plugin-pull-requests
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
The plugin ships enabled with Ycodium as the `core.pull-requests` bundle
|
|
27
|
+
entry. Disabling it hides the page, the sidebar entry, and every command.
|
|
28
|
+
Uninstalling writes `{ id: "core.pull-requests", removed: true }` so a restart
|
|
29
|
+
does not bring it back. Tokens stored as secrets stay until uninstall reclaims
|
|
30
|
+
them. Reinstalling the unversioned bundled package restores the same entry
|
|
31
|
+
without an npm fetch.
|
|
32
|
+
|
|
33
|
+
## Configure
|
|
34
|
+
|
|
35
|
+
Open Settings → Plugins → Pull requests:
|
|
36
|
+
|
|
37
|
+
- **GitLab host / token** — a self-managed domain and a personal access token
|
|
38
|
+
with the `api` scope. Leave empty if you only use GitHub.
|
|
39
|
+
- **GitHub host / token** — `github.com` or a GitHub Enterprise domain, plus a
|
|
40
|
+
personal access token. Leave empty if you only use GitLab.
|
|
41
|
+
|
|
42
|
+
A missing token on one host reports unauthenticated for that host only.
|
|
43
|
+
|
|
44
|
+
## Upgrading
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
ycodium plugin add @ycodium-ai/plugin-pull-requests@<version>
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
Installing a newer version replaces the running one without restarting the
|
|
51
|
+
server.
|
|
52
|
+
|
|
53
|
+
## Developing
|
|
54
|
+
|
|
55
|
+
Built from the Ycodium repository. The server entry bundles the plugin's code
|
|
56
|
+
and private dependencies; `@ycodium-ai/plugin-api` stays external and resolves
|
|
57
|
+
to the host's shared module. The package carries its own UI assets and language
|
|
58
|
+
catalogs. Types are erased at build time. The plugin declares API version 2.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
UNLICENSED.
|