From badd05651a453fbdab4d64631abf198f1a761ab9 Mon Sep 17 00:00:00 2001 From: "action-assistant[bot]" <152410706+action-assistant[bot]@users.noreply.github.com> Date: Thu, 11 Apr 2024 16:15:58 +0000 Subject: [PATCH] main(greasyfork).user.js Update on 2024-04-12 Signed-off-by: action-assistant[bot] <152410706+action-assistant[bot]@users.noreply.github.com> --- locals(greasyfork).js | 182 ++++++++++++++++++++++++++++----------- main(greasyfork).user.js | 2 +- 2 files changed, 131 insertions(+), 53 deletions(-) diff --git a/locals(greasyfork).js b/locals(greasyfork).js index dd88c1837..8cc9a44f0 100644 --- a/locals(greasyfork).js +++ b/locals(greasyfork).js @@ -11977,6 +11977,9 @@ I18N.zh["repository/settings/rules"] = { // 仓库设置 - 规则 - 规则集 /< // 规则集 页面 ///settings/rules "Your rulesets won't be enforced on this private repository until you upgrade this organization account to GitHub Team.": "在您将此组织帐户升级到 GitHub Team 之前,您的规则集不会在此私有仓库上强制执行。", // 组织 私有仓库 + "Organization rulesets won't be enforced": "在您将该组织账户升级到 GitHub 企业版之前,", // 组织设置 + "until you upgrade this organization account to GitHub Enterprise.": "组织规则集将不会强制执行。", // 组织设置 + "You haven't created any rulesets": "您尚未创建任何规则集", "Define whether collaborators can delete or force push and set requirements for any pushes, such as passing status checks or a linear commit history.": "定义协作者是否可以删除或强制推送,并为任何推送设置要求,如通过状态检查或线性提交历史。", "Learn more about rulesets.": "了解更多关于规则集的信息。", @@ -12026,6 +12029,7 @@ I18N.zh["repository/settings/rules"] = { // 仓库设置 - 规则 - 规则集 /< "Bypass list": "旁路列表", "Exempt roles, teams, or apps from this ruleset by adding them to the bypass list": "通过将角色、团队或应用程序添加到旁路列表,使其免受此规则集的约束", + "Exempt roles or teams from this ruleset by adding them to the bypass list": "通过将角色或团队添加到旁路列表,使其免受此规则集的约束", // 组织设置 "Add bypass": "添加旁路", // 添加旁路对话框 @@ -12058,6 +12062,49 @@ I18N.zh["repository/settings/rules"] = { // 仓库设置 - 规则 - 规则集 /< "Targets": "目标", "Which branches do you want to make a ruleset for?": "您想为哪些分支制定规则集?", "Which tags do you want to make a ruleset for?": "您想为哪些标签制定规则集?", // 标签 + "Which repositories and branches do you want to make a ruleset for?": "您想为哪些仓库和分支创建规则集?", // 组织设置 + + // 组织设置 + "Target repositories": "目标仓库", + "Repository targeting determines which repositories will be protected by this ruleset. Use inclusion patterns to expand the list of repositories under this ruleset. Use exclusion patterns to exclude repositories.": "仓库目标确定哪些仓库将受此规则集保护。使用包含模式来扩展此规则集下的仓库列表。使用排除模式来排除仓库。", + "Target:": "目标:", + "All repositories": "所有仓库", + "Target all repositories within the organization": "组织内的所有仓库", + "Dynamic list by name": "按名称动态列表", + "Target repositories based on name": "基于名称的目标仓库", + "Dynamic list by property": "按属性动态列表", + "Target repositories based on properties": "基于属性的目标仓库", + "Select repositories": "选择仓库", + "Target a specific list of selected repositories": "以选定仓库列表为目标", + + "Targeting criteria": "目标规则", + "No repository targets have been added yet": "尚未添加仓库目标", + + "Prevent renaming of target repositories": "防止重命名目标仓库", + "When checked, target repositories can only be renamed by those with bypass permission.": "选中后,目标仓库只能由具有绕过权限的成员重命名。", + + "Repositories that match the matching pattern will be targeted by this ruleset.": "与匹配规则相匹配的仓库将成为该规则集的目标。", + "Repositories that do not match the matching pattern will be targeted by this ruleset.": "与匹配规则不匹配的仓库将成为该规则集的目标。", + + "Target by repository properties": "目标仓库属性", + "Repository targeting determines which repositories will be protected by this ruleset.": "仓库目标确定哪些仓库将受此规则集保护", + + "Add a target": "添加目标", + "Include by property": "包含属性", + "Exclude by property": "排除属性", + + "Include repositories by custom property": "按自定义属性包含仓库", + "Custom properties allow you to create your own metadata for repositories": "自定义属性允许您为仓库创建自己的元数据,", + "include": "包括", + "exclude": "排除", + "Property": "属性", + "Select property": "选择属性", + "Select an item": "选择项目", + "Search for properties": "搜索属性", + + // 仓库 + "Select items": "选择项目", + "Repos": "仓库", "Target": "目标", "Branch targeting determines which branches will be protected by this ruleset. Use inclusion patterns to expand the list of branches under this ruleset. Use exclusion patterns to exclude branches.": "分支目标确定哪些分支将受此规则集保护。使用包含模式来扩展该规则集下的分支列表。使用排除模式来排除分支。", @@ -12080,6 +12127,17 @@ I18N.zh["repository/settings/rules"] = { // 仓库设置 - 规则 - 规则集 /< "All branches": "所有分支", "All tags": "所有标签", // 标签 + "Applies to": "适用于", + "target:": "个目标:", + "targets:": "个目标:", + "Targets have changed and branch match list will update on save.": "目标已更改,分支匹配列表将在保存时更新。", + "Targets have changed and": "目标已更改,", + "branch": "分支", + "branches": "分支", + "match list will update on save.": "匹配列表将在保存时更新。", + "targets including": "个目标,包括", + "Targets have changed and repository match list will update on save.": "目标已更改,仓库匹配列表将在保存时更新。", // 组织设置 + // 包含规则 对话框 "Branches that match the matching pattern will be targeted by this ruleset.": "与匹配规则相匹配的分支将成为该规则集的目标。", "Tags that match the matching pattern will be targeted by this ruleset.": "与匹配规则相匹配的标签将成为该规则集的目标。", // 标签 @@ -12140,12 +12198,12 @@ I18N.zh["repository/settings/rules"] = { // 仓库设置 - 规则 - 规则集 /< "Required approvals": "要求批准审查", "The number of approving reviews that are required before a pull request can be merged.": "拉取请求合并前所需的批准审查次数。", "Dismiss stale pull request approvals when new commits are pushed": "当新的提交被推送时,撤销陈旧的拉取请求批准审查", - "New, reviewable commits pushed will dismiss previous pull request review approvals.": "推送新的可审查提交将撤销之前的拉取请求的批准审查。", - "Require review from Code Owners": "要求代码所有者进行审查", - "Require an approving review in pull requests that modify files that have a designated code owner.": "要求对具有指定代码所有者的文件修改的拉取请求中进行批准审查。", - "Require approval of the most recent reviewable push": "要求批准最新的可审查推送", - "Whether the most recent reviewable push must be approved by someone other than the person who pushed it.": "最新的可审核推送是否必须得到推送者以外的其他人批准。", - "Require conversation resolution before merging": "要求在合并前解决对话", + "New, reviewable commits pushed will dismiss previous pull request review approvals.": "推送新的可审查提交将撤销之前的拉取请求的批准审查。", + "Require review from Code Owners": "要求代码所有者进行审查", + "Require an approving review in pull requests that modify files that have a designated code owner.": "要求对具有指定代码所有者的文件修改的拉取请求中进行批准审查。", + "Require approval of the most recent reviewable push": "要求批准最新的可审查推送", + "Whether the most recent reviewable push must be approved by someone other than the person who pushed it.": "最新的可审核推送是否必须得到推送者以外的其他人批准。", + "Require conversation resolution before merging": "要求在合并前解决对话", "All conversations on code must be resolved before a pull request can be merged.": "在合并拉取请求之前,必须解决有关代码的所有对话。", "Require status checks to pass": "要求通过状态检查", "Choose which status checks must pass before the ref is updated. When enabled, commits must first be pushed to another ref where the checks pass.": "更新引用之前必须选择通过哪些状态检查。启用后,提交必须首先推送到检查通过的另一个引用。", @@ -12162,6 +12220,26 @@ I18N.zh["repository/settings/rules"] = { // 仓库设置 - 规则 - 规则集 /< "Learn more about status checks": "了解更多关于状态检查的信息", "Block force pushes": "阻止强制推送", "Prevent users with push access from force pushing to refs.": "防止具有推送权限的用户强制推送到引用。", + // 组织设置 + "Require workflows to pass before merging": "要求合并前,工作流通过状态检查", + "Require all changes made to a targeted branch to pass the specified workflows before they can be merged.": "要求目标分支上的所有更改在合并前通过指定的工作流", + "Workflow configurations": "工作流程配置", + "No workflow configurations found": "尚无工作流配置", + + "Add workflow": "添加工作流", + "Add required workflow": "添加所需的工作流", + // 仓库 + "Select a repository": "选择仓库", + "Select branch or tag": "选择分支或标签", + "Branch or tag": "分支或标签", + "Pin to commit": "固定到提交", + "Always reference the current commit": "始终引用当前提交", + "Enter a SHA": "输入 SHA", + "Enter a valid SHA": "输入有效的 SHA", + "Enter the SHA for the commit you want to reference": "输入要引用的提交的 SHA", + "Invalid SHA": "无效的 SHA", + "Pick a workflow file": "选择工作流文件", + "Please select a workflow path": "请选择工作流路径", "Restrictions": "限制", // 组织设置 "Restrict commit metadata": "限制提交元数据", @@ -12179,52 +12257,52 @@ I18N.zh["repository/settings/rules"] = { // 仓库设置 - 规则 - 规则集 /< "Applies To": "适用于", "Commit message": "提交信息", "Author email": "作者电子邮箱地址", - "Committer email": "提交者电子邮箱地址", - "Branch name": "分支名称", - "Requirement": "要求", - "Must": "必须", - "start with a matching pattern": "以匹配规则开头", - "end with a matching pattern": "以匹配规则结束", - "contain a matching pattern": "包含匹配规则", - "match a given regex pattern": "匹配给定的正则表达式规则", - "Must not": "不得", - "Matching pattern": "匹配规则", - "Description": "描述", - // [/Commit message must start with a matching pattern/, "提交信息必须以匹配规则开头"], - // [/Commit message must end with a matching pattern/, "提交信息必须以匹配规则结束"], - // [/Commit message must contain with a matching pattern/, "提交信息必须包含匹配规则"], - // [/Commit message must match a given regex pattern/, "提交信息必须匹配给定的正则表达式规则"], - // [/Commit message must not start with a matching pattern/, "提交信息不得以匹配规则开头"], - // [/Commit message must not end with a matching pattern/, "提交信息不得以匹配规则结束"], - // [/Commit message must not contain a matching pattern/, "提交信息不得包含匹配规则"], - // [/Commit message must not match a given regex pattern/, "提交信息不得匹配给定的正则表达式规则"], - - // [/Author email must start with a matching pattern/, "作者电子邮箱地址必须以匹配规则开头"], - // [/Author email must end with a matching pattern/, "作者电子邮箱地址必须以匹配规则结束"], - // [/Author email must contain a matching pattern/, "作者电子邮箱地址必须包含匹配规则"], - // [/Author email must match a given regex pattern/, "作者电子邮箱地址必须匹配给定的正则表达式规则"], - // [/Author email must not start with a matching pattern/, "作者电子邮箱地址不得以匹配规则开头"], - // [/Author email must not end with a matching pattern/, "作者电子邮箱地址不得以匹配规则结束"], - // [/Author email must not contain a matching pattern/, "作者电子邮箱地址不得包含匹配规则"], - // [/Author email must not match a given regex pattern/, "作者电子邮箱地址不得匹配给定的正则表达式规则"], - - // [/Committer email must start with a matching pattern/, "提交者电子邮箱地址必须以匹配规则开头"], - // [/Committer email must end with a matching pattern/, "提交者电子邮箱地址必须以匹配规则结束"], - // [/Committer email must contain a matching pattern/, "提交者电子邮箱地址必须包含匹配规则"], - // [/Committer email must match a given regex pattern/, "提交者电子邮箱地址必须匹配给定的正则表达式规则"], - // [/Committer email must not start with a matching pattern/, "提交者电子邮箱地址不得以匹配规则开头"], - // [/Committer email must not end with a matching pattern/, "提交者电子邮箱地址不得以匹配规则结束"], - // [/Committer email must not contain a matching pattern/, "提交者电子邮箱地址不得包含匹配规则"], - // [/Committer email must not match a given regex pattern/, "提交者电子邮箱地址不得匹配给定的正则表达式规则"], - - // [/Branch name must start with a matching pattern/, "分支名称必须以匹配规则开头"], - // [/Branch name must end with a matching pattern/, "分支名称必须以匹配规则结束"], - // [/Branch name must contain a matching pattern/, "分支名称必须包含匹配规则"], - // [/Branch name must match a given regex pattern/, "分支名称必须匹配给定的正则表达式规则"], - // [/Branch name must not start with a matching pattern/, "分支名称不得以匹配规则开头"], - // [/Branch name must not end with a matching pattern/, "分支名称不得以匹配规则结束"], - // [/Branch name must not contain a matching pattern/, "分支名称不得包含匹配规则"], - // [/Branch name must not match a given regex pattern/, "分支名称不得匹配给定的正则表达式规则"], + "Committer email": "提交者电子邮箱地址", + "Branch name": "分支名称", + "Requirement": "要求", + "Must": "必须", + "start with a matching pattern": "以匹配规则开头", + "end with a matching pattern": "以匹配规则结束", + "contain a matching pattern": "包含匹配规则", + "match a given regex pattern": "匹配给定的正则表达式规则", + "Must not": "不得", + "Matching pattern": "匹配规则", + "Description": "描述", + // [/Commit message must start with a matching pattern/, "提交信息必须以匹配规则开头"], + // [/Commit message must end with a matching pattern/, "提交信息必须以匹配规则结束"], + // [/Commit message must contain with a matching pattern/, "提交信息必须包含匹配规则"], + // [/Commit message must match a given regex pattern/, "提交信息必须匹配给定的正则表达式规则"], + // [/Commit message must not start with a matching pattern/, "提交信息不得以匹配规则开头"], + // [/Commit message must not end with a matching pattern/, "提交信息不得以匹配规则结束"], + // [/Commit message must not contain a matching pattern/, "提交信息不得包含匹配规则"], + // [/Commit message must not match a given regex pattern/, "提交信息不得匹配给定的正则表达式规则"], + + // [/Author email must start with a matching pattern/, "作者电子邮箱地址必须以匹配规则开头"], + // [/Author email must end with a matching pattern/, "作者电子邮箱地址必须以匹配规则结束"], + // [/Author email must contain a matching pattern/, "作者电子邮箱地址必须包含匹配规则"], + // [/Author email must match a given regex pattern/, "作者电子邮箱地址必须匹配给定的正则表达式规则"], + // [/Author email must not start with a matching pattern/, "作者电子邮箱地址不得以匹配规则开头"], + // [/Author email must not end with a matching pattern/, "作者电子邮箱地址不得以匹配规则结束"], + // [/Author email must not contain a matching pattern/, "作者电子邮箱地址不得包含匹配规则"], + // [/Author email must not match a given regex pattern/, "作者电子邮箱地址不得匹配给定的正则表达式规则"], + + // [/Committer email must start with a matching pattern/, "提交者电子邮箱地址必须以匹配规则开头"], + // [/Committer email must end with a matching pattern/, "提交者电子邮箱地址必须以匹配规则结束"], + // [/Committer email must contain a matching pattern/, "提交者电子邮箱地址必须包含匹配规则"], + // [/Committer email must match a given regex pattern/, "提交者电子邮箱地址必须匹配给定的正则表达式规则"], + // [/Committer email must not start with a matching pattern/, "提交者电子邮箱地址不得以匹配规则开头"], + // [/Committer email must not end with a matching pattern/, "提交者电子邮箱地址不得以匹配规则结束"], + // [/Committer email must not contain a matching pattern/, "提交者电子邮箱地址不得包含匹配规则"], + // [/Committer email must not match a given regex pattern/, "提交者电子邮箱地址不得匹配给定的正则表达式规则"], + + // [/Branch name must start with a matching pattern/, "分支名称必须以匹配规则开头"], + // [/Branch name must end with a matching pattern/, "分支名称必须以匹配规则结束"], + // [/Branch name must contain a matching pattern/, "分支名称必须包含匹配规则"], + // [/Branch name must match a given regex pattern/, "分支名称必须匹配给定的正则表达式规则"], + // [/Branch name must not start with a matching pattern/, "分支名称不得以匹配规则开头"], + // [/Branch name must not end with a matching pattern/, "分支名称不得以匹配规则结束"], + // [/Branch name must not contain a matching pattern/, "分支名称不得包含匹配规则"], + // [/Branch name must not match a given regex pattern/, "分支名称不得匹配给定的正则表达式规则"], "How this rule will appear to your": "这个规则将如何在您的", "organization": "组织", diff --git a/main(greasyfork).user.js b/main(greasyfork).user.js index 33debb615..89738c5d4 100644 --- a/main(greasyfork).user.js +++ b/main(greasyfork).user.js @@ -4,7 +4,7 @@ // @description 中文化 GitHub 界面的部分菜单及内容。原作者为楼教主(http://www.52cik.com/)。 // @copyright 2021, 沙漠之子 (https://maboloshi.github.io/Blog) // @icon https://github.githubassets.com/pinned-octocat.svg -// @version 1.9.0-2024-03-29 +// @version 1.9.0-2024-04-12 // @author 沙漠之子 // @license GPL-3.0 // @match https://github.com/*