@ycodium-ai/plugin-pull-requests 0.2.2544 → 0.2.2566

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/dist/index.js CHANGED
@@ -4671,36 +4671,36 @@ var index_default = definePlugin({
4671
4671
  }
4672
4672
  });
4673
4673
  ctx.settingsCard({
4674
- title: "Pull requests",
4675
- description: "Pull and merge requests are read and written straight over the host API, with a token you paste here.",
4674
+ titleKey: "settings.card.title",
4675
+ descriptionKey: "settings.card.description",
4676
4676
  fields: [
4677
4677
  {
4678
4678
  key: "gitlabHost",
4679
4679
  kind: "text",
4680
- label: "GitLab host",
4681
- description: "Fill in the domain of a self-managed instance.",
4682
- placeholder: "gitlab.com"
4680
+ labelKey: "settings.gitlabHost.label",
4681
+ descriptionKey: "settings.gitlabHost.description",
4682
+ placeholderKey: "settings.gitlabHost.placeholder"
4683
4683
  },
4684
4684
  {
4685
4685
  key: "gitlabToken",
4686
4686
  kind: "password",
4687
- label: "GitLab token",
4687
+ labelKey: "settings.gitlabToken.label",
4688
4688
  // 不标 required:两台主机共用这一张卡,只用 GitHub 的人不该被一枚 GitLab
4689
4689
  // token 卡住。缺 token 的那一侧在命令里报 unauthenticated。
4690
- description: "A personal access token with the `api` scope."
4690
+ descriptionKey: "settings.gitlabToken.description"
4691
4691
  },
4692
4692
  {
4693
4693
  key: "githubHost",
4694
4694
  kind: "text",
4695
- label: "GitHub host",
4696
- description: "Fill in the domain of a GitHub Enterprise install.",
4697
- placeholder: "github.com"
4695
+ labelKey: "settings.githubHost.label",
4696
+ descriptionKey: "settings.githubHost.description",
4697
+ placeholderKey: "settings.githubHost.placeholder"
4698
4698
  },
4699
4699
  {
4700
4700
  key: "githubToken",
4701
4701
  kind: "password",
4702
- label: "GitHub token",
4703
- description: "A personal access token that may read and write the repositories you review. The `repo` scope is enough; add `read:org` to also see team reviewers."
4702
+ labelKey: "settings.githubToken.label",
4703
+ descriptionKey: "settings.githubToken.description"
4704
4704
  }
4705
4705
  ]
4706
4706
  });
package/locales/en.json CHANGED
@@ -434,5 +434,29 @@
434
434
  "requestFailedHint": "The host refused it. Check that you have write access on this repository, and that they still have access to it.",
435
435
  "requestedTitle": "Review requested from {{login}}",
436
436
  "withdrawnTitle": "Review request to {{login}} taken back"
437
+ },
438
+ "settings": {
439
+ "card": {
440
+ "title": "Pull requests",
441
+ "description": "Pull and merge requests are read and written straight over the host API, with a token you paste here."
442
+ },
443
+ "gitlabHost": {
444
+ "label": "GitLab host",
445
+ "description": "Fill in the domain of a self-managed instance.",
446
+ "placeholder": "gitlab.com"
447
+ },
448
+ "gitlabToken": {
449
+ "label": "GitLab token",
450
+ "description": "A personal access token with the `api` scope."
451
+ },
452
+ "githubHost": {
453
+ "label": "GitHub host",
454
+ "description": "Fill in the domain of a GitHub Enterprise install.",
455
+ "placeholder": "github.com"
456
+ },
457
+ "githubToken": {
458
+ "label": "GitHub token",
459
+ "description": "A personal access token that may read and write the repositories you review. The `repo` scope is enough; add `read:org` to also see team reviewers."
460
+ }
437
461
  }
438
462
  }
@@ -434,5 +434,29 @@
434
434
  "requestFailedHint": "主机拒绝了该请求。请检查你是否拥有此仓库的写入权限,以及对方是否仍有访问权限。",
435
435
  "requestedTitle": "已请求 {{login}} 审查",
436
436
  "withdrawnTitle": "已撤回发给 {{login}} 的审查请求"
437
+ },
438
+ "settings": {
439
+ "card": {
440
+ "title": "拉取请求",
441
+ "description": "拉取请求和合并请求直接通过代码托管平台的 API 读写,凭据是你在这里粘贴的令牌。"
442
+ },
443
+ "gitlabHost": {
444
+ "label": "GitLab 主机",
445
+ "description": "自建实例请填写其域名。",
446
+ "placeholder": "gitlab.com"
447
+ },
448
+ "gitlabToken": {
449
+ "label": "GitLab 令牌",
450
+ "description": "具有 `api` 权限范围的个人访问令牌。"
451
+ },
452
+ "githubHost": {
453
+ "label": "GitHub 主机",
454
+ "description": "GitHub Enterprise 安装请填写其域名。",
455
+ "placeholder": "github.com"
456
+ },
457
+ "githubToken": {
458
+ "label": "GitHub 令牌",
459
+ "description": "可以读写你所审查仓库的个人访问令牌。`repo` 权限范围就够了;再加上 `read:org` 还能看到团队评审者。"
460
+ }
437
461
  }
438
462
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-pull-requests",
3
- "version": "0.2.2544",
3
+ "version": "0.2.2566",
4
4
  "description": "The pull request page, for GitHub and GitLab.",
5
5
  "keywords": [
6
6
  "pull-requests",
@@ -30,7 +30,7 @@
30
30
  "tailwindcss": "^4.0.0",
31
31
  "typescript": "~6.0.3",
32
32
  "vite-plus": "0.2.2",
33
- "@ycodium-ai/plugin-api": "0.2.2544"
33
+ "@ycodium-ai/plugin-api": "0.2.2566"
34
34
  },
35
35
  "ycodium": {
36
36
  "plugin": "./dist/index.js",