Skip to content

The Unified and Autonomous Development Platform

feat: Able to raise concerns via code comments for AI PR review (OD-2776)

Robin Shen93494156b45d
diff --git a/pom.xml b/pom.xml
index 59bbccd7a3..8d8cfd36a3 100644
--- a/pom.xml
+++ b/pom.xml
@@ -681,8 +681,8 @@
</repository>
</repositories>
<properties>
- <commons.version>3.3.1</commons.version>
- <agent.version>2.6.0</agent.version>
+ <commons.version>3.3.2</commons.version>
+ <agent.version>2.6.1</agent.version>
<slf4j.version>2.0.9</slf4j.version>
<logback.version>1.4.14</logback.version>
<antlr.version>4.7.2</antlr.version>
diff --git a/server-core/src/main/java/io/onedev/server/ai/CodeCommentHelper.java b/server-core/src/main/java/io/onedev/server/ai/CodeCommentHelper.java
index 5471382d98..72a440e4cd 100644
--- a/server-core/src/main/java/io/onedev/server/ai/CodeCommentHelper.java
+++ b/server-core/src/main/java/io/onedev/server/ai/CodeCommentHelper.java
@@ -2,28 +2,69 @@ package io.onedev.server.ai;
import java.util.ArrayList;
import java.util.Comparator;
+import java.util.Date;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import org.apache.shiro.authz.UnauthenticatedException;
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+import org.jspecify.annotations.Nullable;
+
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import io.onedev.server.OneDev;
import io.onedev.server.model.CodeComment;
import io.onedev.server.model.CodeCommentReply;
+import io.onedev.server.model.CodeCommentStatusChange;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.CodeCommentReplyService;
+import io.onedev.server.service.CodeCommentStatusChangeService;
public class CodeCommentHelper {
- private static ObjectMapper getObjectMapper() {
- return OneDev.getInstance(ObjectMapper.class);
+ public static Map<String, Object> addReply(Subject subject, CodeComment comment, String content) {
+ var user = SecurityUtils.getUser(subject);
+ if (user == null)
+ throw new UnauthenticatedException();
+
+ if (!SecurityUtils.canReadCode(subject, comment.getProject()))
+ throw new UnauthorizedException();
+
+ var reply = new CodeCommentReply();
+ reply.setComment(comment);
+ reply.setContent(content);
+ reply.setUser(user);
+ reply.setDate(new Date());
+ reply.setCompareContext(comment.getCompareContext());
+ getCodeCommentReplyService().create(reply);
+
+ return getDetail(reply);
+ }
+
+ public static Map<String, Object> changeStatus(Subject subject, CodeComment comment,
+ boolean resolved, @Nullable String note) {
+ if (!SecurityUtils.canChangeStatus(subject, comment))
+ throw new UnauthorizedException();
+
+ if (comment.isResolved() != resolved) {
+ var statusChange = new CodeCommentStatusChange();
+ statusChange.setComment(comment);
+ statusChange.setUser(SecurityUtils.getUser(subject));
+ statusChange.setResolved(resolved);
+ statusChange.setCompareContext(comment.getCompareContext());
+ getCodeCommentStatusChangeService().create(statusChange, note);
+ }
+
+ return getDetail(comment);
}
public static Map<String, Object> getDetail(CodeComment comment) {
var typeReference = new TypeReference<LinkedHashMap<String, Object>>() {};
var data = getObjectMapper().convertValue(comment, typeReference);
- data.remove("id");
data.remove("uuid");
data.remove("userId");
data.put("user", comment.getUser().getName());
@@ -54,4 +95,16 @@ public class CodeCommentHelper {
return replyMap;
}
+ private static ObjectMapper getObjectMapper() {
+ return OneDev.getInstance(ObjectMapper.class);
+ }
+
+ private static CodeCommentReplyService getCodeCommentReplyService() {
+ return OneDev.getInstance(CodeCommentReplyService.class);
+ }
+
+ private static CodeCommentStatusChangeService getCodeCommentStatusChangeService() {
+ return OneDev.getInstance(CodeCommentStatusChangeService.class);
+ }
+
}
diff --git a/server-core/src/main/java/io/onedev/server/ai/DefaultChatService.java b/server-core/src/main/java/io/onedev/server/ai/DefaultChatService.java
index e394ce1269..fdb7a4dc0b 100644
--- a/server-core/src/main/java/io/onedev/server/ai/DefaultChatService.java
+++ b/server-core/src/main/java/io/onedev/server/ai/DefaultChatService.java
@@ -217,6 +217,15 @@ public class DefaultChatService extends BaseEntityService<Chat> implements ChatS
private final Set<String> loggedToolCalls = new HashSet<>();
+ private boolean thinkingBlockOpen;
+
+ private String ensureThinkingClosed(String content) {
+ if (!thinkingBlockOpen)
+ return content;
+ thinkingBlockOpen = false;
+ return content + "</div>\n\n";
+ }
+
private void updateRespondingContent(StreamingHandle streamingHandle, String partialContent) {
ThreadContext.bind(subject);
if (responseFuture.isDone()) {
@@ -227,6 +236,7 @@ public class DefaultChatService extends BaseEntityService<Chat> implements ChatS
var content = responding.getContent();
if (content == null)
content = "";
+ content = ensureThinkingClosed(content);
content += partialContent;
responding.content = content;
webSocketService.notifyObservableChange(Chat.getPartialResponseObservable(chatId), null);
@@ -240,10 +250,25 @@ public class DefaultChatService extends BaseEntityService<Chat> implements ChatS
}
@Override
- public void onPartialThinking(PartialThinking partialThinking, PartialThinkingContext context) {
+ public void onPartialThinking(PartialThinking partialThinking, PartialThinkingContext context) {
ThreadContext.bind(subject);
- if (responseFuture.isDone())
+ if (responseFuture.isDone()) {
context.streamingHandle().cancel();
+ } else {
+ var responding = getResponding(sessionId, chatId, requestId);
+ if (responding != null) {
+ var content = responding.getContent();
+ if (content == null)
+ content = "";
+ if (!thinkingBlockOpen) {
+ content += "\n\n<div class='text-muted fst-italic border-start ps-2 mb-2'>";
+ thinkingBlockOpen = true;
+ }
+ content += partialThinking.text();
+ responding.content = content;
+ webSocketService.notifyObservableChange(Chat.getPartialResponseObservable(chatId), null);
+ }
+ }
}
@Override
@@ -261,6 +286,7 @@ public class DefaultChatService extends BaseEntityService<Chat> implements ChatS
content = "";
else
content += "\n\n";
+ content = ensureThinkingClosed(content);
content += "<div class='text-muted'>Calling tool \"" + partialToolCall.name() + "\"...</div>\n\n";
@@ -274,6 +300,11 @@ public class DefaultChatService extends BaseEntityService<Chat> implements ChatS
@Override
public void onCompleteResponse(ChatResponse completeResponse) {
ThreadContext.bind(subject);
+ var responding = getResponding(sessionId, chatId, requestId);
+ if (responding != null && responding.getContent() != null && thinkingBlockOpen) {
+ responding.content = ensureThinkingClosed(responding.getContent());
+ webSocketService.notifyObservableChange(Chat.getPartialResponseObservable(chatId), null);
+ }
sessionService.runAsync(() -> {
try {
var aiMessage = completeResponse.aiMessage();
@@ -354,7 +385,12 @@ public class DefaultChatService extends BaseEntityService<Chat> implements ChatS
@Override
public void onError(Throwable error) {
- ThreadContext.bind(subject);
+ ThreadContext.bind(subject);
+ var responding = getResponding(sessionId, chatId, requestId);
+ if (responding != null && responding.getContent() != null && thinkingBlockOpen) {
+ responding.content = ensureThinkingClosed(responding.getContent());
+ webSocketService.notifyObservableChange(Chat.getPartialResponseObservable(chatId), null);
+ }
responseFuture.completeExceptionally(error);
}
diff --git a/server-core/src/main/java/io/onedev/server/ai/PullRequestHelper.java b/server-core/src/main/java/io/onedev/server/ai/PullRequestHelper.java
index d3c01b13d1..64133906ff 100644
--- a/server-core/src/main/java/io/onedev/server/ai/PullRequestHelper.java
+++ b/server-core/src/main/java/io/onedev/server/ai/PullRequestHelper.java
@@ -8,9 +8,6 @@ import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
-import javax.ws.rs.NotAcceptableException;
-import javax.ws.rs.NotFoundException;
-
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
import org.eclipse.jgit.diff.DiffEntry.ChangeType;
@@ -22,6 +19,8 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import io.onedev.commons.utils.PlanarRange;
import io.onedev.server.OneDev;
+import io.onedev.server.exception.NotAcceptableException;
+import io.onedev.server.exception.NotFoundException;
import io.onedev.server.git.BlobChange;
import io.onedev.server.git.BlobIdent;
import io.onedev.server.git.GitUtils;
diff --git a/server-core/src/main/java/io/onedev/server/ai/TodResource.java b/server-core/src/main/java/io/onedev/server/ai/TodResource.java
index 80cc574b91..4fbae00e8c 100644
--- a/server-core/src/main/java/io/onedev/server/ai/TodResource.java
+++ b/server-core/src/main/java/io/onedev/server/ai/TodResource.java
@@ -58,8 +58,6 @@ import io.onedev.server.git.GitUtils;
import io.onedev.server.git.service.GitService;
import io.onedev.server.job.JobService;
import io.onedev.server.model.Build;
-import io.onedev.server.model.CodeCommentReply;
-import io.onedev.server.model.CodeCommentStatusChange;
import io.onedev.server.model.Issue;
import io.onedev.server.model.IssueComment;
import io.onedev.server.model.IssueLink;
@@ -98,9 +96,7 @@ import io.onedev.server.search.entity.issue.IssueQueryParseOption;
import io.onedev.server.search.entity.pullrequest.PullRequestQuery;
import io.onedev.server.security.SecurityUtils;
import io.onedev.server.service.BuildService;
-import io.onedev.server.service.CodeCommentReplyService;
import io.onedev.server.service.CodeCommentService;
-import io.onedev.server.service.CodeCommentStatusChangeService;
import io.onedev.server.service.IssueChangeService;
import io.onedev.server.service.IssueCommentService;
import io.onedev.server.service.IssueLinkService;
@@ -189,12 +185,6 @@ public class TodResource {
@Inject
private CodeCommentService codeCommentService;
- @Inject
- private CodeCommentReplyService codeCommentReplyService;
-
- @Inject
- private CodeCommentStatusChangeService codeCommentStatusChangeService;
-
@Inject
private BuildService buildService;
@@ -1568,68 +1558,24 @@ public class TodResource {
public Map<String, Object> addCodeCommentReply(
@QueryParam("commentId") @NotNull Long commentId,
@NotNull String replyContent) {
- var user = SecurityUtils.getUser();
- if (user == null)
- throw new UnauthenticatedException();
-
var comment = codeCommentService.load(commentId);
- if (!SecurityUtils.canReadCode(comment.getProject()))
- throw new UnauthorizedException();
-
- var reply = new CodeCommentReply();
- reply.setComment(comment);
- reply.setContent(replyContent);
- reply.setUser(user);
- reply.setDate(new Date());
- reply.setCompareContext(comment.getCompareContext());
- codeCommentReplyService.create(reply);
-
- return CodeCommentHelper.getDetail(reply);
+ return CodeCommentHelper.addReply(SecurityUtils.getSubject(), comment, replyContent);
}
@Path("/resolve-code-comment")
@Consumes(MediaType.TEXT_PLAIN)
@POST
public Map<String, Object> resolveCodeComment(@QueryParam("commentId") @NotNull Long commentId, String note) {
- var user = SecurityUtils.getUser();
- if (user == null)
- throw new UnauthenticatedException();
-
var comment = codeCommentService.load(commentId);
- if (!SecurityUtils.canWriteCode(comment.getProject()))
- throw new UnauthorizedException();
-
- var statusChange = new CodeCommentStatusChange();
- statusChange.setComment(comment);
- statusChange.setUser(user);
- statusChange.setResolved(true);
- statusChange.setCompareContext(comment.getCompareContext());
- codeCommentStatusChangeService.create(statusChange, note);
-
- return CodeCommentHelper.getDetail(comment);
+ return CodeCommentHelper.changeStatus(SecurityUtils.getSubject(), comment, true, note);
}
@Path("/unresolve-code-comment")
@Consumes(MediaType.TEXT_PLAIN)
@POST
public Map<String, Object> unresolveCodeComment(@QueryParam("commentId") @NotNull Long commentId, String note) {
- var user = SecurityUtils.getUser();
- if (user == null)
- throw new UnauthenticatedException();
-
var comment = codeCommentService.load(commentId);
- if (!SecurityUtils.canWriteCode(comment.getProject()))
- throw new UnauthorizedException();
-
- var statusChange = new CodeCommentStatusChange();
- statusChange.setComment(comment);
- statusChange.setUser(user);
- statusChange.setDate(new Date(System.currentTimeMillis() + 1000));
- statusChange.setResolved(false);
- statusChange.setCompareContext(comment.getCompareContext());
- codeCommentStatusChangeService.create(statusChange, note);
-
- return CodeCommentHelper.getDetail(comment);
+ return CodeCommentHelper.changeStatus(SecurityUtils.getSubject(), comment, false, note);
}
@SuppressWarnings("unchecked")
diff --git a/server-core/src/main/java/io/onedev/server/ai/ToolUtils.java b/server-core/src/main/java/io/onedev/server/ai/ToolUtils.java
index bdc2413f27..279ea9a745 100644
--- a/server-core/src/main/java/io/onedev/server/ai/ToolUtils.java
+++ b/server-core/src/main/java/io/onedev/server/ai/ToolUtils.java
@@ -27,10 +27,17 @@ import io.onedev.commons.utils.LinearRange;
import io.onedev.commons.utils.PlanarRange;
import io.onedev.commons.utils.StringUtils;
import io.onedev.server.OneDev;
-import io.onedev.server.ai.tools.GetDiffPatch;
-import io.onedev.server.ai.tools.GetFileContent;
-import io.onedev.server.ai.tools.QueryCodeSnippets;
-import io.onedev.server.ai.tools.QuerySymbolDefinitions;
+import io.onedev.server.ai.tools.code.GetDiffPatch;
+import io.onedev.server.ai.tools.code.GetFileContent;
+import io.onedev.server.ai.tools.code.QueryCodeSnippets;
+import io.onedev.server.ai.tools.code.QuerySymbolDefinitions;
+import io.onedev.server.ai.tools.codecomment.AddCodeCommentReply;
+import io.onedev.server.ai.tools.codecomment.ResolveCodeComment;
+import io.onedev.server.ai.tools.codecomment.UnresolveCodeComment;
+import io.onedev.server.ai.tools.pullrequest.AddPullRequestCodeComment;
+import io.onedev.server.ai.tools.pullrequest.ApprovePullRequest;
+import io.onedev.server.ai.tools.pullrequest.GetPullRequestCodeComments;
+import io.onedev.server.ai.tools.pullrequest.RequestChangesForPullRequestTool;
import io.onedev.server.exception.ExceptionUtils;
import io.onedev.server.git.BlobIdent;
import io.onedev.server.git.BlobIdentFilter;
@@ -197,28 +204,24 @@ public class ToolUtils {
}
}
- /*
- new AddCodeComment(true) {
-
- @Override
- protected Long getProjectId() {
- return projectId;
- }
-
- @Override
- protected Long getPullRequestId() {
- return pullRequestId;
- }
-
- @Override
- protected ObjectId getCommitId(boolean oldRevision) {
- return oldRevision ? oldCommitId : newCommitId;
- }
- }
- */
);
}
+ public static List<TaskTool> getPullRequestReviewTools(long pullRequestId) {
+ return List.of(
+ new ApprovePullRequest(pullRequestId),
+ new RequestChangesForPullRequestTool(pullRequestId));
+ }
+
+ public static List<TaskTool> getPullRequestCodeCommentTools(long pullRequestId) {
+ return List.of(
+ new GetPullRequestCodeComments(pullRequestId),
+ new AddPullRequestCodeComment(pullRequestId),
+ new AddCodeCommentReply(),
+ new ResolveCodeComment(),
+ new UnresolveCodeComment());
+ }
+
public static void filterDuplications(List<ToolSpecification> toolSpecifications) {
var seenNames = new HashSet<String>();
for (var it = toolSpecifications.iterator(); it.hasNext();) {
diff --git a/server-core/src/main/java/io/onedev/server/ai/taskchecker/PullRequestReviewTaskChecker.java b/server-core/src/main/java/io/onedev/server/ai/taskchecker/PullRequestReviewTaskChecker.java
index c01201014e..7c6c53cbea 100644
--- a/server-core/src/main/java/io/onedev/server/ai/taskchecker/PullRequestReviewTaskChecker.java
+++ b/server-core/src/main/java/io/onedev/server/ai/taskchecker/PullRequestReviewTaskChecker.java
@@ -1,18 +1,18 @@
package io.onedev.server.ai.taskchecker;
-import static io.onedev.server.model.PullRequest.APPROVE_TOOL_NAME;
-import static io.onedev.server.model.PullRequest.REQUEST_FOR_CHANGES_TOOL_NAME;
-
import java.util.Set;
+import io.onedev.server.ai.tools.pullrequest.ApprovePullRequest;
+import io.onedev.server.ai.tools.pullrequest.RequestChangesForPullRequestTool;
+
public class PullRequestReviewTaskChecker implements TaskChecker {
@Override
public String preToolCall(String toolName, Set<String> calledTools) {
- if (toolName.equals(APPROVE_TOOL_NAME) || toolName.equals(REQUEST_FOR_CHANGES_TOOL_NAME)) {
- if (calledTools.contains(APPROVE_TOOL_NAME))
+ if (toolName.equals(ApprovePullRequest.TOOL_NAME) || toolName.equals(RequestChangesForPullRequestTool.TOOL_NAME)) {
+ if (calledTools.contains(ApprovePullRequest.TOOL_NAME))
return "You've already approved the pull request";
- else if (calledTools.contains(REQUEST_FOR_CHANGES_TOOL_NAME))
+ else if (calledTools.contains(RequestChangesForPullRequestTool.TOOL_NAME))
return "You've already requested changes for the pull request";
else
return null;
@@ -23,7 +23,7 @@ public class PullRequestReviewTaskChecker implements TaskChecker {
@Override
public boolean isResponseRequired(Set<String> calledTools) {
- return !calledTools.contains(APPROVE_TOOL_NAME) && !calledTools.contains(REQUEST_FOR_CHANGES_TOOL_NAME);
+ return !calledTools.contains(ApprovePullRequest.TOOL_NAME) && !calledTools.contains(RequestChangesForPullRequestTool.TOOL_NAME);
}
-}
\ No newline at end of file
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/AddCodeComment.java b/server-core/src/main/java/io/onedev/server/ai/tools/AddCodeComment.java
deleted file mode 100644
index ee58a93191..0000000000
--- a/server-core/src/main/java/io/onedev/server/ai/tools/AddCodeComment.java
+++ /dev/null
@@ -1,161 +0,0 @@
-package io.onedev.server.ai.tools;
-
-import static io.onedev.server.ai.ToolUtils.convertToJson;
-
-import java.util.Map;
-import java.util.UUID;
-
-import org.apache.shiro.authz.UnauthorizedException;
-import org.apache.shiro.subject.Subject;
-import org.eclipse.jgit.lib.ObjectId;
-import org.jspecify.annotations.Nullable;
-
-import com.fasterxml.jackson.databind.JsonNode;
-
-import dev.langchain4j.agent.tool.ToolSpecification;
-import dev.langchain4j.model.chat.request.json.JsonObjectSchema;
-import io.onedev.commons.utils.LinearRange;
-import io.onedev.commons.utils.PlanarRange;
-import io.onedev.server.OneDev;
-import io.onedev.server.ai.TaskTool;
-import io.onedev.server.ai.ToolExecutionResult;
-import io.onedev.server.ai.ToolUtils;
-import io.onedev.server.git.BlobIdent;
-import io.onedev.server.model.CodeComment;
-import io.onedev.server.model.PullRequest;
-import io.onedev.server.model.support.CompareContext;
-import io.onedev.server.model.support.Mark;
-import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.service.CodeCommentService;
-import io.onedev.server.service.ProjectService;
-import io.onedev.server.service.PullRequestService;
-
-/*
- * This tool is not used currently. To use it effectively, we need to add the ability to
- * get existing code comments also.
- */
-public abstract class AddCodeComment implements TaskTool {
-
- private final boolean inDiffContext;
-
- public AddCodeComment(boolean inDiffContext) {
- this.inDiffContext = inDiffContext;
- }
-
- @Override
- public ToolSpecification getSpecification() {
- var paramsBuilder = JsonObjectSchema.builder().addStringProperty("comment").description("Comment to add");
-
- if (inDiffContext)
- paramsBuilder.addBooleanProperty("oldRevision").description("Specify whether the code snippet being commented is from the old revision");
-
- paramsBuilder
- .addStringProperty("filePath").description("Path of the file containing the code snippet to comment")
- .addIntegerProperty("fromLineNumber").description("Start line number of the code snippet to comment")
- .addIntegerProperty("toLineNumber").description("End line number of the code snippet to comment")
- .required(ToolUtils.required(inDiffContext, "comment", "filePath", "fromLineNumber", "toLineNumber"));
- if (inDiffContext)
- paramsBuilder.addBooleanProperty("oldRevision").description("Specify whether the code snippet being commented is from the old revision");
- return ToolSpecification.builder()
- .name("addCodeComment")
- .description("Add a comment to a code snippet")
- .parameters(paramsBuilder.build())
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var project = OneDev.getInstance(ProjectService.class).load(getProjectId());
- var user = SecurityUtils.getUser(subject);
- if (!SecurityUtils.canReadCode(subject, project) || user == null)
- throw new UnauthorizedException();
-
- if (arguments.get("comment") == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'comment' is required")), false);
- var content = arguments.get("comment").asText();
- if (inDiffContext && arguments.get("oldRevision") == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'oldRevision' is required")), false);
- var oldRevision = arguments.get("oldRevision") != null ? arguments.get("oldRevision").asBoolean() : false;
- if (arguments.get("filePath") == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'filePath' is required")), false);
- var filePath = arguments.get("filePath").asText();
- if (arguments.get("fromLineNumber") == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'fromLineNumber' is required")), false);
- var fromLineNumber = arguments.get("fromLineNumber").asInt();
- if (arguments.get("toLineNumber") == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'toLineNumber' is required")), false);
- var toLineNumber = arguments.get("toLineNumber").asInt();
- if (fromLineNumber > toLineNumber)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'fromLineNumber' must be less than or equal to 'toLineNumber'")), false);
- if (fromLineNumber <= 0)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'fromLineNumber' must be greater than 0")), false);
-
- var oldCommitId = getCommitId(true);
- var newCommitId = getCommitId(false);
-
- PullRequest request = null;
- ObjectId comparisonBase;
- if (getPullRequestId() != null) {
- var pullRequestService = OneDev.getInstance(PullRequestService.class);
- request = pullRequestService.load(getPullRequestId());
- comparisonBase = pullRequestService.getComparisonBase(request, oldCommitId, newCommitId);
- } else {
- comparisonBase = oldCommitId;
- }
-
- var comment = new CodeComment();
- comment.setUUID(UUID.randomUUID().toString());
- comment.setProject(project);
- comment.setUser(user);
-
- var commitHash = oldRevision? comparisonBase.name() : newCommitId.name();
- var blob = project.getBlob(new BlobIdent(commitHash, filePath), false);
- if (blob == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "File not found")), false);
- if (blob.getText() == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Not a text file")), false);
- var lines = blob.getText().getLines();
- if (toLineNumber > lines.size())
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'toLineNumber' must not exceed number of lines in the file")), false);
- var mark = new Mark();
- mark.setCommitHash(commitHash);
- mark.setPath(filePath);
- mark.setRange(new PlanarRange(fromLineNumber-1, 0, toLineNumber-1, lines.get(toLineNumber-1).length()));
- if (request == null) {
- /*
- * Outside of pull request, no one will be notified of the comment. So we automatically
- * mention authors of commented lines
- */
- StringBuilder mentions = new StringBuilder();
- for (var author: project.getAuthors(filePath, ObjectId.fromString(commitHash),
- new LinearRange(mark.getRange().getFromRow(), mark.getRange().getToRow()))) {
- mentions.append("@").append(author.getName()).append(" ");
- }
- content = mentions.toString() + content;
- }
- comment.setContent(content);
- if (request != null) {
- mark = mark.permanentize(project, oldCommitId, newCommitId, comparisonBase);
- if (mark == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Invalid patch section to comment on")), false);
- }
- comment.setMark(mark);
-
- var compareContext = new CompareContext();
- compareContext.setPullRequest(request);
- compareContext.setOldCommitHash(oldCommitId.name());
- compareContext.setNewCommitHash(newCommitId.name());
- comment.setCompareContext(compareContext);
-
- OneDev.getInstance(CodeCommentService.class).create(comment);
- return new ToolExecutionResult(convertToJson(Map.of("successful", true)), false);
- }
-
- protected abstract Long getProjectId();
-
- @Nullable
- protected abstract Long getPullRequestId();
-
- protected abstract ObjectId getCommitId(boolean oldRevision);
-
-}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/CommitDetailTool.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/CommitDetailTool.java
similarity index 98%
rename from server-core/src/main/java/io/onedev/server/ai/tools/CommitDetailTool.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/CommitDetailTool.java
index 767bf7aca4..9129eda00c 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/CommitDetailTool.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/CommitDetailTool.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import static io.onedev.server.ai.ToolUtils.convertToJson;
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/GetDiffPatch.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetDiffPatch.java
similarity index 97%
rename from server-core/src/main/java/io/onedev/server/ai/tools/GetDiffPatch.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/GetDiffPatch.java
index 4889725407..3ef25be565 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/GetDiffPatch.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetDiffPatch.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import static io.onedev.server.ai.ToolUtils.convertToJson;
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/GetFileContent.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetFileContent.java
similarity index 98%
rename from server-core/src/main/java/io/onedev/server/ai/tools/GetFileContent.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/GetFileContent.java
index 428260c364..a369a44a9a 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/GetFileContent.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetFileContent.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import static io.onedev.server.ai.ToolUtils.convertToJson;
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/GetFilesAndSubfolders.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetFilesAndSubfolders.java
similarity index 98%
rename from server-core/src/main/java/io/onedev/server/ai/tools/GetFilesAndSubfolders.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/GetFilesAndSubfolders.java
index 7ddd91f4a1..6c1c4ed0a8 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/GetFilesAndSubfolders.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetFilesAndSubfolders.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import static io.onedev.server.ai.ToolUtils.convertToJson;
import static io.onedev.server.ai.ToolUtils.getFilesAndFolders;
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/GetHighlightedText.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetHighlightedText.java
similarity index 94%
rename from server-core/src/main/java/io/onedev/server/ai/tools/GetHighlightedText.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/GetHighlightedText.java
index b50915d251..fb8755d2e0 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/GetHighlightedText.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetHighlightedText.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import static io.onedev.server.ai.ToolUtils.convertToJson;
@@ -42,7 +42,8 @@ public class GetHighlightedText implements TaskTool {
.name("getHighlightedTextInformation")
.description("""
Get information of highlighted text in json format, including highlighted text,
- file path and content containing highlighted text
+ file path and content containing highlighted text. This tool also returns the
+ code snippet being commented on when a code comment is active
""")
.build();
}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/GetRootFilesAndFolders.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetRootFilesAndFolders.java
similarity index 96%
rename from server-core/src/main/java/io/onedev/server/ai/tools/GetRootFilesAndFolders.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/GetRootFilesAndFolders.java
index d3ef9faaf3..8ad0fc0387 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/GetRootFilesAndFolders.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/GetRootFilesAndFolders.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import org.apache.shiro.authz.UnauthorizedException;
import org.apache.shiro.subject.Subject;
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/QueryCodeSnippets.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/QueryCodeSnippets.java
similarity index 99%
rename from server-core/src/main/java/io/onedev/server/ai/tools/QueryCodeSnippets.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/QueryCodeSnippets.java
index 0a6f4c9862..2417298e8f 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/QueryCodeSnippets.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/QueryCodeSnippets.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import static io.onedev.server.ai.ToolUtils.convertToJson;
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/QueryFilePaths.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/QueryFilePaths.java
similarity index 99%
rename from server-core/src/main/java/io/onedev/server/ai/tools/QueryFilePaths.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/QueryFilePaths.java
index 84d5cbf3cb..0265f8443b 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/QueryFilePaths.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/QueryFilePaths.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import static io.onedev.server.ai.ToolUtils.convertToJson;
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/QuerySymbolDefinitions.java b/server-core/src/main/java/io/onedev/server/ai/tools/code/QuerySymbolDefinitions.java
similarity index 99%
rename from server-core/src/main/java/io/onedev/server/ai/tools/QuerySymbolDefinitions.java
rename to server-core/src/main/java/io/onedev/server/ai/tools/code/QuerySymbolDefinitions.java
index 288eb31c7b..f55c18507a 100644
--- a/server-core/src/main/java/io/onedev/server/ai/tools/QuerySymbolDefinitions.java
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/code/QuerySymbolDefinitions.java
@@ -1,4 +1,4 @@
-package io.onedev.server.ai.tools;
+package io.onedev.server.ai.tools.code;
import static io.onedev.server.ai.ToolUtils.convertToJson;
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/AddCodeCommentReply.java b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/AddCodeCommentReply.java
new file mode 100644
index 0000000000..b640932a3d
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/AddCodeCommentReply.java
@@ -0,0 +1,54 @@
+package io.onedev.server.ai.tools.codecomment;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import java.util.Map;
+
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import dev.langchain4j.model.chat.request.json.JsonObjectSchema;
+import io.onedev.commons.utils.ExplicitException;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.CodeCommentHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.service.CodeCommentService;
+
+public final class AddCodeCommentReply implements TaskTool {
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("addCodeCommentReply")
+ .description("Add a reply to an existing line-anchored code comment.")
+ .parameters(JsonObjectSchema.builder()
+ .addIntegerProperty("commentId").description("Existing code comment id")
+ .addStringProperty("content").description("Reply body")
+ .required("commentId", "content")
+ .build())
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ if (arguments.get("commentId") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'commentId' is required")), false);
+ var commentId = arguments.get("commentId").asLong();
+
+ if (arguments.get("content") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'content' is required")), false);
+ var content = arguments.get("content").asText();
+
+ var comment = OneDev.getInstance(CodeCommentService.class).load(commentId);
+ try {
+ var reply = CodeCommentHelper.addReply(subject, comment, content);
+ return new ToolExecutionResult(convertToJson(reply), false);
+ } catch (ExplicitException e) {
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", e.getMessage())), false);
+ }
+ }
+
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/GetCodeComment.java b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/GetCodeComment.java
new file mode 100644
index 0000000000..e8322aea6d
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/GetCodeComment.java
@@ -0,0 +1,42 @@
+package io.onedev.server.ai.tools.codecomment;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.CodeCommentHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.CodeCommentService;
+
+public final class GetCodeComment implements TaskTool {
+
+ private final long commentId;
+
+ public GetCodeComment(long commentId) {
+ this.commentId = commentId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("getCodeComment")
+ .description("Get info of code comment in json format")
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var comment = OneDev.getInstance(CodeCommentService.class).load(commentId);
+ if (!SecurityUtils.canReadCode(subject, comment.getProject()))
+ throw new UnauthorizedException();
+ return new ToolExecutionResult(convertToJson(CodeCommentHelper.getDetail(comment)), false);
+ }
+
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/GetCodeCommentReplies.java b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/GetCodeCommentReplies.java
new file mode 100644
index 0000000000..7e2eba8820
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/GetCodeCommentReplies.java
@@ -0,0 +1,41 @@
+package io.onedev.server.ai.tools.codecomment;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.CodeCommentHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.CodeCommentService;
+
+public final class GetCodeCommentReplies implements TaskTool {
+
+ private final long commentId;
+
+ public GetCodeCommentReplies(long commentId) {
+ this.commentId = commentId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("getCodeCommentReplies")
+ .description("Get replies of code comment in json format")
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var comment = OneDev.getInstance(CodeCommentService.class).load(commentId);
+ if (!SecurityUtils.canReadCode(subject, comment.getProject()))
+ throw new UnauthorizedException();
+ return new ToolExecutionResult(convertToJson(CodeCommentHelper.getReplies(comment)), false);
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/ResolveCodeComment.java b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/ResolveCodeComment.java
new file mode 100644
index 0000000000..9eae5debc8
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/ResolveCodeComment.java
@@ -0,0 +1,54 @@
+package io.onedev.server.ai.tools.codecomment;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import java.util.Map;
+
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import dev.langchain4j.model.chat.request.json.JsonObjectSchema;
+import io.onedev.commons.utils.ExplicitException;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.CodeCommentHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.service.CodeCommentService;
+
+public final class ResolveCodeComment implements TaskTool {
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("resolveCodeComment")
+ .description("Mark a line-anchored code comment as resolved, optionally with a short note")
+ .parameters(JsonObjectSchema.builder()
+ .addIntegerProperty("commentId").description("Existing code comment id")
+ .addStringProperty("note").description("Optional note explaining why it is resolved")
+ .required("commentId")
+ .build())
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ if (arguments.get("commentId") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'commentId' is required")), false);
+ var commentId = arguments.get("commentId").asLong();
+
+ var comment = OneDev.getInstance(CodeCommentService.class).load(commentId);
+
+ var noteNode = arguments.get("note");
+ var note = noteNode != null && !noteNode.isNull() ? noteNode.asText() : null;
+
+ try {
+ var commentInfo = CodeCommentHelper.changeStatus(subject, comment, true, note);
+ return new ToolExecutionResult(convertToJson(commentInfo), false);
+ } catch (ExplicitException e) {
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", e.getMessage())), false);
+ }
+ }
+
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/UnresolveCodeComment.java b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/UnresolveCodeComment.java
new file mode 100644
index 0000000000..da785f751a
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/codecomment/UnresolveCodeComment.java
@@ -0,0 +1,52 @@
+package io.onedev.server.ai.tools.codecomment;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import java.util.Map;
+
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import dev.langchain4j.model.chat.request.json.JsonObjectSchema;
+import io.onedev.commons.utils.ExplicitException;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.CodeCommentHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.service.CodeCommentService;
+
+public final class UnresolveCodeComment implements TaskTool {
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("unresolveCodeComment")
+ .description("Mark a resolved line-anchored code comment as unresolved, optionally with a short note.")
+ .parameters(JsonObjectSchema.builder()
+ .addIntegerProperty("commentId").description("Existing code comment id")
+ .addStringProperty("note").description("Optional note explaining why it is marked as unresolved")
+ .required("commentId")
+ .build())
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ if (arguments.get("commentId") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'commentId' is required")), false);
+ var commentId = arguments.get("commentId").asLong();
+
+ var noteNode = arguments.get("note");
+ var note = noteNode != null && !noteNode.isNull() ? noteNode.asText() : null;
+
+ var comment = OneDev.getInstance(CodeCommentService.class).load(commentId);
+ try {
+ var commentInfo = CodeCommentHelper.changeStatus(subject, comment, false, note);
+ return new ToolExecutionResult(convertToJson(commentInfo), false);
+ } catch (ExplicitException e) {
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", e.getMessage())), false);
+ }
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/issue/GetIssue.java b/server-core/src/main/java/io/onedev/server/ai/tools/issue/GetIssue.java
new file mode 100644
index 0000000000..e1d8657ca4
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/issue/GetIssue.java
@@ -0,0 +1,41 @@
+package io.onedev.server.ai.tools.issue;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.IssueHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.IssueService;
+
+public final class GetIssue implements TaskTool {
+
+ private final long issueId;
+
+ public GetIssue(long issueId) {
+ this.issueId = issueId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("getIssue")
+ .description("Get info of issue in json format")
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var issue = OneDev.getInstance(IssueService.class).load(issueId);
+ if (!SecurityUtils.canAccessIssue(subject, issue))
+ throw new UnauthorizedException();
+ return new ToolExecutionResult(convertToJson(IssueHelper.getDetail(subject, issue.getProject(), issue)), false);
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/issue/GetIssueComments.java b/server-core/src/main/java/io/onedev/server/ai/tools/issue/GetIssueComments.java
new file mode 100644
index 0000000000..6f1093818e
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/issue/GetIssueComments.java
@@ -0,0 +1,42 @@
+package io.onedev.server.ai.tools.issue;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.IssueHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.IssueService;
+
+public final class GetIssueComments implements TaskTool {
+
+ private final long issueId;
+
+ public GetIssueComments(long issueId) {
+ this.issueId = issueId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("getIssueComments")
+ .description("Get comments of issue in json format")
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var issue = OneDev.getInstance(IssueService.class).load(issueId);
+ if (!SecurityUtils.canAccessIssue(subject, issue))
+ throw new UnauthorizedException();
+ return new ToolExecutionResult(convertToJson(IssueHelper.getComments(issue)), false);
+ }
+
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/AddPullRequestCodeComment.java b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/AddPullRequestCodeComment.java
new file mode 100644
index 0000000000..5bb5808672
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/AddPullRequestCodeComment.java
@@ -0,0 +1,77 @@
+package io.onedev.server.ai.tools.pullrequest;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import java.util.Map;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import dev.langchain4j.model.chat.request.json.JsonObjectSchema;
+import io.onedev.commons.utils.ExplicitException;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.CodeCommentHelper;
+import io.onedev.server.ai.PullRequestHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.PullRequestService;
+
+public final class AddPullRequestCodeComment implements TaskTool {
+
+ private final long pullRequestId;
+
+ public AddPullRequestCodeComment(long pullRequestId) {
+ this.pullRequestId = pullRequestId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("addPullRequestCodeComment")
+ .description("Add a line-anchored code comment on a file in the OneDev pull request. "
+ + "The line range must appear on the right side (added or equal context lines) of the PR diff. "
+ + "Line numbers are 1-based in the file at the PR head commit.")
+ .parameters(JsonObjectSchema.builder()
+ .addStringProperty("filePath").description("Path of the file in the repository")
+ .addIntegerProperty("fromLine").description("Start line number, 1-based")
+ .addIntegerProperty("toLine").description("End line number, 1-based (omit to use fromLine)")
+ .addStringProperty("content").description("Comment body")
+ .required("filePath", "fromLine", "content")
+ .build())
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var request = OneDev.getInstance(PullRequestService.class).load(pullRequestId);
+ var user = SecurityUtils.getUser(subject);
+ if (!SecurityUtils.canReadCode(subject, request.getProject()) || user == null)
+ throw new UnauthorizedException();
+
+ if (arguments.get("filePath") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'filePath' is required")), false);
+ var filePath = arguments.get("filePath").asText();
+
+ if (arguments.get("fromLine") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'fromLine' is required")), false);
+ var fromLine = arguments.get("fromLine").asInt();
+
+ var toLineNode = arguments.get("toLine");
+ var toLine = toLineNode != null && !toLineNode.isNull() ? toLineNode.asInt() : fromLine;
+
+ if (arguments.get("content") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'content' is required")), false);
+ var content = arguments.get("content").asText();
+
+ try {
+ var comment = PullRequestHelper.addCodeComment(request, user, filePath, fromLine, toLine, content);
+ return new ToolExecutionResult(convertToJson(CodeCommentHelper.getDetail(comment)), false);
+ } catch (ExplicitException e) {
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", e.getMessage())), false);
+ }
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/ApprovePullRequest.java b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/ApprovePullRequest.java
new file mode 100644
index 0000000000..0b7b96c256
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/ApprovePullRequest.java
@@ -0,0 +1,62 @@
+package io.onedev.server.ai.tools.pullrequest;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import java.util.Map;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import dev.langchain4j.model.chat.request.json.JsonObjectSchema;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.PullRequestReviewService;
+import io.onedev.server.service.PullRequestService;
+
+public final class ApprovePullRequest implements TaskTool {
+
+ public static final String TOOL_NAME = "approvePullRequest";
+
+ private final long pullRequestId;
+
+ public ApprovePullRequest(long pullRequestId) {
+ this.pullRequestId = pullRequestId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name(TOOL_NAME)
+ .description("Record an approval for OneDev pull request. "
+ + "Call this exactly once after you have finished reviewing and decided to approve.")
+ .parameters(JsonObjectSchema.builder()
+ .addStringProperty("reason").description("Reason explaining why you are approving this pull request. Make sure to quote relevant code snippets if applicable")
+ .required("reason")
+ .build())
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var request = OneDev.getInstance(PullRequestService.class).load(pullRequestId);
+ var user = SecurityUtils.getUser(subject);
+ if (!SecurityUtils.canReadCode(subject, request.getProject()) || user == null)
+ throw new UnauthorizedException();
+
+ if (arguments.get("reason") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'reason' is required")), false);
+ var reason = arguments.get("reason").asText();
+
+ var result = PullRequestReviewerCheck.rejectIfNotReviewer(request, user);
+ if (result != null)
+ return result;
+
+ OneDev.getInstance(PullRequestReviewService.class).review(user, request, true, reason);
+ return new ToolExecutionResult(convertToJson(Map.of("successful", true)), false);
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequest.java b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequest.java
new file mode 100644
index 0000000000..d891a32036
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequest.java
@@ -0,0 +1,42 @@
+package io.onedev.server.ai.tools.pullrequest;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.PullRequestHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.PullRequestService;
+
+public final class GetPullRequest implements TaskTool {
+
+ private final long pullRequestId;
+
+ public GetPullRequest(long pullRequestId) {
+ this.pullRequestId = pullRequestId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("getPullRequest")
+ .description("Get info of OneDev pull request in json format")
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var request = OneDev.getInstance(PullRequestService.class).load(pullRequestId);
+ var project = request.getProject();
+ if (!SecurityUtils.canReadCode(subject, project))
+ throw new UnauthorizedException();
+ return new ToolExecutionResult(convertToJson(PullRequestHelper.getDetail(project, request)), false);
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequestCodeComments.java b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequestCodeComments.java
new file mode 100644
index 0000000000..f0b3e9fd38
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequestCodeComments.java
@@ -0,0 +1,43 @@
+package io.onedev.server.ai.tools.pullrequest;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.PullRequestHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.PullRequestService;
+
+public final class GetPullRequestCodeComments implements TaskTool {
+
+ private final long pullRequestId;
+
+ public GetPullRequestCodeComments(long pullRequestId) {
+ this.pullRequestId = pullRequestId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("getPullRequestCodeComments")
+ .description("Get line-anchored code comments on the OneDev pull request in json format. "
+ + "Each item includes id, filePath, startLine, endLine (1-based on the PR head), user, date, "
+ + "content, resolved, and replies.")
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var request = OneDev.getInstance(PullRequestService.class).load(pullRequestId);
+ if (!SecurityUtils.canReadCode(subject, request.getProject()))
+ throw new UnauthorizedException();
+ return new ToolExecutionResult(convertToJson(PullRequestHelper.getCodeComments(request)), false);
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequestComments.java b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequestComments.java
new file mode 100644
index 0000000000..6ae2b2b2af
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/GetPullRequestComments.java
@@ -0,0 +1,41 @@
+package io.onedev.server.ai.tools.pullrequest;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.PullRequestHelper;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.PullRequestService;
+
+public final class GetPullRequestComments implements TaskTool {
+
+ private final long pullRequestId;
+
+ public GetPullRequestComments(long pullRequestId) {
+ this.pullRequestId = pullRequestId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name("getPullRequestComments")
+ .description("Get comments of OneDev pull request in json format")
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var request = OneDev.getInstance(PullRequestService.class).load(pullRequestId);
+ if (!SecurityUtils.canReadCode(subject, request.getProject()))
+ throw new UnauthorizedException();
+ return new ToolExecutionResult(convertToJson(PullRequestHelper.getComments(request)), false);
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/PullRequestReviewerCheck.java b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/PullRequestReviewerCheck.java
new file mode 100644
index 0000000000..d2075943dd
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/PullRequestReviewerCheck.java
@@ -0,0 +1,30 @@
+package io.onedev.server.ai.tools.pullrequest;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import java.util.Map;
+
+import org.jspecify.annotations.Nullable;
+
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.model.PullRequest;
+import io.onedev.server.model.PullRequestReview;
+import io.onedev.server.model.User;
+
+public final class PullRequestReviewerCheck {
+
+ private PullRequestReviewerCheck() {
+ }
+
+ @Nullable
+ public static ToolExecutionResult rejectIfNotReviewer(PullRequest request, User user) {
+ var review = request.getReview(user);
+ if (review == null || review.getStatus() == PullRequestReview.Status.EXCLUDED) {
+ var data = Map.of(
+ "successful", false,
+ "failReason", "You are not a reviewer and is not allowed to approve this pull request. Add your option as comment instead");
+ return new ToolExecutionResult(convertToJson(data), false);
+ }
+ return null;
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/RequestChangesForPullRequestTool.java b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/RequestChangesForPullRequestTool.java
new file mode 100644
index 0000000000..76816ed949
--- /dev/null
+++ b/server-core/src/main/java/io/onedev/server/ai/tools/pullrequest/RequestChangesForPullRequestTool.java
@@ -0,0 +1,62 @@
+package io.onedev.server.ai.tools.pullrequest;
+
+import static io.onedev.server.ai.ToolUtils.convertToJson;
+
+import java.util.Map;
+
+import org.apache.shiro.authz.UnauthorizedException;
+import org.apache.shiro.subject.Subject;
+
+import com.fasterxml.jackson.databind.JsonNode;
+
+import dev.langchain4j.agent.tool.ToolSpecification;
+import dev.langchain4j.model.chat.request.json.JsonObjectSchema;
+import io.onedev.server.OneDev;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolExecutionResult;
+import io.onedev.server.security.SecurityUtils;
+import io.onedev.server.service.PullRequestReviewService;
+import io.onedev.server.service.PullRequestService;
+
+public final class RequestChangesForPullRequestTool implements TaskTool {
+
+ public static final String TOOL_NAME = "requestChangesForPullRequest";
+
+ private final long pullRequestId;
+
+ public RequestChangesForPullRequestTool(long pullRequestId) {
+ this.pullRequestId = pullRequestId;
+ }
+
+ @Override
+ public ToolSpecification getSpecification() {
+ return ToolSpecification.builder()
+ .name(TOOL_NAME)
+ .description("Record a request for changes for OneDev pull request. "
+ + "Call this exactly once after you have finished reviewing and decided changes are needed.")
+ .parameters(JsonObjectSchema.builder()
+ .addStringProperty("reason").description("Reason explaining why you are requesting changes for this pull request. Make sure to quote relevant code snippets if applicable")
+ .required("reason")
+ .build())
+ .build();
+ }
+
+ @Override
+ public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
+ var request = OneDev.getInstance(PullRequestService.class).load(pullRequestId);
+ var user = SecurityUtils.getUser(subject);
+ if (!SecurityUtils.canReadCode(subject, request.getProject()) || user == null)
+ throw new UnauthorizedException();
+
+ if (arguments.get("reason") == null)
+ return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'reason' is required")), false);
+ var reason = arguments.get("reason").asText();
+
+ var result = PullRequestReviewerCheck.rejectIfNotReviewer(request, user);
+ if (result != null)
+ return result;
+
+ OneDev.getInstance(PullRequestReviewService.class).review(user, request, false, reason);
+ return new ToolExecutionResult(convertToJson(Map.of("successful", true)), false);
+ }
+}
diff --git a/server-core/src/main/java/io/onedev/server/commandhandler/Translate.java b/server-core/src/main/java/io/onedev/server/commandhandler/Translate.java
index aea2e6ceb8..a94a27c661 100644
--- a/server-core/src/main/java/io/onedev/server/commandhandler/Translate.java
+++ b/server-core/src/main/java/io/onedev/server/commandhandler/Translate.java
@@ -236,7 +236,7 @@ public class Translate extends CommandHandler {
var model = OpenAiChatModel.builder()
.apiKey(apiKey)
.baseUrl(baseUrl)
- .modelName("gpt-4o")
+ .modelName("openai/gpt-4o")
.temperature(0.0)
.timeout(Duration.ofSeconds(30))
.build();
diff --git a/server-core/src/main/java/io/onedev/server/model/CodeComment.java b/server-core/src/main/java/io/onedev/server/model/CodeComment.java
index a47267c363..46a7ca37c8 100644
--- a/server-core/src/main/java/io/onedev/server/model/CodeComment.java
+++ b/server-core/src/main/java/io/onedev/server/model/CodeComment.java
@@ -1,6 +1,5 @@
package io.onedev.server.model;
-import static io.onedev.server.ai.ToolUtils.convertToJson;
import static io.onedev.server.model.CodeComment.PROP_CREATE_DATE;
import static io.onedev.server.search.entity.EntitySort.Direction.DESCENDING;
@@ -26,20 +25,13 @@ import javax.persistence.OneToMany;
import javax.persistence.Table;
import org.apache.commons.lang3.StringUtils;
-import org.apache.shiro.authz.UnauthorizedException;
-import org.apache.shiro.subject.Subject;
import org.eclipse.jgit.lib.ObjectId;
import org.jspecify.annotations.Nullable;
-import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
-import dev.langchain4j.agent.tool.ToolSpecification;
import io.onedev.server.OneDev;
-import io.onedev.server.ai.CodeCommentHelper;
-import io.onedev.server.ai.TaskTool;
-import io.onedev.server.ai.ToolExecutionResult;
import io.onedev.server.attachment.AttachmentStorageSupport;
import io.onedev.server.git.service.GitService;
import io.onedev.server.model.support.CompareContext;
@@ -48,7 +40,6 @@ import io.onedev.server.model.support.Mark;
import io.onedev.server.model.support.ProjectBelonging;
import io.onedev.server.search.entity.SortField;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.service.CodeCommentService;
import io.onedev.server.service.UserService;
import io.onedev.server.xodus.VisitInfoService;
@@ -321,55 +312,5 @@ public class CodeComment extends ProjectBelonging implements AttachmentStorageSu
}
return new ArrayList<>(participants);
}
-
- public List<TaskTool> getTools() {
- var commentId = getId();
- return List.of(
- new TaskTool() {
-
- @Override
- public ToolSpecification getSpecification() {
- return ToolSpecification.builder()
- .name("getCurrentCodeComment")
- .description("""
- Get info of current code comment in json format. Commented code is highlighted \
- and its information can be obtained via relevant tools""")
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var comment = getCodeComment(commentId);
- if (!SecurityUtils.canReadCode(subject, comment.getProject()))
- throw new UnauthorizedException();
- return new ToolExecutionResult(convertToJson(CodeCommentHelper.getDetail(comment)), false);
- }
-
- },
- new TaskTool() {
-
- @Override
- public ToolSpecification getSpecification() {
- return ToolSpecification.builder()
- .name("getCurrentCodeCommentReplies")
- .description("Get replies of current code comment in json format")
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var comment = getCodeComment(commentId);
- if (!SecurityUtils.canReadCode(subject, comment.getProject()))
- throw new UnauthorizedException();
- return new ToolExecutionResult(convertToJson(CodeCommentHelper.getReplies(comment)), false);
- }
-
- }
- );
- }
-
- private static CodeComment getCodeComment(Long commentId) {
- return OneDev.getInstance(CodeCommentService.class).load(commentId);
- }
}
diff --git a/server-core/src/main/java/io/onedev/server/model/Issue.java b/server-core/src/main/java/io/onedev/server/model/Issue.java
index dda9c22697..9786440ff0 100644
--- a/server-core/src/main/java/io/onedev/server/model/Issue.java
+++ b/server-core/src/main/java/io/onedev/server/model/Issue.java
@@ -1,7 +1,6 @@
package io.onedev.server.model;
import static com.fasterxml.jackson.annotation.JsonProperty.Access.READ_ONLY;
-import static io.onedev.server.ai.ToolUtils.convertToJson;
import static io.onedev.server.model.AbstractEntity.PROP_NUMBER;
import static io.onedev.server.model.Issue.PROP_BOARD_POSITION;
import static io.onedev.server.model.Issue.PROP_COMMENT_COUNT;
@@ -59,8 +58,6 @@ import javax.persistence.UniqueConstraint;
import javax.validation.ValidationException;
import org.apache.commons.lang3.StringUtils;
-import org.apache.shiro.authz.UnauthorizedException;
-import org.apache.shiro.subject.Subject;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.revwalk.RevCommit;
import org.hibernate.annotations.Cache;
@@ -69,18 +66,13 @@ import org.hibernate.annotations.DynamicUpdate;
import org.jspecify.annotations.Nullable;
import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
-import dev.langchain4j.agent.tool.ToolSpecification;
import edu.emory.mathcs.backport.java.util.Collections;
import io.onedev.commons.utils.ExplicitException;
import io.onedev.server.OneDev;
-import io.onedev.server.ai.IssueHelper;
-import io.onedev.server.ai.TaskTool;
-import io.onedev.server.ai.ToolExecutionResult;
import io.onedev.server.annotation.Editable;
import io.onedev.server.attachment.AttachmentStorageSupport;
import io.onedev.server.buildspecmodel.inputspec.Input;
@@ -99,7 +91,6 @@ import io.onedev.server.rest.annotation.Api;
import io.onedev.server.search.entity.IssueSortField;
import io.onedev.server.security.SecurityUtils;
import io.onedev.server.service.GroupService;
-import io.onedev.server.service.IssueService;
import io.onedev.server.service.PullRequestService;
import io.onedev.server.service.SettingService;
import io.onedev.server.service.UrlService;
@@ -1398,48 +1389,6 @@ public class Issue extends ProjectBelonging implements AttachmentStorageSupport
return Emojis.getInstance().apply(getTitle()) + " (" + getReference().toString(currentProject)+ ")";
}
- public List<TaskTool> getTools() {
- var issueId = getId();
- return List.of(new TaskTool() {
-
- @Override
- public ToolSpecification getSpecification() {
- return ToolSpecification.builder()
- .name("getCurrentIssue")
- .description("Get info of current issue in json format")
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var issue = getIssue(issueId);
- if (!SecurityUtils.canAccessIssue(subject, issue))
- throw new UnauthorizedException();
- return new ToolExecutionResult(convertToJson(IssueHelper.getDetail(subject, issue.getProject(), issue)), false);
- }
-
- },
- new TaskTool() {
-
- @Override
- public ToolSpecification getSpecification() {
- return ToolSpecification.builder()
- .name("getCurrentIssueComments")
- .description("Get comments of current issue in json format")
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var issue = getIssue(issueId);
- if (!SecurityUtils.canAccessIssue(subject, issue))
- throw new UnauthorizedException();
- return new ToolExecutionResult(convertToJson(IssueHelper.getComments(issue)), false);
- }
-
- });
- }
-
@Nullable
public String getBranch() {
if (branchOptional == null) {
@@ -1457,8 +1406,4 @@ public class Issue extends ProjectBelonging implements AttachmentStorageSupport
return branchOptional.orElse(null);
}
- private static Issue getIssue(Long issueId) {
- return OneDev.getInstance(IssueService.class).load(issueId);
- }
-
}
diff --git a/server-core/src/main/java/io/onedev/server/model/PullRequest.java b/server-core/src/main/java/io/onedev/server/model/PullRequest.java
index 36b02acdb4..2c7e5ae412 100644
--- a/server-core/src/main/java/io/onedev/server/model/PullRequest.java
+++ b/server-core/src/main/java/io/onedev/server/model/PullRequest.java
@@ -1,9 +1,6 @@
package io.onedev.server.model;
import static com.fasterxml.jackson.annotation.JsonProperty.Access.READ_ONLY;
-import static io.onedev.server.ai.PullRequestHelper.getDetail;
-import static io.onedev.server.ai.ToolUtils.convertToJson;
-import static io.onedev.server.ai.ToolUtils.getDiffTools;
import static io.onedev.server.model.AbstractEntity.PROP_NUMBER;
import static io.onedev.server.model.PullRequest.PROP_CLOSE_DAY;
import static io.onedev.server.model.PullRequest.PROP_CLOSE_MONTH;
@@ -67,8 +64,6 @@ import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
import org.apache.commons.lang3.StringUtils;
-import org.apache.shiro.authz.UnauthorizedException;
-import org.apache.shiro.subject.Subject;
import org.eclipse.jgit.lib.ObjectId;
import org.eclipse.jgit.revwalk.RevCommit;
import org.hibernate.annotations.DynamicUpdate;
@@ -76,16 +71,10 @@ import org.jspecify.annotations.Nullable;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
-import com.fasterxml.jackson.databind.JsonNode;
import com.google.common.base.Preconditions;
import com.google.common.collect.Lists;
-import dev.langchain4j.agent.tool.ToolSpecification;
-import dev.langchain4j.model.chat.request.json.JsonObjectSchema;
import io.onedev.server.OneDev;
-import io.onedev.server.ai.PullRequestHelper;
-import io.onedev.server.ai.TaskTool;
-import io.onedev.server.ai.ToolExecutionResult;
import io.onedev.server.attachment.AttachmentStorageSupport;
import io.onedev.server.entityreference.EntityReference;
import io.onedev.server.entityreference.PullRequestReference;
@@ -106,7 +95,6 @@ import io.onedev.server.model.support.pullrequest.MergeStrategy;
import io.onedev.server.rest.annotation.Api;
import io.onedev.server.search.entity.SortField;
import io.onedev.server.security.SecurityUtils;
-import io.onedev.server.service.PullRequestReviewService;
import io.onedev.server.service.PullRequestService;
import io.onedev.server.service.UserService;
import io.onedev.server.util.BranchSemantic;
@@ -146,10 +134,6 @@ public class PullRequest extends ProjectBelonging
public static final int MAX_DESCRIPTION_LEN = 100000;
- public static final String APPROVE_TOOL_NAME = "approvePullRequest";
-
- public static final String REQUEST_FOR_CHANGES_TOOL_NAME = "requestChangesForPullRequest";
-
public static final String NAME_STATUS = "Status";
public static final String NAME_TARGET_PROJECT = "Target Project";
@@ -985,6 +969,11 @@ public class PullRequest extends ProjectBelonging
}
return null;
}
+
+ public boolean isReviewer(User user) {
+ var review = getReview(user);
+ return review != null && review.getStatus() != PullRequestReview.Status.EXCLUDED;
+ }
public boolean canCommentOnCommit(String commitHash) {
if (commitHash.equals(baseCommitHash))
@@ -1499,152 +1488,8 @@ public class PullRequest extends ProjectBelonging
}
}
- public List<TaskTool> getTools(boolean includeReviewActions) {
- var projectId = getProject().getId();
- var requestId = getId();
- var oldCommitId = ObjectId.fromString(getBaseCommitHash());
- var newCommitId = ObjectId.fromString(getLatestUpdate().getHeadCommitHash());
-
- var tools = new ArrayList<TaskTool>();
- tools.add(new TaskTool() {
-
- @Override
- public ToolSpecification getSpecification() {
- return ToolSpecification.builder()
- .name("getCurrentPullRequest")
- .description("Get info of current OneDev pull request in json format")
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var request = getPullRequest(requestId);
- var project = request.getProject();
- if (!SecurityUtils.canReadCode(subject, project))
- throw new UnauthorizedException();
- return new ToolExecutionResult(convertToJson(getDetail(project, request)), false);
- }
-
- });
- tools.add(new TaskTool() {
-
- @Override
- public ToolSpecification getSpecification() {
- return ToolSpecification.builder()
- .name("getCurrentPullRequestComments")
- .description("Get comments of current OneDev pull request in json format")
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var request = getPullRequest(requestId);
- if (!SecurityUtils.canReadCode(subject, request.getProject()))
- throw new UnauthorizedException();
- return new ToolExecutionResult(convertToJson(PullRequestHelper.getComments(request)), false);
- }
-
- });
-
- if (includeReviewActions) {
- tools.add(new TaskTool() {
-
- @Override
- public ToolSpecification getSpecification() {
- return ToolSpecification.builder()
- .name(APPROVE_TOOL_NAME)
- .description("Record an approval for current OneDev pull request. "
- + "Call this exactly once after you have finished reviewing and decided to approve.")
- .parameters(JsonObjectSchema.builder()
- .addStringProperty("reason").description("Reason explaining why you are approving this pull request. Make sure to quote relevant code snippets if applicable")
- .required("reason")
- .build())
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var request = getPullRequest(requestId);
- var user = SecurityUtils.getUser(subject);
- if (!SecurityUtils.canReadCode(subject, request.getProject()) || user == null)
- throw new UnauthorizedException();
-
- if (arguments.get("reason") == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'reason' is required")), false);
- var reason = arguments.get("reason").asText();
-
- var result = checkReviewer(request, user);
- if (result != null)
- return result;
-
- getPullRequestReviewService().review(user, request, true, reason);
- return new ToolExecutionResult(convertToJson(Map.of("successful", true)), false);
- }
-
- });
- tools.add(new TaskTool() {
-
- @Override
- public ToolSpecification getSpecification() {
- return ToolSpecification.builder()
- .name(REQUEST_FOR_CHANGES_TOOL_NAME)
- .description("Record a request for changes for current OneDev pull request. "
- + "Call this exactly once after you have finished reviewing and decided changes are needed.")
- .parameters(JsonObjectSchema.builder()
- .addStringProperty("reason").description("Reason explaining why you are requesting changes for this pull request. Make sure to quote relevant code snippets if applicable")
- .required("reason")
- .build())
- .build();
- }
-
- @Override
- public ToolExecutionResult execute(Subject subject, JsonNode arguments) {
- var request = getPullRequest(requestId);
- var user = SecurityUtils.getUser(subject);
- if (!SecurityUtils.canReadCode(subject, request.getProject()) || user == null)
- throw new UnauthorizedException();
-
- if (arguments.get("reason") == null)
- return new ToolExecutionResult(convertToJson(Map.of("successful", false, "failReason", "Argument 'reason' is required")), false);
- var reason = arguments.get("reason").asText();
-
- var result = checkReviewer(request, user);
- if (result != null)
- return result;
-
- getPullRequestReviewService().review(user, request, false, reason);
- return new ToolExecutionResult(convertToJson(Map.of("successful", true)), false);
- }
-
- });
- }
- tools.addAll(getDiffTools(projectId, oldCommitId, newCommitId, requestId));
- return tools;
- }
-
- @Nullable
- private ToolExecutionResult checkReviewer(PullRequest request, User user) {
- var review = request.getReview(user);
- if (review == null || review.getStatus() == PullRequestReview.Status.EXCLUDED) {
- var data = Map.of(
- "successful", false,
- "failReason", "You are not a reviewer and is not allowed to approve this pull request. Add your option as comment instead");
- return new ToolExecutionResult(convertToJson(data), false);
- } else {
- return null;
- }
- }
-
private static PullRequestService getPullRequestService() {
return OneDev.getInstance(PullRequestService.class);
}
- private static PullRequestReviewService getPullRequestReviewService() {
- return OneDev.getInstance(PullRequestReviewService.class);
- }
-
- private static PullRequest getPullRequest(Long requestId) {
- return getPullRequestService().load(requestId);
- }
-
}
diff --git a/server-core/src/main/java/io/onedev/server/model/support/AiModelSetting.java b/server-core/src/main/java/io/onedev/server/model/support/AiModelSetting.java
index 139b18d99b..3682e75045 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/AiModelSetting.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/AiModelSetting.java
@@ -158,6 +158,8 @@ public class AiModelSetting implements Serializable {
.baseUrl(baseUrl)
.modelName(name)
.timeout(Duration.ofSeconds(timeoutSeconds))
+ .returnThinking(true)
+ .sendThinking(true)
.build();
}
@@ -168,6 +170,8 @@ public class AiModelSetting implements Serializable {
.baseUrl(baseUrl)
.modelName(name)
.timeout(Duration.ofSeconds(timeoutSeconds))
+ .returnThinking(true)
+ .sendThinking(true)
.build();
}
diff --git a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/ClaudeCodeInShell.java b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/ClaudeCodeInShell.java
index 0c8d85db28..989681ee1f 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/ClaudeCodeInShell.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/ClaudeCodeInShell.java
@@ -14,6 +14,7 @@ import io.onedev.server.web.util.SuggestionUtils;
To use this template, please ensure that:
<ul>
<li><a href='https://code.claude.com/docs/en/overview' target='_blank'>Claude Code</a> is installed on OneDev server</li>
+ <li><a href='https://code.onedev.io/onedev/tod/~files/main/readme.md' target='_blank'>TOD</a> is installed on OneDev server and companion skills are installed for Claude Code</li>
<li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>
</ul>""")
public class ClaudeCodeInShell extends WorkspaceSpecTemplate {
diff --git a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/CodexInShell.java b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/CodexInShell.java
index 6d68bb2593..7b4cf98c54 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/CodexInShell.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/CodexInShell.java
@@ -14,6 +14,7 @@ import io.onedev.server.web.util.SuggestionUtils;
To use this template, please ensure that:
<ul>
<li><a href='https://openai.com/codex/' target='_blank'>Codex</a> is installed on OneDev server</li>
+ <li><a href='https://code.onedev.io/onedev/tod/~files/main/readme.md' target='_blank'>TOD</a> is installed on OneDev server and companion skills are installed for Codex</li>
<li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>
</ul>""")
public class CodexInShell extends WorkspaceSpecTemplate {
diff --git a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/CursorInShell.java b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/CursorInShell.java
index 4ee10cfd07..2b3418207d 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/CursorInShell.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/CursorInShell.java
@@ -14,6 +14,7 @@ import io.onedev.server.web.util.SuggestionUtils;
To use this template, please ensure that:
<ul>
<li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>
+ <li><a href='https://code.onedev.io/onedev/tod/~files/main/readme.md' target='_blank'>TOD</a> is installed on OneDev server and companion skills are installed for Cursor CLI</li>
<li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>
</ul>""")
public class CursorInShell extends WorkspaceSpecTemplate {
diff --git a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/OpenCodeInShell.java b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/OpenCodeInShell.java
index b41aa03dba..a6acfe030f 100644
--- a/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/OpenCodeInShell.java
+++ b/server-core/src/main/java/io/onedev/server/model/support/workspace/spec/template/OpenCodeInShell.java
@@ -14,6 +14,7 @@ import io.onedev.server.web.util.SuggestionUtils;
To use this template, please ensure that:
<ul>
<li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>
+ <li><a href='https://code.onedev.io/onedev/tod/~files/main/readme.md' target='_blank'>TOD</a> is installed on OneDev server and companion skills are installed for Open Code</li>
<li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>
</ul>""")
public class OpenCodeInShell extends WorkspaceSpecTemplate {
diff --git a/server-core/src/main/java/io/onedev/server/notification/CodeCommentNotificationManager.java b/server-core/src/main/java/io/onedev/server/notification/CodeCommentNotificationManager.java
index ae17fcadb2..45e9801e06 100644
--- a/server-core/src/main/java/io/onedev/server/notification/CodeCommentNotificationManager.java
+++ b/server-core/src/main/java/io/onedev/server/notification/CodeCommentNotificationManager.java
@@ -5,6 +5,7 @@ import static java.util.stream.Collectors.toSet;
import java.util.Collection;
import java.util.HashSet;
+import java.util.List;
import java.util.Set;
import javax.inject.Inject;
@@ -18,6 +19,8 @@ import io.onedev.commons.utils.StringUtils;
import io.onedev.server.ai.AiTask;
import io.onedev.server.ai.responsehandlers.AddCodeCommentReply;
import io.onedev.server.ai.taskchecker.NoopTaskChecker;
+import io.onedev.server.ai.tools.codecomment.GetCodeCommentReplies;
+import io.onedev.server.ai.tools.codecomment.GetCodeComment;
import io.onedev.server.event.Listen;
import io.onedev.server.event.project.codecomment.CodeCommentEdited;
import io.onedev.server.event.project.codecomment.CodeCommentEvent;
@@ -72,7 +75,9 @@ public class CodeCommentNotificationManager {
var task = new AiTask(
systemPrompt.formatted(mentionedUser.getName()),
event.getTextBody(),
- comment.getTools(),
+ List.of(
+ new GetCodeComment(comment.getId()),
+ new GetCodeCommentReplies(comment.getId())),
new NoopTaskChecker(),
new AddCodeCommentReply(comment.getId()));
userService.execute(mentionedUser, task);
diff --git a/server-core/src/main/java/io/onedev/server/notification/IssueNotificationManager.java b/server-core/src/main/java/io/onedev/server/notification/IssueNotificationManager.java
index ee1176a1ad..2522d48e43 100644
--- a/server-core/src/main/java/io/onedev/server/notification/IssueNotificationManager.java
+++ b/server-core/src/main/java/io/onedev/server/notification/IssueNotificationManager.java
@@ -8,6 +8,7 @@ import static org.unbescape.html.HtmlEscape.escapeHtml5;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
+import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
@@ -22,6 +23,8 @@ import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import io.onedev.server.ai.AiTask;
+import io.onedev.server.ai.tools.issue.GetIssueComments;
+import io.onedev.server.ai.tools.issue.GetIssue;
import io.onedev.server.ai.responsehandlers.AddIssueComment;
import io.onedev.server.ai.taskchecker.NoopTaskChecker;
import io.onedev.server.event.Listen;
@@ -307,7 +310,9 @@ public class IssueNotificationManager {
var task = new AiTask(
systemPrompt.formatted(mentionedUser.getName()),
event.getTextBody(),
- issue.getTools(),
+ List.of(
+ new GetIssue(issue.getId()),
+ new GetIssueComments(issue.getId())),
new NoopTaskChecker(),
new AddIssueComment(issue.getId()));
userService.execute(mentionedUser, task);
diff --git a/server-core/src/main/java/io/onedev/server/notification/PullRequestNotificationManager.java b/server-core/src/main/java/io/onedev/server/notification/PullRequestNotificationManager.java
index 182eeecc6f..471ef1513c 100644
--- a/server-core/src/main/java/io/onedev/server/notification/PullRequestNotificationManager.java
+++ b/server-core/src/main/java/io/onedev/server/notification/PullRequestNotificationManager.java
@@ -18,6 +18,7 @@ import javax.inject.Singleton;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.text.WordUtils;
import org.apache.shiro.authz.Permission;
+import org.eclipse.jgit.lib.ObjectId;
import org.jspecify.annotations.Nullable;
import com.google.common.collect.Lists;
@@ -25,10 +26,19 @@ import com.google.common.collect.Sets;
import io.onedev.server.ai.AiTask;
import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolUtils;
import io.onedev.server.ai.responsehandlers.AddCodeCommentReply;
import io.onedev.server.ai.responsehandlers.AddPullRequestComment;
import io.onedev.server.ai.taskchecker.NoopTaskChecker;
import io.onedev.server.ai.taskchecker.PullRequestReviewTaskChecker;
+import io.onedev.server.ai.tools.codecomment.GetCodeComment;
+import io.onedev.server.ai.tools.codecomment.GetCodeCommentReplies;
+import io.onedev.server.ai.tools.codecomment.ResolveCodeComment;
+import io.onedev.server.ai.tools.codecomment.UnresolveCodeComment;
+import io.onedev.server.ai.tools.pullrequest.ApprovePullRequest;
+import io.onedev.server.ai.tools.pullrequest.GetPullRequest;
+import io.onedev.server.ai.tools.pullrequest.GetPullRequestComments;
+import io.onedev.server.ai.tools.pullrequest.RequestChangesForPullRequestTool;
import io.onedev.server.event.Listen;
import io.onedev.server.event.project.pullrequest.PullRequestAssigned;
import io.onedev.server.event.project.pullrequest.PullRequestChanged;
@@ -72,6 +82,37 @@ import io.onedev.server.xodus.VisitInfoService;
@Singleton
public class PullRequestNotificationManager {
+ private static final String AI_REVIEW_DECISION_TOOLS = """
+ one of these tools, and call it only once: `{0}` if you are satisfied with the change, or `{1}` if you \
+ think it needs more work. If you are unsure, explain what is unclear via final response""";
+
+ private static final String AI_PROMPT_MENTIONED_IN_PULL_REQUEST = """
+ You are mentioned in a pull request. The content mentioning you is presented as user \
+ prompt. Use existing comments as conversation context. Use getPullRequest for PR details; \
+ use getDiffPatch, getFileContent, querySymbolDefinitions, or queryCodeSnippets as needed to \
+ inspect the change. When feedback should be tied to specific lines, use \
+ getPullRequestCodeComments and addPullRequestCodeComment \
+ (range on the right side of the diff, 1-based at PR head); use \
+ addCodeCommentReply, resolveCodeComment, or \
+ unresolveCodeComment to continue or triage existing code-comment threads.""";
+
+ private static final String AI_PROMPT_MENTIONED_IN_CODE_COMMENT = """
+ You are mentioned in a pull request code comment. The content mentioning you is presented \
+ as user prompt. Use existing comment and replies as conversation context. Call relevant \
+ tools to inspect associated pull request if necessary. Use resolveCodeComment or \
+ unresolveCodeComment when the discussion outcome is to close or reopen the thread""";
+
+ private static final String AI_PROMPT_REVIEW_PULL_REQUEST = """
+ Review current pull request. Use getPullRequest for PR details; use getDiffPatch, getFileContent, \
+ querySymbolDefinitions, and queryCodeSnippets as needed to inspect the change. \
+ Use getPullRequestComments and getPullRequestCodeComments for \
+ discussion context. Prefer line-anchored feedback: call addPullRequestCodeComment for \
+ each distinct issue (the line range must lie on the right side of the PR diff—added or \
+ unchanged context—using 1-based line numbers in the file at the PR head). To follow up on \
+ an existing anchor, use addCodeCommentReply with the comment id; use \
+ resolveCodeComment or unresolveCodeComment when a prior thread should be closed or reopened. \
+ """;
+
@Inject
private MailService mailService;
@@ -297,17 +338,12 @@ public class PullRequestNotificationManager {
replyAddress, senderName, threadingReferences);
}
} else if (isAiEntitled(null, request, reviewer)) {
+ var tools = new ArrayList<TaskTool>();
+ addPullRequestInspectionTools(tools, request, true, true);
var task = new AiTask(
null,
- MessageFormat.format("""
- Review current pull request for major issues (ignore styling/format/documentation issues) \
- introduced in the change. Check full content of relevant files to understand the change \
- if necessary. Check existing comments for conversation context. Record your final \
- decision by calling one of these tools, and call it only once: `{0}` if you are satisfied \
- with the change, or `{1}` if you think it needs more work. If you are unsure, explain \
- what is unclear via final response""",
- PullRequest.APPROVE_TOOL_NAME, PullRequest.REQUEST_FOR_CHANGES_TOOL_NAME),
- request.getTools(true),
+ aiPromptReviewPullRequest(),
+ tools,
new PullRequestReviewTaskChecker(),
new AddPullRequestComment(request.getId()));
userService.execute(reviewer, task);
@@ -341,60 +377,41 @@ public class PullRequestNotificationManager {
replyAddress, senderName, threadingReferences);
}
} else if (isAiEntitled(user, request, mentionedUser)) {
- if (event instanceof PullRequestOpened) {
- var systemPrompt = """
- You are mentioned in a pull request. The content mentioning you is presented as user \
- prompt. Use existing comments as conversation context. Call relevant tools to get \
- information about the pull request if necessary""";
+ if (event instanceof PullRequestOpened) {
+ var tools = new ArrayList<TaskTool>();
+ addPullRequestInspectionTools(tools, request, false, true);
var task = new AiTask(
- systemPrompt.formatted(mentionedUser.getName()),
- event.getTextBody(),
- request.getTools(false),
+ AI_PROMPT_MENTIONED_IN_PULL_REQUEST,
+ event.getTextBody(),
+ tools,
new NoopTaskChecker(),
new AddPullRequestComment(request.getId()));
userService.execute(mentionedUser, task);
- } else if (event instanceof PullRequestCommentCreated) {
+ } else if (event instanceof PullRequestCommentCreated) {
var review = request.getReview(mentionedUser);
var pendingReview = review != null && review.getStatus() == PullRequestReview.Status.PENDING;
- String systemPrompt;
- if (pendingReview) {
- systemPrompt = MessageFormat.format("""
- You are mentioned in a pull request. The content mentioning you is presented as user \
- prompt. Use existing comments as conversation context. Call relevant tools to get \
- information about the pull request if necessary.
-
- If you are requested to review the pull request, check full content of relevant \
- files to understand the change if necessary. Record your final decision by calling \
- one of these tools, and call it only once: `{0}` if you are satisfied with the \
- change, or `{1}` if you think it needs more work. If you are unsure, explain what \
- is unclear via final response""",
- PullRequest.APPROVE_TOOL_NAME, PullRequest.REQUEST_FOR_CHANGES_TOOL_NAME);
- } else {
- systemPrompt = """
- You are mentioned in a pull request. The content mentioning you is presented as user \
- prompt. Use existing comments as conversation context. Call relevant tools to get \
- information about the pull request if necessary""";
- }
+ var tools = new ArrayList<TaskTool>();
+ addPullRequestInspectionTools(tools, request, pendingReview, true);
var task = new AiTask(
- systemPrompt.formatted(mentionedUser.getName()),
- event.getTextBody(),
- request.getTools(pendingReview),
+ aiPromptMentionedInPullRequest(pendingReview),
+ event.getTextBody(),
+ tools,
new PullRequestReviewTaskChecker(),
new AddPullRequestComment(request.getId()));
userService.execute(mentionedUser, task);
} else if (event instanceof PullRequestCodeCommentCreated || event instanceof PullRequestCodeCommentReplyCreated) {
- String systemPrompt = """
- You are mentioned in a pull request code comment. The content mentioning you is presented \
- as user prompt. Use existing comments as conversation context. Call relevant tools to get \
- information about the code comment and pull request if necessary""";
- var tools = new ArrayList<TaskTool>(request.getTools(false));
+ var tools = new ArrayList<TaskTool>();
var codeCommentEvent = (PullRequestCodeCommentEvent) event;
var comment = codeCommentEvent.getComment();
- tools.addAll(comment.getTools());
+ tools.add(new GetCodeComment(comment.getId()));
+ tools.add(new GetCodeCommentReplies(comment.getId()));
+ tools.add(new ResolveCodeComment());
+ tools.add(new UnresolveCodeComment());
+ addPullRequestInspectionTools(tools, request, false, false);
var task = new AiTask(
- systemPrompt.formatted(mentionedUser.getName()),
- event.getTextBody(),
- tools,
+ aiPromptMentionedInCodeComment(false),
+ event.getTextBody(),
+ tools,
new NoopTaskChecker(),
new AddCodeCommentReply(comment.getId()));
userService.execute(mentionedUser, task);
@@ -448,6 +465,47 @@ public class PullRequestNotificationManager {
}
}
+ private static String formatAiReviewDecisionTools() {
+ return MessageFormat.format(AI_REVIEW_DECISION_TOOLS,
+ ApprovePullRequest.TOOL_NAME, RequestChangesForPullRequestTool.TOOL_NAME);
+ }
+
+ private static String formatAiReviewDecisionWhenRequested() {
+ return "If you are requested to review the pull request, record your final decision by calling "
+ + formatAiReviewDecisionTools();
+ }
+
+ private static String aiPromptMentionedInPullRequest(boolean pendingReview) {
+ if (pendingReview)
+ return AI_PROMPT_MENTIONED_IN_PULL_REQUEST + "\n\n" + formatAiReviewDecisionWhenRequested();
+ return AI_PROMPT_MENTIONED_IN_PULL_REQUEST;
+ }
+
+ private static String aiPromptMentionedInCodeComment(boolean pendingReview) {
+ if (pendingReview)
+ return AI_PROMPT_MENTIONED_IN_CODE_COMMENT + ".\n\n" + formatAiReviewDecisionWhenRequested();
+ return AI_PROMPT_MENTIONED_IN_CODE_COMMENT;
+ }
+
+ private static String aiPromptReviewPullRequest() {
+ return AI_PROMPT_REVIEW_PULL_REQUEST + "Record your final decision by calling " + formatAiReviewDecisionTools();
+ }
+
+ private static void addPullRequestInspectionTools(ArrayList<TaskTool> tools, PullRequest request,
+ boolean includeReviewTools, boolean includeCodeCommentTools) {
+ long requestId = request.getId();
+ var projectId = request.getProject().getId();
+ var oldCommitId = ObjectId.fromString(request.getBaseCommitHash());
+ var newCommitId = ObjectId.fromString(request.getLatestUpdate().getHeadCommitHash());
+ tools.add(new GetPullRequest(requestId));
+ tools.add(new GetPullRequestComments(requestId));
+ if (includeReviewTools)
+ tools.addAll(ToolUtils.getPullRequestReviewTools(requestId));
+ if (includeCodeCommentTools)
+ tools.addAll(ToolUtils.getPullRequestCodeCommentTools(requestId));
+ tools.addAll(ToolUtils.getDiffTools(projectId, oldCommitId, newCommitId, requestId));
+ }
+
private boolean isAiEntitled(@Nullable User user, PullRequest request, User ai) {
if (user != null && user.getId() > 0) {
if (user.isEntitledToAi(ai)) {
diff --git a/server-core/src/main/java/io/onedev/server/security/SecurityUtils.java b/server-core/src/main/java/io/onedev/server/security/SecurityUtils.java
index 6c807432f4..c406262c43 100644
--- a/server-core/src/main/java/io/onedev/server/security/SecurityUtils.java
+++ b/server-core/src/main/java/io/onedev/server/security/SecurityUtils.java
@@ -562,6 +562,22 @@ public class SecurityUtils extends org.apache.shiro.SecurityUtils {
return canManageWorkspaces(subject, workspace.getProject())
|| workspace.getUser().equals(getAuthUser(subject));
}
+
+ public static boolean canChangeStatus(Subject subject, CodeComment comment) {
+ var user = getAuthUser(subject);
+ if (user == null)
+ return false;
+
+ if (canWriteCode(subject, comment.getProject()) || comment.getUser().equals(user))
+ return true;
+
+ var request = comment.getCompareContext().getPullRequest();
+ return request != null && (request.isReviewer(user) || request.getSubmitter().equals(user));
+ }
+
+ public static boolean canChangeStatus(CodeComment comment) {
+ return canChangeStatus(getSubject(), comment);
+ }
public static boolean canModifyOrDelete(CodeComment comment) {
return canModifyOrDelete(getSubject(), comment);
diff --git a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentPanel.java b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentPanel.java
index 3eea038a01..8beb92bedc 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/codecomment/CodeCommentPanel.java
@@ -7,6 +7,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.Date;
import java.util.List;
+import java.util.Objects;
import org.apache.wicket.AttributeModifier;
import org.apache.wicket.Component;
@@ -45,6 +46,8 @@ import io.onedev.server.OneDev;
import io.onedev.server.ai.ChatTool;
import io.onedev.server.ai.ChatToolAware;
import io.onedev.server.ai.ToolUtils;
+import io.onedev.server.ai.tools.codecomment.GetCodeCommentReplies;
+import io.onedev.server.ai.tools.codecomment.GetCodeComment;
import io.onedev.server.attachment.AttachmentSupport;
import io.onedev.server.attachment.ProjectAttachmentSupport;
import io.onedev.server.data.migration.VersionedXmlDoc;
@@ -326,7 +329,7 @@ public abstract class CodeCommentPanel extends Panel implements ChatToolAware {
@Override
protected void onConfigure() {
super.onConfigure();
- setVisible(!getComment().isResolved() && SecurityUtils.canWriteCode(getComment().getProject()));
+ setVisible(!getComment().isResolved() && SecurityUtils.canChangeStatus(getComment()));
}
});
@@ -340,7 +343,7 @@ public abstract class CodeCommentPanel extends Panel implements ChatToolAware {
@Override
protected void onConfigure() {
super.onConfigure();
- setVisible(getComment().isResolved() && SecurityUtils.canWriteCode(getComment().getProject()));
+ setVisible(getComment().isResolved() && SecurityUtils.canChangeStatus(getComment()));
}
});
@@ -743,7 +746,9 @@ public abstract class CodeCommentPanel extends Panel implements ChatToolAware {
@Override
public List<ChatTool> getChatTools() {
- return ToolUtils.wrapForChat(getComment().getTools());
+ return ToolUtils.wrapForChat(List.of(
+ new GetCodeComment(Objects.requireNonNull(commentId)),
+ new GetCodeCommentReplies(Objects.requireNonNull(commentId))));
}
public class CodeCommentReplyActivity implements CodeCommentActivity {
diff --git a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/BlobTextDiffPanel.java b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/BlobTextDiffPanel.java
index cf36425c55..177c0f9adf 100644
--- a/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/BlobTextDiffPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/component/diff/blob/text/BlobTextDiffPanel.java
@@ -45,7 +45,7 @@ import io.onedev.server.OneDev;
import io.onedev.server.ai.ChatTool;
import io.onedev.server.ai.ChatToolAware;
import io.onedev.server.ai.ToolUtils;
-import io.onedev.server.ai.tools.GetHighlightedText;
+import io.onedev.server.ai.tools.code.GetHighlightedText;
import io.onedev.server.codequality.CodeProblem;
import io.onedev.server.git.BlameBlock;
import io.onedev.server.git.BlameCommit;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/blob/ProjectBlobPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/blob/ProjectBlobPage.java
index 555ef59823..5909b72e5c 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/blob/ProjectBlobPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/blob/ProjectBlobPage.java
@@ -67,12 +67,12 @@ import io.onedev.commons.utils.FileUtils;
import io.onedev.commons.utils.PlanarRange;
import io.onedev.server.ai.ChatTool;
import io.onedev.server.ai.ChatToolAware;
-import io.onedev.server.ai.tools.GetFileContent;
-import io.onedev.server.ai.tools.GetFilesAndSubfolders;
-import io.onedev.server.ai.tools.GetRootFilesAndFolders;
-import io.onedev.server.ai.tools.QueryCodeSnippets;
-import io.onedev.server.ai.tools.QueryFilePaths;
-import io.onedev.server.ai.tools.QuerySymbolDefinitions;
+import io.onedev.server.ai.tools.code.GetFileContent;
+import io.onedev.server.ai.tools.code.GetFilesAndSubfolders;
+import io.onedev.server.ai.tools.code.GetRootFilesAndFolders;
+import io.onedev.server.ai.tools.code.QueryCodeSnippets;
+import io.onedev.server.ai.tools.code.QueryFilePaths;
+import io.onedev.server.ai.tools.code.QuerySymbolDefinitions;
import io.onedev.server.buildspec.BuildSpec;
import io.onedev.server.event.project.CommitIndexed;
import io.onedev.server.git.Blob;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/source/SourceViewPanel.java b/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/source/SourceViewPanel.java
index 86887a951d..f2ed59914f 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/source/SourceViewPanel.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/blob/render/source/SourceViewPanel.java
@@ -78,7 +78,7 @@ import io.onedev.server.ai.ChatTool;
import io.onedev.server.ai.ChatToolAware;
import io.onedev.server.ai.ToolExecutionResult;
import io.onedev.server.ai.ToolUtils;
-import io.onedev.server.ai.tools.GetHighlightedText;
+import io.onedev.server.ai.tools.code.GetHighlightedText;
import io.onedev.server.attachment.ProjectAttachmentSupport;
import io.onedev.server.codequality.BlobTarget;
import io.onedev.server.codequality.CodeProblem;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.java
index c35054d98b..19d2a7cf1e 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/builds/detail/BuildDetailPage.java
@@ -54,8 +54,8 @@ import io.onedev.server.ai.ChatTool;
import io.onedev.server.ai.ChatToolAware;
import io.onedev.server.ai.ToolExecutionResult;
import io.onedev.server.ai.tools.GetBuildSpecEditInstructions;
-import io.onedev.server.ai.tools.GetFileContent;
-import io.onedev.server.ai.tools.QueryFilePaths;
+import io.onedev.server.ai.tools.code.GetFileContent;
+import io.onedev.server.ai.tools.code.QueryFilePaths;
import io.onedev.server.buildspec.BuildSpec;
import io.onedev.server.buildspec.job.Job;
import io.onedev.server.buildspec.job.JobDependency;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/commits/CommitDetailPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/commits/CommitDetailPage.java
index 935b6f81bb..9fd2c546a7 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/commits/CommitDetailPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/commits/CommitDetailPage.java
@@ -8,7 +8,7 @@ import io.onedev.commons.utils.PlanarRange;
import io.onedev.server.OneDev;
import io.onedev.server.ai.ChatTool;
import io.onedev.server.ai.ChatToolAware;
-import io.onedev.server.ai.tools.CommitDetailTool;
+import io.onedev.server.ai.tools.code.CommitDetailTool;
import io.onedev.server.buildspec.BuildSpec;
import io.onedev.server.buildspec.job.Job;
import io.onedev.server.codequality.CodeProblem;
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/issues/detail/IssueDetailPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/issues/detail/IssueDetailPage.java
index 6ffc9bfaf6..d8e1b903a0 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/issues/detail/IssueDetailPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/issues/detail/IssueDetailPage.java
@@ -37,6 +37,8 @@ import com.google.common.collect.Lists;
import io.onedev.server.ai.ChatTool;
import io.onedev.server.ai.ChatToolAware;
+import io.onedev.server.ai.tools.issue.GetIssueComments;
+import io.onedev.server.ai.tools.issue.GetIssue;
import io.onedev.server.buildspecmodel.inputspec.InputContext;
import io.onedev.server.data.migration.VersionedXmlDoc;
import io.onedev.server.model.Issue;
@@ -447,7 +449,9 @@ public abstract class IssueDetailPage extends ProjectIssuesPage implements Input
@Override
public List<ChatTool> getChatTools() {
- return wrapForChat(getIssue().getTools());
+ return wrapForChat(List.of(
+ new GetIssue(getIssue().getId()),
+ new GetIssueComments(getIssue().getId())));
}
}
diff --git a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.java b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.java
index 29a1b7d490..6ed0eefa3f 100644
--- a/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.java
+++ b/server-core/src/main/java/io/onedev/server/web/page/project/pullrequests/detail/PullRequestDetailPage.java
@@ -71,6 +71,10 @@ import com.google.common.collect.Sets;
import io.onedev.server.ai.ChatTool;
import io.onedev.server.ai.ChatToolAware;
+import io.onedev.server.ai.TaskTool;
+import io.onedev.server.ai.ToolUtils;
+import io.onedev.server.ai.tools.pullrequest.GetPullRequestComments;
+import io.onedev.server.ai.tools.pullrequest.GetPullRequest;
import io.onedev.server.attachment.AttachmentSupport;
import io.onedev.server.attachment.ProjectAttachmentSupport;
import io.onedev.server.data.migration.VersionedXmlDoc;
@@ -2441,7 +2445,16 @@ public abstract class PullRequestDetailPage extends ProjectPage implements PullR
@Override
public List<ChatTool> getChatTools() {
- return wrapForChat(getPullRequest().getTools(false));
+ var pr = getPullRequest();
+ var tools = new ArrayList<TaskTool>();
+ var requestId = pr.getId();
+ var projectId = pr.getProject().getId();
+ var oldCommitId = ObjectId.fromString(pr.getBaseCommitHash());
+ var newCommitId = ObjectId.fromString(pr.getLatestUpdate().getHeadCommitHash());
+ tools.add(new GetPullRequest(requestId));
+ tools.add(new GetPullRequestComments(requestId));
+ tools.addAll(ToolUtils.getDiffTools(projectId, oldCommitId, newCommitId, requestId));
+ return wrapForChat(tools);
}
}
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_de.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_de.java
index e0801fbc3a..849b12656d 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_de.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_de.java
@@ -190,7 +190,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Add Rule", "Regel hinzufügen");
m.put("Add SSH key", "SSH-Schlüssel hinzufügen");
m.put("Add SSO provider", "SSO-Anbieter hinzufügen");
- m.put("Add Spec", "Spec hinzufügen");
m.put("Add Spent Time", "Verbrauchte Zeit hinzufügen");
m.put("Add Timesheet", "Zeiterfassung hinzufügen");
m.put("Add Widget", "Widget hinzufügen");
@@ -233,7 +232,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Add new service locator", "Neuen Service-Locator hinzufügen");
m.put("Add new step", "Neuen Schritt hinzufügen");
m.put("Add new trigger", "Neuen Trigger hinzufügen");
- m.put("Add new user config", "Neue Benutzerkonfiguration hinzufügen");
m.put("Add new user data", "Neue Benutzerdaten hinzufügen");
m.put("Add project", "Projekt hinzufügen");
m.put("Add reviewer...", "Reviewer hinzufügen...");
@@ -452,11 +450,8 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Belonging Groups", "Zugehörige Gruppen");
m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.",
"Unten sind einige häufige Kriterien. Geben Sie im Suchfeld oben ein, um die vollständige Liste und verfügbare Kombinationen anzuzeigen.");
- m.put("Below content is restored from an unsaved change. <a class=\"clear-unsaved-change\">Clear</a> to discard",
- "Der untenstehende Inhalt wurde aus einer ungespeicherten Änderung wiederhergestellt. <a class=\"clear-unsaved-change\">Löschen</a>, um zu verwerfen");
m.put("Below content is restored from an unsaved change. <a class=\"discard-unsaved-change\">Discard</a>",
"Der untenstehende Inhalt wurde aus einer ungespeicherten Änderung wiederhergestellt. <a class=\"discard-unsaved-change\">Verwerfen</a>");
- m.put("Below content is restored from an unsaved change. Clear to discard", "Der untenstehende Inhalt wurde aus einer nicht gespeicherten Änderung wiederhergestellt. Löschen, um zu verwerfen");
m.put("Below information will also be sent", "Die untenstehenden Informationen werden ebenfalls gesendet");
m.put("Binary file", "Binärdatei");
m.put("Binary file.", "Binärdatei.");
@@ -601,9 +596,17 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Can Be Used By Workspaces", "Kann von Arbeitsbereichen verwendet werden");
m.put("Can Create Root Projects", "Kann Root-Projekte erstellen");
m.put("Can Edit Estimated Time", "Kann geschätzte Zeit bearbeiten");
+ m.put("Can only compare with common ancestor when different projects are involved", "Vergleich nur mit gemeinsamem Vorfahren möglich, wenn verschiedene Projekte beteiligt sind");
+ m.put("Cancel", "Abbrechen");
+ m.put("Cancel All Queried Builds", "Alle abgefragten Builds abbrechen");
+ m.put("Cancel Selected Builds", "Ausgewählte Builds abbrechen");
+ m.put("Cancel invitation", "Einladung abbrechen");
+ m.put("Cancel request submitted", "Anfrage zum Abbrechen eingereicht");
+ m.put("Cancel this build", "Diesen Build abbrechen");
+ m.put("Cancelled", "Abgebrochen");
+ m.put("Cancelled By", "Abgebrochen von");
m.put("Cannot convert root user to service account", "Kann Root-Benutzer nicht in ein Dienstkonto umwandeln");
m.put("Cannot convert yourself to service account", "Kann sich nicht selbst in ein Dienstkonto umwandeln");
- m.put("Cannot delete branch \"{0}\" as there are workspaces on it", "Kann den Branch \"{0}\" nicht löschen, da es Arbeitsbereiche darauf gibt");
m.put("Cannot delete default branch", "Standard-Branch kann nicht gelöscht werden");
m.put("Cannot delete root account", "Root-Konto kann nicht gelöscht werden");
m.put("Cannot delete yourself", "Sie können sich nicht selbst löschen");
@@ -617,15 +620,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Cannot reset password for user authenticating via external system", "Passwort kann nicht für Benutzer zurückgesetzt werden, der sich über ein externes System authentifiziert");
m.put("Cannot save malformed query", "Fehlerhafte Abfrage kann nicht gespeichert werden");
m.put("Cannot use current or descendant project as parent", "Aktuelles oder Nachkommenprojekt kann nicht als übergeordnetes Projekt verwendet werden");
- m.put("Can only compare with common ancestor when different projects are involved", "Vergleich nur mit gemeinsamem Vorfahren möglich, wenn verschiedene Projekte beteiligt sind");
- m.put("Cancel", "Abbrechen");
- m.put("Cancel All Queried Builds", "Alle abgefragten Builds abbrechen");
- m.put("Cancel Selected Builds", "Ausgewählte Builds abbrechen");
- m.put("Cancel invitation", "Einladung abbrechen");
- m.put("Cancel request submitted", "Anfrage zum Abbrechen eingereicht");
- m.put("Cancel this build", "Diesen Build abbrechen");
- m.put("Cancelled", "Abgebrochen");
- m.put("Cancelled By", "Abgebrochen von");
m.put("Case Sensitive", "Groß-/Kleinschreibung beachten");
m.put("Certificates to Trust", "Zertifikate zum Vertrauen");
m.put("Change", "Ändern");
@@ -669,7 +663,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Check Vulnerabilities", "Schwachstellen überprüfen");
m.put("Check Workflow Integrity", "Workflow-Integrität überprüfen");
m.put("Check out to local directory", "In lokales Verzeichnis auschecken");
- m.put("Check out to local workspace", "In lokalen Arbeitsbereich auschecken");
m.put("Check this to compare right side with common ancestor of left and right", "Markieren Sie dies, um die rechte Seite mit dem gemeinsamen Vorfahren von links und rechts zu vergleichen");
m.put("Check this to enforce two-factor authentication for all users in the system", "Markieren Sie dies, um Zwei-Faktor-Authentifizierung für alle Benutzer im System zu erzwingen");
m.put("Check this to enforce two-factor authentication for all users in this group", "Markieren Sie dies, um Zwei-Faktor-Authentifizierung für alle Benutzer in dieser Gruppe zu erzwingen");
@@ -1013,8 +1006,6 @@ public class Translation_de extends TranslationResourceBundle {
"Definieren Sie Branch-Schutzregeln. Regeln, die im übergeordneten Projekt definiert sind, gelten als nach den hier definierten Regeln definiert. Für einen bestimmten Branch und Benutzer gilt die erste übereinstimmende Regel");
m.put("Define default issue boards for all projects here. A certain project can override this setting to define its own issue boards.",
"Definieren Sie hier die Standard-Issue-Boards für alle Projekte. Ein bestimmtes Projekt kann diese Einstellung überschreiben, um seine eigenen Issue-Boards zu definieren.");
- m.put("Define how issue states should be transited from one to another, either manually or automatically when some events happen. And the rule can be configured to apply to certain projects and issues via the applicable issues setting",
- "Definieren Sie, wie Problemzustände von einem zum anderen übergehen sollen, entweder manuell oder automatisch, wenn bestimmte Ereignisse eintreten. Und die Regel kann so konfiguriert werden, dass sie für bestimmte Projekte und Probleme über die Einstellung anwendbarer Probleme gilt");
m.put("Define issue templates here. When a new issue is created, the first matching template will be used.",
"Definieren Sie hier Problemvorlagen. Wenn ein neues Problem erstellt wird, wird die erste übereinstimmende Vorlage verwendet.");
m.put("Define labels to be assigned to project, build or pull request. For issues, custom fields can be used which is much more powerful than labels",
@@ -1061,7 +1052,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Delete this", "Dies löschen");
m.put("Delete this GPG key", "Diesen GPG-Schlüssel löschen");
m.put("Delete this access token", "Diesen Zugriffstoken löschen");
- m.put("Delete this branch", "Diesen Branch löschen");
m.put("Delete this executor", "Diesen Executor löschen");
m.put("Delete this field", "Diesen Feld löschen");
m.put("Delete this import", "Diesen Import löschen");
@@ -2249,7 +2239,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("New State", "Neuer Status");
m.put("New User Bean", "Neue Benutzer-Bean");
m.put("New Value", "Neuer Wert");
- m.put("New Workspace Spec", "Neue Arbeitsbereichsspezifikation");
m.put("New chat", "Neuer Chat");
m.put("New issue board created", "Neues Issue-Board erstellt");
m.put("New project created", "Neues Projekt erstellt");
@@ -2378,7 +2367,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("No valid signature for head commit of target branch", "Keine gültige Signatur für Head-Commit des Zielbranches");
m.put("No value", "Kein Wert");
m.put("No verified primary email address", "Keine verifizierte primäre E-Mail-Adresse");
- m.put("No workspace provisioners defined", "Keine Arbeitsbereichs-Provisionierer definiert");
m.put("No workspaces", "Keine Arbeitsbereiche");
m.put("No workspaces to delete", "Keine Arbeitsbereiche zum Löschen");
m.put("Node Selector", "Node-Selektor");
@@ -2552,7 +2540,6 @@ public class Translation_de extends TranslationResourceBundle {
"Optional geben Sie ein Datumsfeld an, um Informationen zum Fälligkeitsdatum zu speichern.<br><b>HINWEIS: </b> Sie können die OneDev-Probleme-Felder anpassen, falls hier keine geeignete Option vorhanden ist");
m.put("Optionally specify a path relative to <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> to put retrieved artifacts. Leave empty to use job working directory itself",
"Optional geben Sie einen Pfad relativ zu <a href='https://docs.onedev.io/concepts#job-workdir'>Job-Arbeitsbereich</a> an, um abgerufene Artefakte abzulegen. Lassen Sie das Feld leer, um den Job-Arbeitsbereich selbst zu verwenden");
- m.put("Optionally specify a prefix to be prepended to generated branch name", "Optional ein Präfix angeben, das dem generierten Branch-Namen vorangestellt wird");
m.put("Optionally specify a storage class to allocate build volume dynamically. Leave empty to use default storage class. <b class='text-warning'>NOTE:</b> Reclaim policy of the storage class should be set to <code>Delete</code>, as the volume is only used to hold temporary build files",
"Optional geben Sie eine Speicherklasse an, um das Build-Volume dynamisch zuzuweisen. Lassen Sie das Feld leer, um die Standard-Speicherklasse zu verwenden. <b class='text-warning'>HINWEIS:</b> Die Rückgewinnungsrichtlinie der Speicherklasse sollte auf <code>Delete</code> gesetzt werden, da das Volume nur zum Speichern temporärer Build-Dateien verwendet wird");
m.put("Optionally specify a working period field to hold estimated time infomration.<br><b>NOTE: </b> You may customize OneDev issue fields in case there is no appropriate option here",
@@ -3092,12 +3079,13 @@ public class Translation_de extends TranslationResourceBundle {
"Docker-Bild als OCI-Layout über Crane abrufen. Dieser Schritt muss vom Server-Docker-Executor, Remote-Docker-Executor oder Kubernetes-Executor ausgeführt werden");
m.put("Pull from Remote", "Von Remote abrufen");
m.put("Pull request", "Pull-Request");
- m.put("Pull request #{0} already closed", "Pull-Request #{0} bereits geschlossen");
m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests",
"Pull-Request-Administrationsberechtigung innerhalb eines Projekts, einschließlich Batch-Operationen über mehrere Pull-Requests");
m.put("Pull request already closed", "Pull-Request bereits geschlossen");
m.put("Pull request already opened", "Pull-Request bereits geöffnet");
m.put("Pull request and code review", "Pull-Request und Code-Review");
+ m.put("Pull request can only be merged after getting approvals from all reviewers", "Pull-Request kann nur zusammengeführt werden, nachdem alle Gutachter ihre Zustimmung gegeben haben");
+ m.put("Pull request can only be merged by users with code write permission", "Pull-Request kann nur von Benutzern mit Schreibberechtigung für den Code zusammengeführt werden");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",
"Pull-Request kann jetzt nicht zusammengeführt werden, da <a class=\"more-info d-inline link-primary\">einige erforderliche Builds</a> noch nicht abgeschlossen sind");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",
@@ -3106,10 +3094,7 @@ public class Translation_de extends TranslationResourceBundle {
"Pull-Request kann jetzt nicht zusammengeführt werden, da es <a class=\"more-info d-inline link-primary\">auf Überprüfung wartet</a>");
m.put("Pull request cannot be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",
"Pull-Request kann jetzt nicht zusammengeführt werden, da <a class=\"more-info d-inline link-primary\">Änderungen angefordert</a> wurden");
- m.put("Pull request cannot be merged now as valid signature is required for head commit",
- "Pull-Request kann jetzt nicht zusammengeführt werden, da eine gültige Signatur für den Head-Commit erforderlich ist");
- m.put("Pull request can only be merged after getting approvals from all reviewers", "Pull-Request kann nur zusammengeführt werden, nachdem alle Gutachter ihre Zustimmung gegeben haben");
- m.put("Pull request can only be merged by users with code write permission", "Pull-Request kann nur von Benutzern mit Schreibberechtigung für den Code zusammengeführt werden");
+ m.put("Pull request cannot be merged now as valid signature is required for head commit", "Pull-Request kann jetzt nicht zusammengeführt werden, da eine gültige Signatur für den Head-Commit erforderlich ist");
m.put("Pull request discard", "Pull-Request verwerfen");
m.put("Pull request duration statistics", "Statistiken zur Dauer von Pull-Requests");
m.put("Pull request frequency statistics", "Statistiken zur Häufigkeit von Pull-Requests");
@@ -3258,7 +3243,7 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Request For Changes", "Änderungen anfordern");
m.put("Request Scopes", "Anforderungsbereiche");
m.put("Request Trial Subscription", "Testabonnement anfordern");
- m.put("Request review", "Überprüfung anfordern");
+ m.put("Request review again", "Überprüfung erneut anfordern");
m.put("Request to sync", "Synchronisation anfordern");
m.put("Requested For changes", "Änderungen angefordert");
m.put("Requested changes to pull request \"{0}\" ({1})", "Änderungen am Pull-Request \"{0}\" ({1}) angefordert");
@@ -3535,7 +3520,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Show Description", "Beschreibung anzeigen");
m.put("Show Duration", "Dauer anzeigen");
m.put("Show Emojis", "Emojis anzeigen");
- m.put("Show Error Detail", "Fehlerdetails anzeigen");
m.put("Show Issue Status", "Problemstatus anzeigen");
m.put("Show Package Stats", "Paketstatistiken anzeigen");
m.put("Show Pull Request Stats", "Pull-Request-Statistiken anzeigen");
@@ -4094,7 +4078,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("Symbol Name", "Symbolname");
m.put("Symbol name", "Symbolname");
m.put("Symbols", "Symbole");
- m.put("Sync", "Synchronisieren");
m.put("Sync (pull & push)", "Synchronisieren (ziehen & schieben)");
m.put("Sync Replica Status and Back to Home", "Synchronisieren Sie den Replikatstatus und kehren Sie zur Startseite zurück");
m.put("Sync Repository", "Repository synchronisieren");
@@ -4186,7 +4169,6 @@ public class Translation_de extends TranslationResourceBundle {
m.put("There are merge conflicts.", "Es gibt Merge-Konflikte.");
m.put("There are merge conflicts. You can still create the pull request though", "Es gibt Merge-Konflikte. Sie können den Pull-Request jedoch trotzdem erstellen");
m.put("There are unsaved changes, discard and continue?", "Es gibt ungespeicherte Änderungen, verwerfen und fortfahren?");
- m.put("There are workspaces on source branch", "Es gibt Arbeitsbereiche auf dem Quellzweig");
m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",
"Diese Authenticatoren laufen normalerweise auf Ihrem Mobiltelefon, einige Beispiele sind Google Authenticator, Microsoft Authenticator, Authy, 1Password usw.");
m.put("This <span wicket:id=\"elementTypeName\"></span> is imported from <a wicket:id=\"link\" class=\"alert-link\"><span wicket:id=\"label\"></span></a>",
@@ -5042,7 +5024,38 @@ public class Translation_de extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Request review again", "Überprüfung erneut anfordern");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level",
+ "<b>HINWEIS: </b> Übergangsregeln können auch auf Projektebene konfiguriert und überschrieben werden");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level in enterprise edition",
+ "<b>HINWEIS: </b> Übergangsregeln können auch auf Projektebene in der Enterprise Edition konfiguriert und überschrieben werden");
+ m.put("Associated Branch", "Zugehöriger Branch");
+ m.put("Branch \"{0}\" already exists", "Branch \"{0}\" existiert bereits");
+ m.put("Branch is created", "Branch wurde erstellt");
+ m.put("Cannot delete branch as it has workspaces", "Branch kann nicht gelöscht werden, da er Workspaces enthält");
+ m.put("Cannot delete source branch as it has workspaces", "Quell-Branch kann nicht gelöscht werden, da er Workspaces enthält");
+ m.put("Create a workspace spec running Cursor CLI directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Erstellen Sie eine Workspace-Spezifikation, indem Sie Cursor CLI direkt mit der Server-Shell-Umgebung ausführen.\nWorkspaces, die die erstellte Spezifikation verwenden, teilen sich dieselben Umgebungen und Einstellungen.\nUm diese Vorlage zu verwenden, stellen Sie bitte sicher, dass:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> auf dem OneDev-Server installiert ist</li>\n <li>Ein Shell-Provisioner unter 'Administration / Workspace-Provisioners' hinzugefügt wurde, mit korrekt konfigurierten 'anwendbaren Projekten'</li>\n</ul>");
+ m.put("Create a workspace spec running Cursor CLI inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>container image</a>\nlater to suit your needs if desired",
+ "Erstellen Sie eine Workspace-Spezifikation, indem Sie Cursor CLI innerhalb eines Containers für Isolations- und Sicherheitszwecke ausführen.\nSie können das <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>Container-Image</a>\nspäter anpassen, um es Ihren Anforderungen anzupassen, falls gewünscht");
+ m.put("Default Fork Root", "Standard-Fork-Root");
+ m.put("Default branch is not available", "Standard-Branch ist nicht verfügbar");
+ m.put("Define how issues may move from one state to another in this project. At evaluation time, rules from this project, each ancestor project up to the root, and the global rules are merged in that order; the first matching rule applies.",
+ "Definieren Sie, wie Probleme in diesem Projekt von einem Zustand in einen anderen übergehen können. Zur Evaluierungszeit werden Regeln aus diesem Projekt, jedem übergeordneten Projekt bis zur Wurzel und die globalen Regeln in dieser Reihenfolge zusammengeführt; die erste passende Regel wird angewendet.");
+ m.put("Define how issues move between states: manually by users, or automatically in response to events. The first matching rule applies.",
+ "Definieren Sie, wie Probleme zwischen Zuständen wechseln: manuell durch Benutzer oder automatisch als Reaktion auf Ereignisse. Die erste passende Regel wird angewendet.");
+ m.put("Issue Branch Prefix", "Issue-Branch-Präfix");
+ m.put("Issue branch prefix updated", "Issue-Branch-Präfix aktualisiert");
+ m.put("No fork root", "Kein Fork-Root");
+ m.put("Optionally specify a prefix to be prepended (as a path segment) when generate issue branch.\nFor instance with prefix <code>feature</code>, generated issue branch will be\n<code>feature/issue-100-some-title</code>",
+ "Geben Sie optional ein Präfix an, das beim Generieren eines Issue-Branches vorangestellt wird (als Pfadsegment).\nZum Beispiel wird mit dem Präfix <code>feature</code> der generierte Issue-Branch\n<code>feature/issue-100-some-title</code> sein");
+ m.put("This setting is inherited from parent project when left empty. The first non-empty value found while walking up the project hierarchy will be used.",
+ "Diese Einstellung wird vom übergeordneten Projekt geerbt, wenn sie leer bleibt. Der erste nicht leere Wert, der beim Durchlaufen der Projekt-Hierarchie gefunden wird, wird verwendet.");
+ m.put("When forking from the UI, the default target project will be created as\n&lt;default fork root&gt;/&lt;account name&gt;/&lt;project name&gt; if specified\n(users forking need permission to create child projects under the fork\nroot), or &lt;account name&gt;/&lt;project name&gt; otherwise (need permission\nto create root projects)",
+ "Beim Forken über die Benutzeroberfläche wird das Standardzielprojekt erstellt als\n&lt;Standard-Fork-Root&gt;/&lt;Account-Name&gt;/&lt;Projekt-Name&gt;, falls angegeben\n(Benutzer, die forken, benötigen die Berechtigung, unter dem Fork\nRoot untergeordnete Projekte zu erstellen), oder &lt;Account-Name&gt;/&lt;Projekt-Name&gt; andernfalls (Berechtigung\nzum Erstellen von Root-Projekten erforderlich)");
+ m.put("Workspaces on source branch", "Workspaces auf Quell-Branch");
+ m.put("Workspaces on this issue", "Workspaces zu diesem Issue");
+ m.put("branch \"{0}\" is created", "Branch \"{0}\" wurde erstellt");
+ m.put("branch is created", "Branch wurde erstellt");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_es.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_es.java
index 15259ddb1c..5114048b71 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_es.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_es.java
@@ -190,7 +190,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Add Rule", "Añadir regla");
m.put("Add SSH key", "Añadir clave SSH");
m.put("Add SSO provider", "Añadir proveedor SSO");
- m.put("Add Spec", "Agregar Especificación");
m.put("Add Spent Time", "Añadir tiempo dedicado");
m.put("Add Timesheet", "Añadir hoja de tiempo");
m.put("Add Widget", "Añadir widget");
@@ -233,7 +232,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Add new service locator", "Agregar nuevo localizador de servicio");
m.put("Add new step", "Añadir nuevo paso");
m.put("Add new trigger", "Añadir nuevo disparador");
- m.put("Add new user config", "Agregar nueva configuración de usuario");
m.put("Add new user data", "Agregar nuevos datos de usuario");
m.put("Add project", "Añadir proyecto");
m.put("Add reviewer...", "Añadir revisor...");
@@ -452,11 +450,8 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Belonging Groups", "Grupos pertenecientes");
m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.",
"A continuación se muestran algunos criterios comunes. Escriba en el cuadro de búsqueda arriba para ver la lista completa y las combinaciones disponibles.");
- m.put("Below content is restored from an unsaved change. <a class=\"clear-unsaved-change\">Clear</a> to discard",
- "El contenido a continuación se ha restaurado de un cambio no guardado. <a class=\"clear-unsaved-change\">Borrar</a> para descartar");
m.put("Below content is restored from an unsaved change. <a class=\"discard-unsaved-change\">Discard</a>",
"El contenido a continuación se ha restaurado de un cambio no guardado. <a class=\"discard-unsaved-change\">Descartar</a>");
- m.put("Below content is restored from an unsaved change. Clear to discard", "El contenido a continuación se restauró de un cambio no guardado. Borrar para descartar");
m.put("Below information will also be sent", "La información a continuación también será enviada");
m.put("Binary file", "Archivo binario");
m.put("Binary file.", "Archivo binario.");
@@ -601,9 +596,17 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Can Be Used By Workspaces", "Puede ser usado por Espacios de Trabajo");
m.put("Can Create Root Projects", "Puede Crear Proyectos Raíz");
m.put("Can Edit Estimated Time", "Puede Editar Tiempo Estimado");
+ m.put("Can only compare with common ancestor when different projects are involved", "Solo se puede comparar con el ancestro común cuando están involucrados diferentes proyectos");
+ m.put("Cancel", "Cancelar");
+ m.put("Cancel All Queried Builds", "Cancelar Todas las Compilaciones Consultadas");
+ m.put("Cancel Selected Builds", "Cancelar Compilaciones Seleccionadas");
+ m.put("Cancel invitation", "Cancelar invitación");
+ m.put("Cancel request submitted", "Solicitud de cancelación enviada");
+ m.put("Cancel this build", "Cancelar esta compilación");
+ m.put("Cancelled", "Cancelado");
+ m.put("Cancelled By", "Cancelado Por");
m.put("Cannot convert root user to service account", "No se puede convertir el usuario root a cuenta de servicio");
m.put("Cannot convert yourself to service account", "No se puede convertir a sí mismo a cuenta de servicio");
- m.put("Cannot delete branch \"{0}\" as there are workspaces on it", "No se puede eliminar la rama \"{0}\" ya que hay espacios de trabajo en ella");
m.put("Cannot delete default branch", "No se puede eliminar la rama predeterminada");
m.put("Cannot delete root account", "No se puede eliminar la cuenta raíz");
m.put("Cannot delete yourself", "No se puede eliminar a sí mismo");
@@ -617,15 +620,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Cannot reset password for user authenticating via external system", "No se puede restablecer la contraseña para el usuario que se autentica a través de un sistema externo");
m.put("Cannot save malformed query", "No se puede guardar una consulta mal formada");
m.put("Cannot use current or descendant project as parent", "No se puede usar el proyecto actual o descendiente como padre");
- m.put("Can only compare with common ancestor when different projects are involved", "Solo se puede comparar con el ancestro común cuando están involucrados diferentes proyectos");
- m.put("Cancel", "Cancelar");
- m.put("Cancel All Queried Builds", "Cancelar Todas las Compilaciones Consultadas");
- m.put("Cancel Selected Builds", "Cancelar Compilaciones Seleccionadas");
- m.put("Cancel invitation", "Cancelar invitación");
- m.put("Cancel request submitted", "Solicitud de cancelación enviada");
- m.put("Cancel this build", "Cancelar esta compilación");
- m.put("Cancelled", "Cancelado");
- m.put("Cancelled By", "Cancelado Por");
m.put("Case Sensitive", "Sensible a Mayúsculas y Minúsculas");
m.put("Certificates to Trust", "Certificados de Confianza");
m.put("Change", "Cambiar");
@@ -669,7 +663,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Check Vulnerabilities", "Verificar Vulnerabilidades");
m.put("Check Workflow Integrity", "Verificar Integridad del Flujo de Trabajo");
m.put("Check out to local directory", "Revisar en directorio local");
- m.put("Check out to local workspace", "Revisar al espacio de trabajo local");
m.put("Check this to compare right side with common ancestor of left and right", "Marque esto para comparar el lado derecho con el ancestro común de izquierda y derecha");
m.put("Check this to enforce two-factor authentication for all users in the system", "Marque esto para aplicar autenticación de dos factores a todos los usuarios del sistema");
m.put("Check this to enforce two-factor authentication for all users in this group", "Marque esto para aplicar autenticación de dos factores a todos los usuarios de este grupo");
@@ -1013,8 +1006,6 @@ public class Translation_es extends TranslationResourceBundle {
"Defina reglas de protección de ramas. Las reglas definidas en el proyecto principal se consideran definidas después de las reglas definidas aquí. Para una rama y usuario determinados, la primera regla coincidente tendrá efecto");
m.put("Define default issue boards for all projects here. A certain project can override this setting to define its own issue boards.",
"Defina tableros de problemas predeterminados para todos los proyectos aquí. Un proyecto determinado puede anular esta configuración para definir sus propios tableros de problemas.");
- m.put("Define how issue states should be transited from one to another, either manually or automatically when some events happen. And the rule can be configured to apply to certain projects and issues via the applicable issues setting",
- "Defina cómo los estados de problemas deben transitar de uno a otro, ya sea manualmente o automáticamente cuando ocurran algunos eventos. Y la regla se puede configurar para aplicarse a ciertos proyectos y problemas a través de la configuración de problemas aplicables");
m.put("Define issue templates here. When a new issue is created, the first matching template will be used.",
"Defina plantillas de problemas aquí. Cuando se crea un nuevo problema, se usará la primera plantilla coincidente.");
m.put("Define labels to be assigned to project, build or pull request. For issues, custom fields can be used which is much more powerful than labels",
@@ -1061,7 +1052,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Delete this", "Eliminar esto");
m.put("Delete this GPG key", "Eliminar esta clave GPG");
m.put("Delete this access token", "Eliminar este token de acceso");
- m.put("Delete this branch", "Eliminar esta rama");
m.put("Delete this executor", "Eliminar este ejecutor");
m.put("Delete this field", "Eliminar este campo");
m.put("Delete this import", "Eliminar esta importación");
@@ -2249,7 +2239,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("New State", "Nuevo estado");
m.put("New User Bean", "Nuevo Bean de usuario");
m.put("New Value", "Nuevo valor");
- m.put("New Workspace Spec", "Especificación de Nuevo Espacio de Trabajo");
m.put("New chat", "Nuevo chat");
m.put("New issue board created", "Nuevo tablero de incidencias creado");
m.put("New project created", "Nuevo proyecto creado");
@@ -2378,7 +2367,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("No valid signature for head commit of target branch", "No hay firma válida para el commit principal de la rama objetivo");
m.put("No value", "Sin valor");
m.put("No verified primary email address", "No hay dirección de correo electrónico principal verificada");
- m.put("No workspace provisioners defined", "No se han definido provisionadores de espacio de trabajo");
m.put("No workspaces", "No hay espacios de trabajo");
m.put("No workspaces to delete", "No hay espacios de trabajo para eliminar");
m.put("Node Selector", "Selector de Nodo");
@@ -2552,7 +2540,6 @@ public class Translation_es extends TranslationResourceBundle {
"Opcionalmente especifique un campo de fecha para contener información de fecha de vencimiento.<br><b>NOTA: </b> Puede personalizar los campos de problemas de OneDev en caso de que no haya una opción adecuada aquí.");
m.put("Optionally specify a path relative to <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> to put retrieved artifacts. Leave empty to use job working directory itself",
"Opcionalmente especifique una ruta relativa al <a href='https://docs.onedev.io/concepts#job-workdir'>espacio de trabajo del trabajo</a> para colocar artefactos recuperados. Déjelo vacío para usar el espacio de trabajo del trabajo en sí.");
- m.put("Optionally specify a prefix to be prepended to generated branch name", "Opcionalmente, especifique un prefijo para anteponer al nombre de rama generado");
m.put("Optionally specify a storage class to allocate build volume dynamically. Leave empty to use default storage class. <b class='text-warning'>NOTE:</b> Reclaim policy of the storage class should be set to <code>Delete</code>, as the volume is only used to hold temporary build files",
"Opcionalmente especifique una clase de almacenamiento para asignar dinámicamente el volumen de construcción. Déjelo vacío para usar la clase de almacenamiento predeterminada. <b class='text-warning'>NOTA:</b> La política de recuperación de la clase de almacenamiento debe configurarse en <code>Delete</code>, ya que el volumen solo se utiliza para contener archivos temporales de construcción.");
m.put("Optionally specify a working period field to hold estimated time infomration.<br><b>NOTE: </b> You may customize OneDev issue fields in case there is no appropriate option here",
@@ -3092,12 +3079,13 @@ public class Translation_es extends TranslationResourceBundle {
"Extraer imagen de docker como diseño OCI a través de crane. Este paso necesita ser ejecutado por el ejecutor docker del servidor, el ejecutor docker remoto o el ejecutor de Kubernetes");
m.put("Pull from Remote", "Extraer desde remoto");
m.put("Pull request", "Solicitud de extracción");
- m.put("Pull request #{0} already closed", "La solicitud de extracción #{0} ya está cerrada");
m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests",
"Permiso administrativo de solicitud de extracción dentro de un proyecto, incluyendo operaciones en lote sobre múltiples solicitudes de extracción");
m.put("Pull request already closed", "La solicitud de extracción ya está cerrada");
m.put("Pull request already opened", "La solicitud de extracción ya está abierta");
m.put("Pull request and code review", "Solicitud de extracción y revisión de código");
+ m.put("Pull request can only be merged after getting approvals from all reviewers", "La solicitud de extracción solo se puede fusionar después de obtener aprobaciones de todos los revisores");
+ m.put("Pull request can only be merged by users with code write permission", "La solicitud de extracción solo puede ser fusionada por usuarios con permiso de escritura de código");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",
"La solicitud de extracción no se puede fusionar ahora ya que <a class=\"more-info d-inline link-primary\">algunas construcciones requeridas</a> aún no están terminadas");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",
@@ -3106,10 +3094,7 @@ public class Translation_es extends TranslationResourceBundle {
"La solicitud de extracción no se puede fusionar ahora ya que está <a class=\"more-info d-inline link-primary\">pendiente de revisión</a>");
m.put("Pull request cannot be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",
"La solicitud de extracción no se puede fusionar ahora ya que se <a class=\"more-info d-inline link-primary\">solicitaron cambios</a>");
- m.put("Pull request cannot be merged now as valid signature is required for head commit",
- "La solicitud de extracción no se puede fusionar ahora ya que se requiere una firma válida para el commit principal");
- m.put("Pull request can only be merged after getting approvals from all reviewers", "La solicitud de extracción solo se puede fusionar después de obtener aprobaciones de todos los revisores");
- m.put("Pull request can only be merged by users with code write permission", "La solicitud de extracción solo puede ser fusionada por usuarios con permiso de escritura de código");
+ m.put("Pull request cannot be merged now as valid signature is required for head commit", "La solicitud de extracción no se puede fusionar ahora ya que se requiere una firma válida para el commit principal");
m.put("Pull request discard", "Descartar solicitud de extracción");
m.put("Pull request duration statistics", "Estadísticas de duración de solicitudes de extracción");
m.put("Pull request frequency statistics", "Estadísticas de frecuencia de solicitudes de extracción");
@@ -3258,7 +3243,7 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Request For Changes", "Solicitud de cambios");
m.put("Request Scopes", "Ámbitos de solicitud");
m.put("Request Trial Subscription", "Solicitar suscripción de prueba");
- m.put("Request review", "Solicitar revisión");
+ m.put("Request review again", "Solicitar revisión nuevamente");
m.put("Request to sync", "Solicitar sincronización");
m.put("Requested For changes", "Solicitado para cambios");
m.put("Requested changes to pull request \"{0}\" ({1})", "Solicitó cambios en la solicitud de extracción \"{0}\" ({1})");
@@ -3535,7 +3520,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Show Description", "Mostrar descripción");
m.put("Show Duration", "Mostrar duración");
m.put("Show Emojis", "Mostrar emojis");
- m.put("Show Error Detail", "Mostrar detalle de error");
m.put("Show Issue Status", "Mostrar estado de problemas");
m.put("Show Package Stats", "Mostrar estadísticas de paquetes");
m.put("Show Pull Request Stats", "Mostrar estadísticas de solicitudes de extracción");
@@ -4094,7 +4078,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("Symbol Name", "Nombre del Símbolo");
m.put("Symbol name", "Nombre del símbolo");
m.put("Symbols", "Símbolos");
- m.put("Sync", "Sincronizar");
m.put("Sync (pull & push)", "Sincronizar (pull & push)");
m.put("Sync Replica Status and Back to Home", "Sincronizar estado de réplica y volver a inicio");
m.put("Sync Repository", "Sincronizar Repositorio");
@@ -4186,7 +4169,6 @@ public class Translation_es extends TranslationResourceBundle {
m.put("There are merge conflicts.", "Hay conflictos de fusión.");
m.put("There are merge conflicts. You can still create the pull request though", "Hay conflictos de fusión. Sin embargo, aún puedes crear la solicitud de extracción");
m.put("There are unsaved changes, discard and continue?", "Hay cambios no guardados, ¿descartar y continuar?");
- m.put("There are workspaces on source branch", "Hay espacios de trabajo en la rama de origen");
m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",
"Estos autenticadores normalmente se ejecutan en tu teléfono móvil, algunos ejemplos son Google Authenticator, Microsoft Authenticator, Authy, 1Password, etc.");
m.put("This <span wicket:id=\"elementTypeName\"></span> is imported from <a wicket:id=\"link\" class=\"alert-link\"><span wicket:id=\"label\"></span></a>",
@@ -5042,7 +5024,38 @@ public class Translation_es extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Request review again", "Solicitar revisión nuevamente");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level",
+ "<b>NOTA: </b> Las reglas de transición también se pueden configurar y sobrescribir a nivel de proyecto");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level in enterprise edition",
+ "<b>NOTA: </b> Las reglas de transición también se pueden configurar y sobrescribir a nivel de proyecto en la edición empresarial");
+ m.put("Associated Branch", "Rama asociada");
+ m.put("Branch \"{0}\" already exists", "La rama \"{0}\" ya existe");
+ m.put("Branch is created", "La rama ha sido creada");
+ m.put("Cannot delete branch as it has workspaces", "No se puede eliminar la rama ya que tiene espacios de trabajo");
+ m.put("Cannot delete source branch as it has workspaces", "No se puede eliminar la rama de origen ya que tiene espacios de trabajo");
+ m.put("Create a workspace spec running Cursor CLI directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Cree una especificación de espacio de trabajo ejecutando Cursor CLI directamente con el entorno de shell del servidor.\nLos espacios de trabajo que utilicen la especificación creada compartirán los mismos entornos y configuraciones.\nPara usar esta plantilla, asegúrese de que:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> está instalado en el servidor de OneDev</li>\n <li>Se ha agregado un aprovisionador de shell en 'Administración / Aprovisionadores de Espacios de Trabajo' con los 'proyectos aplicables' configurados correctamente</li>\n</ul>");
+ m.put("Create a workspace spec running Cursor CLI inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>container image</a>\nlater to suit your needs if desired",
+ "Cree una especificación de espacio de trabajo ejecutando Cursor CLI dentro de un contenedor para propósitos de aislamiento y seguridad.\nPuede personalizar la <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>imagen del contenedor</a>\nmás tarde para adaptarla a sus necesidades si lo desea");
+ m.put("Default Fork Root", "Raíz de Fork Predeterminada");
+ m.put("Default branch is not available", "La rama predeterminada no está disponible");
+ m.put("Define how issues may move from one state to another in this project. At evaluation time, rules from this project, each ancestor project up to the root, and the global rules are merged in that order; the first matching rule applies.",
+ "Defina cómo los problemas pueden moverse de un estado a otro en este proyecto. En el momento de la evaluación, las reglas de este proyecto, cada proyecto ancestro hasta la raíz, y las reglas globales se combinan en ese orden; se aplica la primera regla coincidente.");
+ m.put("Define how issues move between states: manually by users, or automatically in response to events. The first matching rule applies.",
+ "Defina cómo los problemas se mueven entre estados: manualmente por los usuarios, o automáticamente en respuesta a eventos. Se aplica la primera regla coincidente.");
+ m.put("Issue Branch Prefix", "Prefijo de Rama de Problema");
+ m.put("Issue branch prefix updated", "Prefijo de rama de problema actualizado");
+ m.put("No fork root", "Sin raíz de fork");
+ m.put("Optionally specify a prefix to be prepended (as a path segment) when generate issue branch.\nFor instance with prefix <code>feature</code>, generated issue branch will be\n<code>feature/issue-100-some-title</code>",
+ "Opcionalmente especifique un prefijo para ser antepuesto (como un segmento de ruta) al generar la rama del problema.\nPor ejemplo, con el prefijo <code>feature</code>, la rama del problema generada será\n<code>feature/issue-100-some-title</code>");
+ m.put("This setting is inherited from parent project when left empty. The first non-empty value found while walking up the project hierarchy will be used.",
+ "Esta configuración se hereda del proyecto padre cuando se deja vacía. Se usará el primer valor no vacío encontrado al recorrer la jerarquía del proyecto.");
+ m.put("When forking from the UI, the default target project will be created as\n&lt;default fork root&gt;/&lt;account name&gt;/&lt;project name&gt; if specified\n(users forking need permission to create child projects under the fork\nroot), or &lt;account name&gt;/&lt;project name&gt; otherwise (need permission\nto create root projects)",
+ "Al hacer fork desde la interfaz de usuario, el proyecto de destino predeterminado se creará como\n&lt;raíz de fork predeterminada&gt;/&lt;nombre de cuenta&gt;/&lt;nombre de proyecto&gt; si se especifica\n(los usuarios que hagan fork necesitan permiso para crear proyectos secundarios bajo la raíz de fork\n), o &lt;nombre de cuenta&gt;/&lt;nombre de proyecto&gt; de lo contrario (necesitan permiso\npara crear proyectos raíz)");
+ m.put("Workspaces on source branch", "Espacios de trabajo en la rama de origen");
+ m.put("Workspaces on this issue", "Espacios de trabajo en este problema");
+ m.put("branch \"{0}\" is created", "la rama \"{0}\" ha sido creada");
+ m.put("branch is created", "la rama ha sido creada");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_fr.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_fr.java
index 2305640c6c..95a1d83a3c 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_fr.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_fr.java
@@ -190,7 +190,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Add Rule", "Ajouter une règle");
m.put("Add SSH key", "Ajouter une clé SSH");
m.put("Add SSO provider", "Ajouter un fournisseur SSO");
- m.put("Add Spec", "Ajouter une spécification");
m.put("Add Spent Time", "Ajouter du temps passé");
m.put("Add Timesheet", "Ajouter une feuille de temps");
m.put("Add Widget", "Ajouter un widget");
@@ -233,7 +232,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Add new service locator", "Ajouter un nouveau localisateur de service");
m.put("Add new step", "Ajouter une nouvelle étape");
m.put("Add new trigger", "Ajouter un nouveau déclencheur");
- m.put("Add new user config", "Ajouter une nouvelle configuration utilisateur");
m.put("Add new user data", "Ajouter de nouvelles données utilisateur");
m.put("Add project", "Ajouter un projet");
m.put("Add reviewer...", "Ajouter un réviseur...");
@@ -452,11 +450,8 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Belonging Groups", "Groupes d'appartenance");
m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.",
"Ci-dessous quelques critères courants. Tapez dans la boîte de recherche ci-dessus pour voir la liste complète et les combinaisons disponibles.");
- m.put("Below content is restored from an unsaved change. <a class=\"clear-unsaved-change\">Clear</a> to discard",
- "Le contenu ci-dessous est restauré à partir d'une modification non enregistrée. <a class=\"clear-unsaved-change\">Effacer</a> pour annuler");
m.put("Below content is restored from an unsaved change. <a class=\"discard-unsaved-change\">Discard</a>",
"Le contenu ci-dessous est restauré à partir d'une modification non enregistrée. <a class=\"discard-unsaved-change\">Annuler</a>");
- m.put("Below content is restored from an unsaved change. Clear to discard", "Le contenu ci-dessous est restauré à partir d'une modification non enregistrée. Effacer pour abandonner");
m.put("Below information will also be sent", "Les informations ci-dessous seront également envoyées");
m.put("Binary file", "Fichier binaire");
m.put("Binary file.", "Fichier binaire.");
@@ -601,9 +596,17 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Can Be Used By Workspaces", "Peut être utilisé par les espaces de travail");
m.put("Can Create Root Projects", "Peut créer des projets racine");
m.put("Can Edit Estimated Time", "Peut modifier le temps estimé");
+ m.put("Can only compare with common ancestor when different projects are involved", "Peut seulement comparer avec un ancêtre commun lorsque différents projets sont impliqués");
+ m.put("Cancel", "Annuler");
+ m.put("Cancel All Queried Builds", "Annuler toutes les constructions interrogées");
+ m.put("Cancel Selected Builds", "Annuler les constructions sélectionnées");
+ m.put("Cancel invitation", "Annuler l'invitation");
+ m.put("Cancel request submitted", "Demande d'annulation soumise");
+ m.put("Cancel this build", "Annuler cette construction");
+ m.put("Cancelled", "Annulé");
+ m.put("Cancelled By", "Annulé par");
m.put("Cannot convert root user to service account", "Impossible de convertir l'utilisateur root en compte de service");
m.put("Cannot convert yourself to service account", "Impossible de vous convertir en compte de service");
- m.put("Cannot delete branch \"{0}\" as there are workspaces on it", "Impossible de supprimer la branche \"{0}\" car il y a des espaces de travail dessus");
m.put("Cannot delete default branch", "Impossible de supprimer la branche par défaut");
m.put("Cannot delete root account", "Impossible de supprimer le compte racine");
m.put("Cannot delete yourself", "Impossible de vous supprimer");
@@ -617,15 +620,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Cannot reset password for user authenticating via external system", "Impossible de réinitialiser le mot de passe pour un utilisateur s'authentifiant via un système externe");
m.put("Cannot save malformed query", "Impossible d'enregistrer une requête malformée");
m.put("Cannot use current or descendant project as parent", "Impossible d'utiliser le projet actuel ou descendant comme parent");
- m.put("Can only compare with common ancestor when different projects are involved", "Peut seulement comparer avec un ancêtre commun lorsque différents projets sont impliqués");
- m.put("Cancel", "Annuler");
- m.put("Cancel All Queried Builds", "Annuler toutes les constructions interrogées");
- m.put("Cancel Selected Builds", "Annuler les constructions sélectionnées");
- m.put("Cancel invitation", "Annuler l'invitation");
- m.put("Cancel request submitted", "Demande d'annulation soumise");
- m.put("Cancel this build", "Annuler cette construction");
- m.put("Cancelled", "Annulé");
- m.put("Cancelled By", "Annulé par");
m.put("Case Sensitive", "Sensible à la casse");
m.put("Certificates to Trust", "Certificats à approuver");
m.put("Change", "Changer");
@@ -669,7 +663,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Check Vulnerabilities", "Vérifier les vulnérabilités");
m.put("Check Workflow Integrity", "Vérifier l'intégrité du workflow");
m.put("Check out to local directory", "Vérifier dans le répertoire local");
- m.put("Check out to local workspace", "Vérifier à l'espace de travail local");
m.put("Check this to compare right side with common ancestor of left and right", "Cochez ceci pour comparer le côté droit avec l'ancêtre commun de gauche et de droite");
m.put("Check this to enforce two-factor authentication for all users in the system", "Cochez ceci pour imposer l'authentification à deux facteurs pour tous les utilisateurs du système");
m.put("Check this to enforce two-factor authentication for all users in this group", "Cochez ceci pour imposer l'authentification à deux facteurs pour tous les utilisateurs de ce groupe");
@@ -1013,8 +1006,6 @@ public class Translation_fr extends TranslationResourceBundle {
"Définissez les règles de protection des branches. Les règles définies dans le projet parent sont considérées comme définies après les règles définies ici. Pour une branche et un utilisateur donnés, la première règle correspondante prendra effet");
m.put("Define default issue boards for all projects here. A certain project can override this setting to define its own issue boards.",
"Définissez les tableaux de problèmes par défaut pour tous les projets ici. Un certain projet peut remplacer ce paramètre pour définir ses propres tableaux de problèmes.");
- m.put("Define how issue states should be transited from one to another, either manually or automatically when some events happen. And the rule can be configured to apply to certain projects and issues via the applicable issues setting",
- "Définissez comment les états de problème doivent être transités d'un à l'autre, soit manuellement, soit automatiquement lorsque certains événements se produisent. Et la règle peut être configurée pour s'appliquer à certains projets et problèmes via le paramètre de problèmes applicables");
m.put("Define issue templates here. When a new issue is created, the first matching template will be used.",
"Définissez les modèles de problème ici. Lorsqu'un nouveau problème est créé, le premier modèle correspondant sera utilisé.");
m.put("Define labels to be assigned to project, build or pull request. For issues, custom fields can be used which is much more powerful than labels",
@@ -1061,7 +1052,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Delete this", "Supprimer ceci");
m.put("Delete this GPG key", "Supprimer cette clé GPG");
m.put("Delete this access token", "Supprimer ce jeton d'accès");
- m.put("Delete this branch", "Supprimer cette branche");
m.put("Delete this executor", "Supprimer cet exécuteur");
m.put("Delete this field", "Supprimer ce champ");
m.put("Delete this import", "Supprimer cet import");
@@ -2249,7 +2239,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("New State", "Nouvel état");
m.put("New User Bean", "Bean d'utilisateur nouveau");
m.put("New Value", "Nouvelle valeur");
- m.put("New Workspace Spec", "Nouvelle spécification d'espace de travail");
m.put("New chat", "Nouveau chat");
m.put("New issue board created", "Nouveau tableau d'issues créé");
m.put("New project created", "Nouveau projet créé");
@@ -2378,7 +2367,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("No valid signature for head commit of target branch", "Aucune signature valide pour le commit principal de la branche cible");
m.put("No value", "Aucune valeur");
m.put("No verified primary email address", "Aucune adresse email principale vérifiée");
- m.put("No workspace provisioners defined", "Aucun provisionneur d'espace de travail défini");
m.put("No workspaces", "Aucun espace de travail");
m.put("No workspaces to delete", "Aucun espace de travail à supprimer");
m.put("Node Selector", "Sélecteur de nœud");
@@ -2552,7 +2540,6 @@ public class Translation_fr extends TranslationResourceBundle {
"Spécifiez éventuellement un champ de date pour contenir les informations de date d'échéance.<br><b>NOTE : </b> Vous pouvez personnaliser les champs de problème OneDev au cas où il n'y aurait pas d'option appropriée ici.");
m.put("Optionally specify a path relative to <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> to put retrieved artifacts. Leave empty to use job working directory itself",
"Spécifiez éventuellement un chemin relatif à <a href='https://docs.onedev.io/concepts#job-workdir'>l'espace de travail de la tâche</a> pour placer les artefacts récupérés. Laissez vide pour utiliser l'espace de travail de la tâche lui-même.");
- m.put("Optionally specify a prefix to be prepended to generated branch name", "Spécifiez éventuellement un préfixe à ajouter au nom de branche généré");
m.put("Optionally specify a storage class to allocate build volume dynamically. Leave empty to use default storage class. <b class='text-warning'>NOTE:</b> Reclaim policy of the storage class should be set to <code>Delete</code>, as the volume is only used to hold temporary build files",
"Spécifiez éventuellement une classe de stockage pour allouer dynamiquement le volume de construction. Laissez vide pour utiliser la classe de stockage par défaut. <b class='text-warning'>NOTE :</b> La politique de récupération de la classe de stockage doit être définie sur <code>Delete</code>, car le volume est uniquement utilisé pour contenir des fichiers de construction temporaires.");
m.put("Optionally specify a working period field to hold estimated time infomration.<br><b>NOTE: </b> You may customize OneDev issue fields in case there is no appropriate option here",
@@ -3092,12 +3079,13 @@ public class Translation_fr extends TranslationResourceBundle {
"Tirer l'image docker en tant que mise en page OCI via crane. Cette étape doit être exécutée par l'exécuteur docker du serveur, l'exécuteur docker distant ou l'exécuteur Kubernetes");
m.put("Pull from Remote", "Tirer depuis le distant");
m.put("Pull request", "Demande de tirage");
- m.put("Pull request #{0} already closed", "Demande de tirage #{0} déjà fermée");
m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests",
"Permission administrative de demande de tirage dans un projet, y compris les opérations par lot sur plusieurs demandes de tirage");
m.put("Pull request already closed", "Demande de tirage déjà fermée");
m.put("Pull request already opened", "Demande de tirage déjà ouverte");
m.put("Pull request and code review", "Demande de tirage et revue de code");
+ m.put("Pull request can only be merged after getting approvals from all reviewers", "La demande de tirage ne peut être fusionnée qu'après avoir obtenu les approbations de tous les réviseurs");
+ m.put("Pull request can only be merged by users with code write permission", "La demande de tirage ne peut être fusionnée que par des utilisateurs ayant la permission d'écriture de code");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",
"La demande de tirage ne peut pas être fusionnée maintenant car <a class=\"more-info d-inline link-primary\">certaines constructions requises</a> ne sont pas encore terminées");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",
@@ -3106,10 +3094,7 @@ public class Translation_fr extends TranslationResourceBundle {
"La demande de tirage ne peut pas être fusionnée maintenant car elle est <a class=\"more-info d-inline link-primary\">en attente de révision</a>");
m.put("Pull request cannot be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",
"La demande de tirage ne peut pas être fusionnée maintenant car elle a été <a class=\"more-info d-inline link-primary\">demandée pour des modifications</a>");
- m.put("Pull request cannot be merged now as valid signature is required for head commit",
- "La demande de tirage ne peut pas être fusionnée maintenant car une signature valide est requise pour le commit principal");
- m.put("Pull request can only be merged after getting approvals from all reviewers", "La demande de tirage ne peut être fusionnée qu'après avoir obtenu les approbations de tous les réviseurs");
- m.put("Pull request can only be merged by users with code write permission", "La demande de tirage ne peut être fusionnée que par des utilisateurs ayant la permission d'écriture de code");
+ m.put("Pull request cannot be merged now as valid signature is required for head commit", "La demande de tirage ne peut pas être fusionnée maintenant car une signature valide est requise pour le commit principal");
m.put("Pull request discard", "Demande de tirage abandonnée");
m.put("Pull request duration statistics", "Statistiques de durée des pull requests");
m.put("Pull request frequency statistics", "Statistiques de fréquence des pull requests");
@@ -3258,7 +3243,7 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Request For Changes", "Demande de modifications");
m.put("Request Scopes", "Portées de la demande");
m.put("Request Trial Subscription", "Demander un abonnement d'essai");
- m.put("Request review", "Demander une révision");
+ m.put("Request review again", "Demander une révision à nouveau");
m.put("Request to sync", "Demander une synchronisation");
m.put("Requested For changes", "Demandé des modifications");
m.put("Requested changes to pull request \"{0}\" ({1})", "Demandé des modifications à la requête de fusion \"{0}\" ({1})");
@@ -3535,7 +3520,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Show Description", "Afficher la description");
m.put("Show Duration", "Afficher la durée");
m.put("Show Emojis", "Afficher les emojis");
- m.put("Show Error Detail", "Afficher le détail de l'erreur");
m.put("Show Issue Status", "Afficher le statut des problèmes");
m.put("Show Package Stats", "Afficher les statistiques des packages");
m.put("Show Pull Request Stats", "Afficher les statistiques des demandes de tirage");
@@ -4094,7 +4078,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("Symbol Name", "Nom du symbole");
m.put("Symbol name", "Nom du symbole");
m.put("Symbols", "Symboles");
- m.put("Sync", "Synchroniser");
m.put("Sync (pull & push)", "Synchroniser (tirer & pousser)");
m.put("Sync Replica Status and Back to Home", "Synchroniser le statut de la réplique et retourner à l'accueil");
m.put("Sync Repository", "Synchroniser le dépôt");
@@ -4186,7 +4169,6 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("There are merge conflicts.", "Il y a des conflits de fusion.");
m.put("There are merge conflicts. You can still create the pull request though", "Il y a des conflits de fusion. Vous pouvez tout de même créer la pull request");
m.put("There are unsaved changes, discard and continue?", "Il y a des modifications non enregistrées, les abandonner et continuer ?");
- m.put("There are workspaces on source branch", "Il y a des espaces de travail sur la branche source");
m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",
"Ces authentificateurs fonctionnent généralement sur votre téléphone mobile, quelques exemples sont Google Authenticator, Microsoft Authenticator, Authy, 1Password, etc.");
m.put("This <span wicket:id=\"elementTypeName\"></span> is imported from <a wicket:id=\"link\" class=\"alert-link\"><span wicket:id=\"label\"></span></a>",
@@ -5042,7 +5024,38 @@ public class Translation_fr extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Request review again", "Demander une révision à nouveau");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level",
+ "<b>REMARQUE : </b> Les règles de transition peuvent également être configurées et remplacées au niveau du projet");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level in enterprise edition",
+ "<b>REMARQUE : </b> Les règles de transition peuvent également être configurées et remplacées au niveau du projet dans l'édition entreprise");
+ m.put("Associated Branch", "Branche associée");
+ m.put("Branch \"{0}\" already exists", "La branche \"{0}\" existe déjà");
+ m.put("Branch is created", "La branche est créée");
+ m.put("Cannot delete branch as it has workspaces", "Impossible de supprimer la branche car elle contient des espaces de travail");
+ m.put("Cannot delete source branch as it has workspaces", "Impossible de supprimer la branche source car elle contient des espaces de travail");
+ m.put("Create a workspace spec running Cursor CLI directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Créez une spécification d'espace de travail en exécutant Cursor CLI directement avec l'environnement shell du serveur.\nLes espaces de travail utilisant la spécification créée partageront les mêmes environnements et paramètres.\nPour utiliser ce modèle, veuillez vous assurer que :\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> est installé sur le serveur OneDev</li>\n <li>Un provisionneur shell est ajouté dans 'Administration / Provisionneurs d'espaces de travail' avec les 'projets applicables' configurés correctement</li>\n</ul>");
+ m.put("Create a workspace spec running Cursor CLI inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>container image</a>\nlater to suit your needs if desired",
+ "Créez une spécification d'espace de travail en exécutant Cursor CLI dans un conteneur pour des raisons d'isolation et de sécurité.\nVous pouvez personnaliser l'<a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>image du conteneur</a>\nultérieurement selon vos besoins si désiré");
+ m.put("Default Fork Root", "Racine de fork par défaut");
+ m.put("Default branch is not available", "La branche par défaut n'est pas disponible");
+ m.put("Define how issues may move from one state to another in this project. At evaluation time, rules from this project, each ancestor project up to the root, and the global rules are merged in that order; the first matching rule applies.",
+ "Définissez comment les problèmes peuvent passer d'un état à un autre dans ce projet. Au moment de l'évaluation, les règles de ce projet, de chaque projet ancêtre jusqu'à la racine, et les règles globales sont fusionnées dans cet ordre ; la première règle correspondante s'applique.");
+ m.put("Define how issues move between states: manually by users, or automatically in response to events. The first matching rule applies.",
+ "Définissez comment les problèmes passent entre les états : manuellement par les utilisateurs, ou automatiquement en réponse à des événements. La première règle correspondante s'applique.");
+ m.put("Issue Branch Prefix", "Préfixe de branche des problèmes");
+ m.put("Issue branch prefix updated", "Préfixe de branche des problèmes mis à jour");
+ m.put("No fork root", "Aucune racine de fork");
+ m.put("Optionally specify a prefix to be prepended (as a path segment) when generate issue branch.\nFor instance with prefix <code>feature</code>, generated issue branch will be\n<code>feature/issue-100-some-title</code>",
+ "Spécifiez éventuellement un préfixe à ajouter (comme un segment de chemin) lors de la génération de la branche des problèmes.\nPar exemple, avec le préfixe <code>feature</code>, la branche des problèmes générée sera\n<code>feature/issue-100-some-title</code>");
+ m.put("This setting is inherited from parent project when left empty. The first non-empty value found while walking up the project hierarchy will be used.",
+ "Ce paramètre est hérité du projet parent lorsqu'il est laissé vide. La première valeur non vide trouvée en remontant la hiérarchie des projets sera utilisée.");
+ m.put("When forking from the UI, the default target project will be created as\n&lt;default fork root&gt;/&lt;account name&gt;/&lt;project name&gt; if specified\n(users forking need permission to create child projects under the fork\nroot), or &lt;account name&gt;/&lt;project name&gt; otherwise (need permission\nto create root projects)",
+ "Lors du fork depuis l'interface utilisateur, le projet cible par défaut sera créé comme\n&lt;racine de fork par défaut&gt;/&lt;nom du compte&gt;/&lt;nom du projet&gt; si spécifié\n(les utilisateurs effectuant le fork doivent avoir la permission de créer des projets enfants sous la racine de fork\n), ou &lt;nom du compte&gt;/&lt;nom du projet&gt; sinon (nécessite la permission\nde créer des projets racines)");
+ m.put("Workspaces on source branch", "Espaces de travail sur la branche source");
+ m.put("Workspaces on this issue", "Espaces de travail sur ce problème");
+ m.put("branch \"{0}\" is created", "la branche \"{0}\" est créée");
+ m.put("branch is created", "la branche est créée");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_it.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_it.java
index d0eca669c2..9a0f9b3cd0 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_it.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_it.java
@@ -190,7 +190,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Add Rule", "Aggiungi regola");
m.put("Add SSH key", "Aggiungi chiave SSH");
m.put("Add SSO provider", "Aggiungi provider SSO");
- m.put("Add Spec", "Aggiungi Specifica");
m.put("Add Spent Time", "Aggiungi tempo speso");
m.put("Add Timesheet", "Aggiungi foglio presenze");
m.put("Add Widget", "Aggiungi widget");
@@ -233,7 +232,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Add new service locator", "Aggiungi nuovo localizzatore di servizio");
m.put("Add new step", "Aggiungi nuovo passaggio");
m.put("Add new trigger", "Aggiungi nuovo trigger");
- m.put("Add new user config", "Aggiungi nuova configurazione utente");
m.put("Add new user data", "Aggiungi nuovi dati utente");
m.put("Add project", "Aggiungi progetto");
m.put("Add reviewer...", "Aggiungi revisore...");
@@ -452,11 +450,8 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Belonging Groups", "Gruppi di appartenenza");
m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.",
"Di seguito sono riportati alcuni criteri comuni. Digita nella casella di ricerca sopra per visualizzare l'elenco completo e le combinazioni disponibili.");
- m.put("Below content is restored from an unsaved change. <a class=\"clear-unsaved-change\">Clear</a> to discard",
- "Il contenuto sottostante è stato ripristinato da una modifica non salvata. <a class=\"clear-unsaved-change\">Cancella</a> per scartare");
m.put("Below content is restored from an unsaved change. <a class=\"discard-unsaved-change\">Discard</a>",
"Il contenuto sottostante è stato ripristinato da una modifica non salvata. <a class=\"discard-unsaved-change\">Scarta</a>");
- m.put("Below content is restored from an unsaved change. Clear to discard", "Il contenuto sottostante è stato ripristinato da una modifica non salvata. Cancella per scartare");
m.put("Below information will also be sent", "Le informazioni sottostanti saranno anche inviate");
m.put("Binary file", "File binario");
m.put("Binary file.", "File binario.");
@@ -601,9 +596,17 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Can Be Used By Workspaces", "Può essere utilizzato da Workspaces");
m.put("Can Create Root Projects", "Può creare progetti root");
m.put("Can Edit Estimated Time", "Può modificare il tempo stimato");
+ m.put("Can only compare with common ancestor when different projects are involved", "È possibile confrontare solo con un antenato comune quando sono coinvolti progetti diversi");
+ m.put("Cancel", "Annulla");
+ m.put("Cancel All Queried Builds", "Annulla tutte le build interrogate");
+ m.put("Cancel Selected Builds", "Annulla le build selezionate");
+ m.put("Cancel invitation", "Annulla invito");
+ m.put("Cancel request submitted", "Richiesta di annullamento inviata");
+ m.put("Cancel this build", "Annulla questa build");
+ m.put("Cancelled", "Annullato");
+ m.put("Cancelled By", "Annullato da");
m.put("Cannot convert root user to service account", "Impossibile convertire l'utente root in account di servizio");
m.put("Cannot convert yourself to service account", "Impossibile convertirti in account di servizio");
- m.put("Cannot delete branch \"{0}\" as there are workspaces on it", "Impossibile eliminare il branch \"{0}\" poiché ci sono workspaces su di esso");
m.put("Cannot delete default branch", "Non è possibile eliminare il branch predefinito");
m.put("Cannot delete root account", "Non è possibile eliminare l'account root");
m.put("Cannot delete yourself", "Non è possibile eliminare te stesso");
@@ -617,15 +620,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Cannot reset password for user authenticating via external system", "Impossibile reimpostare la password per utente che si autentica tramite sistema esterno");
m.put("Cannot save malformed query", "Non è possibile salvare una query malformata");
m.put("Cannot use current or descendant project as parent", "Non è possibile utilizzare il progetto corrente o un discendente come genitore");
- m.put("Can only compare with common ancestor when different projects are involved", "È possibile confrontare solo con un antenato comune quando sono coinvolti progetti diversi");
- m.put("Cancel", "Annulla");
- m.put("Cancel All Queried Builds", "Annulla tutte le build interrogate");
- m.put("Cancel Selected Builds", "Annulla le build selezionate");
- m.put("Cancel invitation", "Annulla invito");
- m.put("Cancel request submitted", "Richiesta di annullamento inviata");
- m.put("Cancel this build", "Annulla questa build");
- m.put("Cancelled", "Annullato");
- m.put("Cancelled By", "Annullato da");
m.put("Case Sensitive", "Sensibile alle maiuscole");
m.put("Certificates to Trust", "Certificati da fidare");
m.put("Change", "Modifica");
@@ -669,7 +663,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Check Vulnerabilities", "Controlla Vulnerabilità");
m.put("Check Workflow Integrity", "Controlla l'integrità del workflow");
m.put("Check out to local directory", "Controlla nella directory locale");
- m.put("Check out to local workspace", "Effettua il checkout nella workspace locale");
m.put("Check this to compare right side with common ancestor of left and right", "Seleziona questa opzione per confrontare il lato destro con l'antenato comune di sinistra e destra");
m.put("Check this to enforce two-factor authentication for all users in the system", "Seleziona questa opzione per imporre l'autenticazione a due fattori per tutti gli utenti del sistema");
m.put("Check this to enforce two-factor authentication for all users in this group", "Seleziona questa opzione per imporre l'autenticazione a due fattori per tutti gli utenti di questo gruppo");
@@ -1013,8 +1006,6 @@ public class Translation_it extends TranslationResourceBundle {
"Definisci le regole di protezione del branch. Le regole definite nel progetto genitore sono considerate definite dopo le regole definite qui. Per un dato branch e utente, la prima regola corrispondente avrà effetto");
m.put("Define default issue boards for all projects here. A certain project can override this setting to define its own issue boards.",
"Definisci qui le bacheche dei problemi predefinite per tutti i progetti. Un certo progetto può sovrascrivere questa impostazione per definire le proprie bacheche dei problemi.");
- m.put("Define how issue states should be transited from one to another, either manually or automatically when some events happen. And the rule can be configured to apply to certain projects and issues via the applicable issues setting",
- "Definisci come gli stati dei problemi dovrebbero essere transitati da uno all'altro, manualmente o automaticamente quando si verificano alcuni eventi. E la regola può essere configurata per applicarsi a determinati progetti e problemi tramite l'impostazione dei problemi applicabili");
m.put("Define issue templates here. When a new issue is created, the first matching template will be used.",
"Definisci qui i modelli di problemi. Quando viene creato un nuovo problema, verrà utilizzato il primo modello corrispondente.");
m.put("Define labels to be assigned to project, build or pull request. For issues, custom fields can be used which is much more powerful than labels",
@@ -1061,7 +1052,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Delete this", "Elimina questo");
m.put("Delete this GPG key", "Elimina questa chiave GPG");
m.put("Delete this access token", "Elimina questo token di accesso");
- m.put("Delete this branch", "Elimina questo branch");
m.put("Delete this executor", "Elimina questo executor");
m.put("Delete this field", "Elimina questo campo");
m.put("Delete this import", "Elimina questa importazione");
@@ -2249,7 +2239,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("New State", "Nuovo stato");
m.put("New User Bean", "Bean utente nuovo");
m.put("New Value", "Nuovo valore");
- m.put("New Workspace Spec", "Nuova Specifica dello Spazio di Lavoro");
m.put("New chat", "Nuova chat");
m.put("New issue board created", "Nuova bacheca di issue creata");
m.put("New project created", "Nuovo progetto creato");
@@ -2378,7 +2367,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("No valid signature for head commit of target branch", "Nessuna firma valida per il commit principale del branch di destinazione");
m.put("No value", "Nessun valore");
m.put("No verified primary email address", "Nessun indirizzo email primario verificato");
- m.put("No workspace provisioners defined", "Nessun provisioner dello spazio di lavoro definito");
m.put("No workspaces", "Nessuno spazio di lavoro");
m.put("No workspaces to delete", "Nessuno spazio di lavoro da eliminare");
m.put("Node Selector", "Selettore di Nodo");
@@ -2552,7 +2540,6 @@ public class Translation_it extends TranslationResourceBundle {
"Specifica facoltativamente un campo data per contenere informazioni sulla data di scadenza.<br><b>NOTA: </b> Puoi personalizzare i campi dei problemi di OneDev nel caso non ci sia un'opzione appropriata qui");
m.put("Optionally specify a path relative to <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> to put retrieved artifacts. Leave empty to use job working directory itself",
"Specifica facoltativamente un percorso relativo a <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> per posizionare gli artefatti recuperati. Lascia vuoto per utilizzare il job working directory stesso");
- m.put("Optionally specify a prefix to be prepended to generated branch name", "Specifica facoltativamente un prefisso da anteporre al nome del branch generato");
m.put("Optionally specify a storage class to allocate build volume dynamically. Leave empty to use default storage class. <b class='text-warning'>NOTE:</b> Reclaim policy of the storage class should be set to <code>Delete</code>, as the volume is only used to hold temporary build files",
"Specifica facoltativamente una classe di archiviazione per allocare dinamicamente il volume di build. Lascia vuoto per utilizzare la classe di archiviazione predefinita. <b class='text-warning'>NOTA:</b> La politica di recupero della classe di archiviazione dovrebbe essere impostata su <code>Delete</code>, poiché il volume viene utilizzato solo per contenere file di build temporanei");
m.put("Optionally specify a working period field to hold estimated time infomration.<br><b>NOTE: </b> You may customize OneDev issue fields in case there is no appropriate option here",
@@ -3092,12 +3079,13 @@ public class Translation_it extends TranslationResourceBundle {
"Scarica l'immagine docker come layout OCI tramite crane. Questo passaggio deve essere eseguito dall'executor docker del server, dall'executor docker remoto o dall'executor Kubernetes");
m.put("Pull from Remote", "Pull da remoto");
m.put("Pull request", "Richiesta di pull");
- m.put("Pull request #{0} already closed", "Richiesta di pull #{0} già chiusa");
m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests",
"Permesso amministrativo per le richieste di pull all'interno di un progetto, incluse operazioni batch su più richieste di pull");
m.put("Pull request already closed", "Richiesta di pull già chiusa");
m.put("Pull request already opened", "Richiesta di pull già aperta");
m.put("Pull request and code review", "Richiesta di pull e revisione del codice");
+ m.put("Pull request can only be merged after getting approvals from all reviewers", "La richiesta di pull può essere unita solo dopo aver ottenuto l'approvazione di tutti i revisori");
+ m.put("Pull request can only be merged by users with code write permission", "La richiesta di pull può essere unita solo dagli utenti con permesso di scrittura del codice");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",
"La richiesta di pull non può essere unita ora poiché <a class=\"more-info d-inline link-primary\">alcune build richieste</a> non sono ancora terminate");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",
@@ -3106,10 +3094,7 @@ public class Translation_it extends TranslationResourceBundle {
"La richiesta di pull non può essere unita ora poiché è <a class=\"more-info d-inline link-primary\">in attesa di revisione</a>");
m.put("Pull request cannot be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",
"La richiesta di pull non può essere unita ora poiché è stata <a class=\"more-info d-inline link-primary\">richiesta una modifica</a>");
- m.put("Pull request cannot be merged now as valid signature is required for head commit",
- "La richiesta di pull non può essere unita ora poiché è richiesta una firma valida per il commit principale");
- m.put("Pull request can only be merged after getting approvals from all reviewers", "La richiesta di pull può essere unita solo dopo aver ottenuto l'approvazione di tutti i revisori");
- m.put("Pull request can only be merged by users with code write permission", "La richiesta di pull può essere unita solo dagli utenti con permesso di scrittura del codice");
+ m.put("Pull request cannot be merged now as valid signature is required for head commit", "La richiesta di pull non può essere unita ora poiché è richiesta una firma valida per il commit principale");
m.put("Pull request discard", "Richiesta di pull scartata");
m.put("Pull request duration statistics", "Statistiche sulla durata delle pull request");
m.put("Pull request frequency statistics", "Statistiche sulla frequenza delle pull request");
@@ -3258,7 +3243,7 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Request For Changes", "Richiesta di modifiche");
m.put("Request Scopes", "Ambiti di richiesta");
m.put("Request Trial Subscription", "Richiedi abbonamento di prova");
- m.put("Request review", "Richiedi revisione");
+ m.put("Request review again", "Richiedi nuovamente la revisione");
m.put("Request to sync", "Richiedi sincronizzazione");
m.put("Requested For changes", "Richiesto per modifiche");
m.put("Requested changes to pull request \"{0}\" ({1})", "Richieste modifiche alla richiesta di pull \"{0}\" ({1})");
@@ -3535,7 +3520,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Show Description", "Mostra descrizione");
m.put("Show Duration", "Mostra durata");
m.put("Show Emojis", "Mostra emoji");
- m.put("Show Error Detail", "Mostra Dettaglio Errore");
m.put("Show Issue Status", "Mostra stato delle problematiche");
m.put("Show Package Stats", "Mostra statistiche dei pacchetti");
m.put("Show Pull Request Stats", "Mostra statistiche delle pull request");
@@ -4094,7 +4078,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("Symbol Name", "Nome Simbolo");
m.put("Symbol name", "Nome simbolo");
m.put("Symbols", "Simboli");
- m.put("Sync", "Sincronizza");
m.put("Sync (pull & push)", "Sincronizza (pull & push)");
m.put("Sync Replica Status and Back to Home", "Sincronizza Stato Replica e Torna alla Home");
m.put("Sync Repository", "Sincronizza Repository");
@@ -4186,7 +4169,6 @@ public class Translation_it extends TranslationResourceBundle {
m.put("There are merge conflicts.", "Ci sono conflitti di merge.");
m.put("There are merge conflicts. You can still create the pull request though", "Ci sono conflitti di merge. Puoi comunque creare la richiesta di pull");
m.put("There are unsaved changes, discard and continue?", "Ci sono modifiche non salvate, scartare e continuare?");
- m.put("There are workspaces on source branch", "Ci sono spazi di lavoro sul branch di origine");
m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",
"Questi autenticatori normalmente funzionano sul tuo telefono cellulare, alcuni esempi sono Google Authenticator, Microsoft Authenticator, Authy, 1Password ecc.");
m.put("This <span wicket:id=\"elementTypeName\"></span> is imported from <a wicket:id=\"link\" class=\"alert-link\"><span wicket:id=\"label\"></span></a>",
@@ -5042,7 +5024,38 @@ public class Translation_it extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Request review again", "Richiedi nuovamente la revisione");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level",
+ "<b>NOTA: </b> Le regole di transizione possono anche essere configurate e sovrascritte a livello di progetto");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level in enterprise edition",
+ "<b>NOTA: </b> Le regole di transizione possono anche essere configurate e sovrascritte a livello di progetto nell'edizione enterprise");
+ m.put("Associated Branch", "Branch associato");
+ m.put("Branch \"{0}\" already exists", "Il branch \"{0}\" esiste già");
+ m.put("Branch is created", "Il branch è stato creato");
+ m.put("Cannot delete branch as it has workspaces", "Impossibile eliminare il branch poiché ha workspaces");
+ m.put("Cannot delete source branch as it has workspaces", "Impossibile eliminare il branch sorgente poiché ha workspaces");
+ m.put("Create a workspace spec running Cursor CLI directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crea una specifica del workspace eseguendo Cursor CLI direttamente con l'ambiente shell del server.\nI workspaces che utilizzano la specifica creata condivideranno gli stessi ambienti e impostazioni.\nPer utilizzare questo template, assicurati che:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> sia installato sul server OneDev</li>\n <li>Un provisioner shell sia aggiunto in 'Amministrazione / Provisioner Workspace' con i 'progetti applicabili' configurati correttamente</li>\n</ul>");
+ m.put("Create a workspace spec running Cursor CLI inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>container image</a>\nlater to suit your needs if desired",
+ "Crea una specifica del workspace eseguendo Cursor CLI all'interno di un container per scopi di isolamento e sicurezza.\nPuoi personalizzare l'<a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>immagine del container</a>\nsuccessivamente per adattarla alle tue esigenze, se desiderato");
+ m.put("Default Fork Root", "Root predefinito per il fork");
+ m.put("Default branch is not available", "Il branch predefinito non è disponibile");
+ m.put("Define how issues may move from one state to another in this project. At evaluation time, rules from this project, each ancestor project up to the root, and the global rules are merged in that order; the first matching rule applies.",
+ "Definisci come i problemi possono passare da uno stato all'altro in questo progetto. Al momento della valutazione, le regole di questo progetto, di ogni progetto antenato fino alla radice e le regole globali vengono unite in quest'ordine; si applica la prima regola corrispondente.");
+ m.put("Define how issues move between states: manually by users, or automatically in response to events. The first matching rule applies.",
+ "Definisci come i problemi si spostano tra stati: manualmente dagli utenti o automaticamente in risposta agli eventi. Si applica la prima regola corrispondente.");
+ m.put("Issue Branch Prefix", "Prefisso del branch per i problemi");
+ m.put("Issue branch prefix updated", "Prefisso del branch per i problemi aggiornato");
+ m.put("No fork root", "Nessun root per il fork");
+ m.put("Optionally specify a prefix to be prepended (as a path segment) when generate issue branch.\nFor instance with prefix <code>feature</code>, generated issue branch will be\n<code>feature/issue-100-some-title</code>",
+ "Specifica facoltativamente un prefisso da anteporre (come segmento di percorso) quando si genera un branch per i problemi.\nAd esempio, con il prefisso <code>feature</code>, il branch generato per i problemi sarà\n<code>feature/issue-100-some-title</code>");
+ m.put("This setting is inherited from parent project when left empty. The first non-empty value found while walking up the project hierarchy will be used.",
+ "Questa impostazione viene ereditata dal progetto padre se lasciata vuota. Verrà utilizzato il primo valore non vuoto trovato risalendo la gerarchia del progetto.");
+ m.put("When forking from the UI, the default target project will be created as\n&lt;default fork root&gt;/&lt;account name&gt;/&lt;project name&gt; if specified\n(users forking need permission to create child projects under the fork\nroot), or &lt;account name&gt;/&lt;project name&gt; otherwise (need permission\nto create root projects)",
+ "Quando si effettua un fork dall'interfaccia utente, il progetto target predefinito sarà creato come\n&lt;root predefinito per il fork&gt;/&lt;nome account&gt;/&lt;nome progetto&gt; se specificato\n(gli utenti che effettuano il fork devono avere il permesso di creare progetti figli sotto il root del fork\n), oppure &lt;nome account&gt;/&lt;nome progetto&gt; altrimenti (necessario il permesso\ndi creare progetti root)");
+ m.put("Workspaces on source branch", "Workspaces sul branch sorgente");
+ m.put("Workspaces on this issue", "Workspaces su questo problema");
+ m.put("branch \"{0}\" is created", "il branch \"{0}\" è stato creato");
+ m.put("branch is created", "il branch è stato creato");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_ja.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_ja.java
index 7bc91e7123..c392c2a35e 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_ja.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_ja.java
@@ -190,7 +190,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Add Rule", "ルールを追加");
m.put("Add SSH key", "SSHキーを追加");
m.put("Add SSO provider", "SSOプロバイダーを追加");
- m.put("Add Spec", "スペックを追加");
m.put("Add Spent Time", "使用時間を追加");
m.put("Add Timesheet", "タイムシートを追加");
m.put("Add Widget", "ウィジェットを追加");
@@ -233,7 +232,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Add new service locator", "新しいサービスロケーターを追加");
m.put("Add new step", "新しいステップを追加");
m.put("Add new trigger", "新しいトリガーを追加");
- m.put("Add new user config", "新しいユーザー設定を追加");
m.put("Add new user data", "新しいユーザーデータを追加");
m.put("Add project", "プロジェクトを追加");
m.put("Add reviewer...", "レビュアーを追加...");
@@ -452,11 +450,8 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Belonging Groups", "所属グループ");
m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.",
"以下は一般的な条件です。上の検索ボックスに入力して完全なリストと利用可能な組み合わせを表示してください。");
- m.put("Below content is restored from an unsaved change. <a class=\"clear-unsaved-change\">Clear</a> to discard",
- "以下の内容は未保存の変更から復元されました。<a class=\"clear-unsaved-change\">クリア</a>して破棄");
m.put("Below content is restored from an unsaved change. <a class=\"discard-unsaved-change\">Discard</a>",
"以下の内容は未保存の変更から復元されました。<a class=\"discard-unsaved-change\">破棄</a>");
- m.put("Below content is restored from an unsaved change. Clear to discard", "以下の内容は未保存の変更から復元されました。クリアして破棄してください");
m.put("Below information will also be sent", "以下の情報も送信されます");
m.put("Binary file", "バイナリファイル");
m.put("Binary file.", "バイナリファイル");
@@ -601,9 +596,17 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Can Be Used By Workspaces", "ワークスペースで使用可能");
m.put("Can Create Root Projects", "ルートプロジェクトを作成可能");
m.put("Can Edit Estimated Time", "推定時間を編集可能");
+ m.put("Can only compare with common ancestor when different projects are involved", "異なるプロジェクトが関与している場合、共通の祖先との比較のみ可能です");
+ m.put("Cancel", "キャンセル");
+ m.put("Cancel All Queried Builds", "クエリされたすべてのビルドをキャンセル");
+ m.put("Cancel Selected Builds", "選択されたビルドをキャンセル");
+ m.put("Cancel invitation", "招待をキャンセル");
+ m.put("Cancel request submitted", "キャンセルリクエストが送信されました");
+ m.put("Cancel this build", "このビルドをキャンセル");
+ m.put("Cancelled", "キャンセル済み");
+ m.put("Cancelled By", "キャンセルした人");
m.put("Cannot convert root user to service account", "ルートユーザーをサービスアカウントに変換できません");
m.put("Cannot convert yourself to service account", "自分自身をサービスアカウントに変換できません");
- m.put("Cannot delete branch \"{0}\" as there are workspaces on it", "ブランチ\"{0}\"を削除できません。そこにワークスペースがあるためです");
m.put("Cannot delete default branch", "デフォルトブランチを削除できません");
m.put("Cannot delete root account", "ルートアカウントを削除できません");
m.put("Cannot delete yourself", "自分自身を削除できません");
@@ -617,15 +620,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Cannot reset password for user authenticating via external system", "外部システムで認証するユーザーのパスワードをリセットできません");
m.put("Cannot save malformed query", "不正なクエリを保存することはできません");
m.put("Cannot use current or descendant project as parent", "現在のプロジェクトまたは子孫プロジェクトを親として使用することはできません");
- m.put("Can only compare with common ancestor when different projects are involved", "異なるプロジェクトが関与している場合、共通の祖先との比較のみ可能です");
- m.put("Cancel", "キャンセル");
- m.put("Cancel All Queried Builds", "クエリされたすべてのビルドをキャンセル");
- m.put("Cancel Selected Builds", "選択されたビルドをキャンセル");
- m.put("Cancel invitation", "招待をキャンセル");
- m.put("Cancel request submitted", "キャンセルリクエストが送信されました");
- m.put("Cancel this build", "このビルドをキャンセル");
- m.put("Cancelled", "キャンセル済み");
- m.put("Cancelled By", "キャンセルした人");
m.put("Case Sensitive", "大文字小文字を区別");
m.put("Certificates to Trust", "信頼する証明書");
m.put("Change", "変更");
@@ -669,7 +663,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Check Vulnerabilities", "脆弱性を確認");
m.put("Check Workflow Integrity", "ワークフローの整合性を確認");
m.put("Check out to local directory", "ローカルディレクトリにチェックアウト");
- m.put("Check out to local workspace", "ローカルワークスペースにチェックアウト");
m.put("Check this to compare right side with common ancestor of left and right", "左側と右側の共通祖先と比較するにはこれをチェックしてください");
m.put("Check this to enforce two-factor authentication for all users in the system", "システム内のすべてのユーザーに対して二要素認証を強制するにはこれをチェックしてください");
m.put("Check this to enforce two-factor authentication for all users in this group", "このグループ内のすべてのユーザーに対して二要素認証を強制するにはこれをチェックしてください");
@@ -1013,8 +1006,6 @@ public class Translation_ja extends TranslationResourceBundle {
"ブランチ保護ルールを定義します。親プロジェクトで定義されたルールはここで定義されたルールの後に考慮されます。特定のブランチとユーザーに対して最初に一致するルールが適用されます");
m.put("Define default issue boards for all projects here. A certain project can override this setting to define its own issue boards.",
"すべてのプロジェクトに対するデフォルトの課題ボードをここで定義します。特定のプロジェクトはこの設定を上書きして独自の課題ボードを定義できます");
- m.put("Define how issue states should be transited from one to another, either manually or automatically when some events happen. And the rule can be configured to apply to certain projects and issues via the applicable issues setting",
- "課題状態がどのように遷移するべきかを定義します。手動で遷移するか、またはイベントが発生した際に自動的に遷移するかを選択できます。そしてルールは特定のプロジェクトや課題に適用されるように設定できます");
m.put("Define issue templates here. When a new issue is created, the first matching template will be used.",
"課題テンプレートをここで定義します。新しい課題が作成されると、最初に一致するテンプレートが使用されます");
m.put("Define labels to be assigned to project, build or pull request. For issues, custom fields can be used which is much more powerful than labels",
@@ -1061,7 +1052,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Delete this", "これを削除");
m.put("Delete this GPG key", "このGPGキーを削除");
m.put("Delete this access token", "このアクセストークンを削除");
- m.put("Delete this branch", "このブランチを削除");
m.put("Delete this executor", "このエグゼキューターを削除");
m.put("Delete this field", "このフィールドを削除");
m.put("Delete this import", "このインポートを削除");
@@ -2249,7 +2239,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("New State", "新しい状態");
m.put("New User Bean", "新しいユーザーBean");
m.put("New Value", "新しい値");
- m.put("New Workspace Spec", "新しいワークスペース仕様");
m.put("New chat", "新しいチャット");
m.put("New issue board created", "新しい課題ボードが作成されました");
m.put("New project created", "新しいプロジェクトが作成されました");
@@ -2378,7 +2367,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("No valid signature for head commit of target branch", "ターゲットブランチのヘッドコミットに有効な署名がありません");
m.put("No value", "値がありません");
m.put("No verified primary email address", "確認済みのプライマリメールアドレスがありません");
- m.put("No workspace provisioners defined", "ワークスペースプロビジョナーが定義されていません");
m.put("No workspaces", "ワークスペースがありません");
m.put("No workspaces to delete", "削除するワークスペースがありません");
m.put("Node Selector", "ノードセレクター");
@@ -2552,7 +2540,6 @@ public class Translation_ja extends TranslationResourceBundle {
"オプションで、期限情報を保持する日付フィールドを指定してください。<br><b>注意: </b>適切なオプションがない場合は、OneDev課題フィールドをカスタマイズすることができます。");
m.put("Optionally specify a path relative to <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> to put retrieved artifacts. Leave empty to use job working directory itself",
"オプションで、取得したアーティファクトを配置する<a href='https://docs.onedev.io/concepts#job-workdir'>ジョブワークスペース</a>に対する相対パスを指定してください。ジョブワークスペース自体を使用する場合は空のままにしてください。");
- m.put("Optionally specify a prefix to be prepended to generated branch name", "生成されたブランチ名の先頭に付けるプレフィックスを任意で指定");
m.put("Optionally specify a storage class to allocate build volume dynamically. Leave empty to use default storage class. <b class='text-warning'>NOTE:</b> Reclaim policy of the storage class should be set to <code>Delete</code>, as the volume is only used to hold temporary build files",
"オプションで、ビルドボリュームを動的に割り当てるためのストレージクラスを指定してください。デフォルトのストレージクラスを使用する場合は空のままにしてください。<b class='text-warning'>注意:</b> ストレージクラスの再利用ポリシーは<code>Delete</code>に設定する必要があります。ボリュームは一時的なビルドファイルを保持するためだけに使用されます。");
m.put("Optionally specify a working period field to hold estimated time infomration.<br><b>NOTE: </b> You may customize OneDev issue fields in case there is no appropriate option here",
@@ -3092,12 +3079,13 @@ public class Translation_ja extends TranslationResourceBundle {
"Craneを使用してOCIレイアウトとしてDockerイメージをプルします。このステップは、サーバーDockerエグゼキューター、リモートDockerエグゼキューター、またはKubernetesエグゼキューターによって実行される必要があります");
m.put("Pull from Remote", "リモートからプル");
m.put("Pull request", "プルリクエスト");
- m.put("Pull request #{0} already closed", "プルリクエスト#{0}はすでにクローズされています");
m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests",
"プロジェクト内でのプルリクエスト管理権限、複数のプルリクエストに対するバッチ操作を含む");
m.put("Pull request already closed", "プルリクエストはすでにクローズされています");
m.put("Pull request already opened", "プルリクエストはすでにオープンされています");
m.put("Pull request and code review", "プルリクエストとコードレビュー");
+ m.put("Pull request can only be merged after getting approvals from all reviewers", "すべてのレビュアーから承認を得た後にのみプルリクエストをマージできます");
+ m.put("Pull request can only be merged by users with code write permission", "コード書き込み権限を持つユーザーのみがプルリクエストをマージできます");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",
"<a class=\"more-info d-inline link-primary\">必要なビルドの一部</a>がまだ完了していないため、現在プルリクエストをマージすることはできません");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",
@@ -3106,10 +3094,7 @@ public class Translation_ja extends TranslationResourceBundle {
"<a class=\"more-info d-inline link-primary\">レビュー待ち</a>のため、現在プルリクエストをマージすることはできません");
m.put("Pull request cannot be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",
"<a class=\"more-info d-inline link-primary\">変更が要求されました</a>ため、現在プルリクエストをマージすることはできません");
- m.put("Pull request cannot be merged now as valid signature is required for head commit",
- "ヘッドコミットに有効な署名が必要なため、現在プルリクエストをマージすることはできません");
- m.put("Pull request can only be merged after getting approvals from all reviewers", "すべてのレビュアーから承認を得た後にのみプルリクエストをマージできます");
- m.put("Pull request can only be merged by users with code write permission", "コード書き込み権限を持つユーザーのみがプルリクエストをマージできます");
+ m.put("Pull request cannot be merged now as valid signature is required for head commit", "ヘッドコミットに有効な署名が必要なため、現在プルリクエストをマージすることはできません");
m.put("Pull request discard", "プルリクエストの破棄");
m.put("Pull request duration statistics", "プルリクエスト期間統計");
m.put("Pull request frequency statistics", "プルリクエスト頻度統計");
@@ -3258,7 +3243,7 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Request For Changes", "変更のリクエスト");
m.put("Request Scopes", "リクエストスコープ");
m.put("Request Trial Subscription", "試用版サブスクリプションをリクエスト");
- m.put("Request review", "レビューをリクエスト");
+ m.put("Request review again", "再度レビューをリクエスト");
m.put("Request to sync", "同期をリクエスト");
m.put("Requested For changes", "変更をリクエストしました");
m.put("Requested changes to pull request \"{0}\" ({1})", "プルリクエスト\"{0}\"({1})に変更をリクエストしました");
@@ -3535,7 +3520,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Show Description", "説明を表示");
m.put("Show Duration", "期間を表示");
m.put("Show Emojis", "絵文字を表示");
- m.put("Show Error Detail", "エラー詳細を表示");
m.put("Show Issue Status", "課題ステータスを表示");
m.put("Show Package Stats", "パッケージ統計を表示");
m.put("Show Pull Request Stats", "プルリクエスト統計を表示");
@@ -4094,7 +4078,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("Symbol Name", "シンボル名");
m.put("Symbol name", "シンボル名");
m.put("Symbols", "シンボル");
- m.put("Sync", "同期");
m.put("Sync (pull & push)", "同期 (プル & プッシュ)");
m.put("Sync Replica Status and Back to Home", "レプリカステータスを同期してホームに戻る");
m.put("Sync Repository", "リポジトリを同期");
@@ -4186,7 +4169,6 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("There are merge conflicts.", "マージコンフリクトがあります。");
m.put("There are merge conflicts. You can still create the pull request though", "マージコンフリクトがあります。ただし、プルリクエストを作成することは可能です");
m.put("There are unsaved changes, discard and continue?", "保存されていない変更があります。破棄して続行しますか?");
- m.put("There are workspaces on source branch", "ソースブランチにワークスペースがあります");
m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",
"これらの認証アプリは通常、携帯電話で動作します。例としてはGoogle Authenticator、Microsoft Authenticator、Authy、1Passwordなどがあります。");
m.put("This <span wicket:id=\"elementTypeName\"></span> is imported from <a wicket:id=\"link\" class=\"alert-link\"><span wicket:id=\"label\"></span></a>",
@@ -5042,7 +5024,38 @@ public class Translation_ja extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Request review again", "再度レビューをリクエスト");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level",
+ "<b>注意: </b>遷移ルールはプロジェクトレベルで設定および上書きすることもできます");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level in enterprise edition",
+ "<b>注意: </b>遷移ルールはエンタープライズエディションでプロジェクトレベルで設定および上書きすることもできます");
+ m.put("Associated Branch", "関連ブランチ");
+ m.put("Branch \"{0}\" already exists", "ブランチ \"{0}\" は既に存在します");
+ m.put("Branch is created", "ブランチが作成されました");
+ m.put("Cannot delete branch as it has workspaces", "ブランチにワークスペースがあるため削除できません");
+ m.put("Cannot delete source branch as it has workspaces", "ソースブランチにワークスペースがあるため削除できません");
+ m.put("Create a workspace spec running Cursor CLI directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "サーバーシェル環境で直接Cursor CLIを実行してワークスペース仕様を作成します。\n作成された仕様を使用するワークスペースは同じ環境と設定を共有します。\nこのテンプレートを使用するには、以下を確認してください:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a>がOneDevサーバーにインストールされている</li>\n <li>'管理 / ワークスペースプロビジョナー'にシェルプロビジョナーが追加され、'適用可能なプロジェクト'が適切に設定されている</li>\n</ul>");
+ m.put("Create a workspace spec running Cursor CLI inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>container image</a>\nlater to suit your needs if desired",
+ "隔離とセキュリティのためにコンテナ内でCursor CLIを実行してワークスペース仕様を作成します。\n必要に応じて<a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>コンテナイメージ</a>\nを後でカスタマイズできます");
+ m.put("Default Fork Root", "デフォルトフォークルート");
+ m.put("Default branch is not available", "デフォルトブランチが利用できません");
+ m.put("Define how issues may move from one state to another in this project. At evaluation time, rules from this project, each ancestor project up to the root, and the global rules are merged in that order; the first matching rule applies.",
+ "このプロジェクトで課題がどのように一つの状態から別の状態に移動するかを定義します。評価時には、このプロジェクト、ルートまでの各祖先プロジェクト、およびグローバルルールの順にルールが統合され、最初に一致するルールが適用されます。");
+ m.put("Define how issues move between states: manually by users, or automatically in response to events. The first matching rule applies.",
+ "課題が状態間をどのように移動するかを定義します: ユーザーによる手動操作、またはイベントに応じた自動操作。最初に一致するルールが適用されます。");
+ m.put("Issue Branch Prefix", "課題ブランチプレフィックス");
+ m.put("Issue branch prefix updated", "課題ブランチプレフィックスが更新されました");
+ m.put("No fork root", "フォークルートがありません");
+ m.put("Optionally specify a prefix to be prepended (as a path segment) when generate issue branch.\nFor instance with prefix <code>feature</code>, generated issue branch will be\n<code>feature/issue-100-some-title</code>",
+ "課題ブランチを生成する際にプレフィックスを(パスセグメントとして)先頭に追加する場合は指定してください。\n例えば、プレフィックス<code>feature</code>を指定すると、生成される課題ブランチは\n<code>feature/issue-100-some-title</code>となります");
+ m.put("This setting is inherited from parent project when left empty. The first non-empty value found while walking up the project hierarchy will be used.",
+ "この設定を空のままにすると、親プロジェクトから継承されます。プロジェクト階層を上にたどる際に見つかった最初の空でない値が使用されます。");
+ m.put("When forking from the UI, the default target project will be created as\n&lt;default fork root&gt;/&lt;account name&gt;/&lt;project name&gt; if specified\n(users forking need permission to create child projects under the fork\nroot), or &lt;account name&gt;/&lt;project name&gt; otherwise (need permission\nto create root projects)",
+ "UIからフォークする場合、デフォルトターゲットプロジェクトは\n&lt;デフォルトフォークルート&gt;/&lt;アカウント名&gt;/&lt;プロジェクト名&gt;として作成されます(指定されている場合)\n(フォークするユーザーはフォークルート下で子プロジェクトを作成する権限が必要)、または&lt;アカウント名&gt;/&lt;プロジェクト名&gt;(ルートプロジェクトを作成する権限が必要)として作成されます");
+ m.put("Workspaces on source branch", "ソースブランチ上のワークスペース");
+ m.put("Workspaces on this issue", "この課題上のワークスペース");
+ m.put("branch \"{0}\" is created", "ブランチ \"{0}\" が作成されました");
+ m.put("branch is created", "ブランチが作成されました");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_ko.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_ko.java
index cbec5659e0..d40e0af73a 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_ko.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_ko.java
@@ -190,7 +190,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Add Rule", "규칙 추가");
m.put("Add SSH key", "SSH 키 추가");
m.put("Add SSO provider", "SSO 제공자 추가");
- m.put("Add Spec", "사양 추가");
m.put("Add Spent Time", "소요 시간 추가");
m.put("Add Timesheet", "근무시간표 추가");
m.put("Add Widget", "위젯 추가");
@@ -233,7 +232,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Add new service locator", "새 서비스 로케이터 추가");
m.put("Add new step", "새 단계 추가");
m.put("Add new trigger", "새 트리거 추가");
- m.put("Add new user config", "새 사용자 구성 추가");
m.put("Add new user data", "새 사용자 데이터 추가");
m.put("Add project", "프로젝트 추가");
m.put("Add reviewer...", "검토자 추가...");
@@ -452,11 +450,8 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Belonging Groups", "소속 그룹");
m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.",
"아래는 일반적인 기준입니다. 위의 검색 상자에 입력하여 전체 목록과 사용 가능한 조합을 확인하세요.");
- m.put("Below content is restored from an unsaved change. <a class=\"clear-unsaved-change\">Clear</a> to discard",
- "아래 내용은 저장되지 않은 변경 사항에서 복원되었습니다. <a class=\"clear-unsaved-change\">지우기</a>하여 폐기");
m.put("Below content is restored from an unsaved change. <a class=\"discard-unsaved-change\">Discard</a>",
"아래 내용은 저장되지 않은 변경 사항에서 복원되었습니다. <a class=\"discard-unsaved-change\">폐기</a>");
- m.put("Below content is restored from an unsaved change. Clear to discard", "아래 내용은 저장되지 않은 변경 사항에서 복원되었습니다. 삭제하려면 지우세요.");
m.put("Below information will also be sent", "아래 정보도 전송됩니다");
m.put("Binary file", "바이너리 파일");
m.put("Binary file.", "바이너리 파일.");
@@ -601,9 +596,17 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Can Be Used By Workspaces", "워크스페이스에서 사용할 수 있음");
m.put("Can Create Root Projects", "루트 프로젝트 생성 가능");
m.put("Can Edit Estimated Time", "예상 시간 수정 가능");
+ m.put("Can only compare with common ancestor when different projects are involved", "다른 프로젝트가 포함된 경우 공통 조상과만 비교할 수 있습니다");
+ m.put("Cancel", "취소");
+ m.put("Cancel All Queried Builds", "쿼리된 모든 빌드 취소");
+ m.put("Cancel Selected Builds", "선택된 빌드 취소");
+ m.put("Cancel invitation", "초대 취소");
+ m.put("Cancel request submitted", "요청 취소가 제출되었습니다");
+ m.put("Cancel this build", "이 빌드 취소");
+ m.put("Cancelled", "취소됨");
+ m.put("Cancelled By", "취소한 사람");
m.put("Cannot convert root user to service account", "루트 사용자를 서비스 계정으로 변환할 수 없습니다");
m.put("Cannot convert yourself to service account", "자신을 서비스 계정으로 변환할 수 없습니다");
- m.put("Cannot delete branch \"{0}\" as there are workspaces on it", "해당 브랜치에 워크스페이스가 있어 \"{0}\" 브랜치를 삭제할 수 없습니다");
m.put("Cannot delete default branch", "기본 브랜치를 삭제할 수 없습니다");
m.put("Cannot delete root account", "루트 계정을 삭제할 수 없습니다");
m.put("Cannot delete yourself", "자신을 삭제할 수 없습니다");
@@ -617,15 +620,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Cannot reset password for user authenticating via external system", "외부 시스템을 통해 인증하는 사용자의 비밀번호를 재설정할 수 없습니다");
m.put("Cannot save malformed query", "잘못된 쿼리를 저장할 수 없습니다");
m.put("Cannot use current or descendant project as parent", "현재 또는 하위 프로젝트를 부모로 사용할 수 없습니다");
- m.put("Can only compare with common ancestor when different projects are involved", "다른 프로젝트가 포함된 경우 공통 조상과만 비교할 수 있습니다");
- m.put("Cancel", "취소");
- m.put("Cancel All Queried Builds", "쿼리된 모든 빌드 취소");
- m.put("Cancel Selected Builds", "선택된 빌드 취소");
- m.put("Cancel invitation", "초대 취소");
- m.put("Cancel request submitted", "요청 취소가 제출되었습니다");
- m.put("Cancel this build", "이 빌드 취소");
- m.put("Cancelled", "취소됨");
- m.put("Cancelled By", "취소한 사람");
m.put("Case Sensitive", "대소문자 구분");
m.put("Certificates to Trust", "신뢰할 인증서");
m.put("Change", "변경");
@@ -669,7 +663,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Check Vulnerabilities", "취약점 확인");
m.put("Check Workflow Integrity", "워크플로 무결성 확인");
m.put("Check out to local directory", "로컬 디렉토리로 체크아웃");
- m.put("Check out to local workspace", "로컬 작업 공간으로 체크아웃");
m.put("Check this to compare right side with common ancestor of left and right", "왼쪽과 오른쪽의 공통 조상과 오른쪽을 비교하려면 이것을 선택하세요");
m.put("Check this to enforce two-factor authentication for all users in the system", "시스템의 모든 사용자에 대해 이중 인증을 강제하려면 이것을 선택하세요");
m.put("Check this to enforce two-factor authentication for all users in this group", "이 그룹의 모든 사용자에 대해 이중 인증을 강제하려면 이것을 선택하세요");
@@ -1013,8 +1006,6 @@ public class Translation_ko extends TranslationResourceBundle {
"브랜치 보호 규칙을 정의하세요. 상위 프로젝트에서 정의된 규칙은 여기에서 정의된 규칙 뒤에 정의된 것으로 간주됩니다. 특정 브랜치와 사용자에 대해 첫 번째 일치하는 규칙이 적용됩니다");
m.put("Define default issue boards for all projects here. A certain project can override this setting to define its own issue boards.",
"모든 프로젝트에 대한 기본 이슈 보드를 여기에서 정의하세요. 특정 프로젝트는 이 설정을 재정의하여 자체 이슈 보드를 정의할 수 있습니다");
- m.put("Define how issue states should be transited from one to another, either manually or automatically when some events happen. And the rule can be configured to apply to certain projects and issues via the applicable issues setting",
- "이슈 상태가 수동으로 또는 특정 이벤트가 발생할 때 자동으로 어떻게 전환되어야 하는지 정의하세요. 그리고 규칙은 특정 프로젝트와 이슈에 적용되도록 설정할 수 있습니다");
m.put("Define issue templates here. When a new issue is created, the first matching template will be used.",
"이슈 템플릿을 여기에서 정의하세요. 새 이슈가 생성될 때 첫 번째 일치하는 템플릿이 사용됩니다");
m.put("Define labels to be assigned to project, build or pull request. For issues, custom fields can be used which is much more powerful than labels",
@@ -1061,7 +1052,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Delete this", "이 항목 삭제");
m.put("Delete this GPG key", "이 GPG 키 삭제");
m.put("Delete this access token", "이 액세스 토큰 삭제");
- m.put("Delete this branch", "이 브랜치 삭제");
m.put("Delete this executor", "이 실행기 삭제");
m.put("Delete this field", "이 필드 삭제");
m.put("Delete this import", "이 가져오기 삭제");
@@ -2249,7 +2239,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("New State", "새 상태");
m.put("New User Bean", "새 사용자 Bean");
m.put("New Value", "새 값");
- m.put("New Workspace Spec", "새 작업 공간 사양");
m.put("New chat", "새 채팅");
m.put("New issue board created", "새 이슈 보드 생성됨");
m.put("New project created", "새 프로젝트가 생성되었습니다");
@@ -2378,7 +2367,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("No valid signature for head commit of target branch", "대상 브랜치의 헤드 커밋에 대한 유효한 서명이 없습니다");
m.put("No value", "값이 없습니다");
m.put("No verified primary email address", "확인된 기본 이메일 주소가 없습니다");
- m.put("No workspace provisioners defined", "정의된 작업 공간 프로비저너 없음");
m.put("No workspaces", "작업 공간 없음");
m.put("No workspaces to delete", "삭제할 작업 공간 없음");
m.put("Node Selector", "노드 선택기");
@@ -2552,7 +2540,6 @@ public class Translation_ko extends TranslationResourceBundle {
"선택적으로 마감일 정보를 보유할 날짜 필드를 지정하세요.<br><b>참고: </b> 적절한 옵션이 없는 경우 OneDev 문제 필드를 사용자 정의할 수 있습니다.");
m.put("Optionally specify a path relative to <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> to put retrieved artifacts. Leave empty to use job working directory itself",
"선택적으로 검색된 아티팩트를 저장할 <a href='https://docs.onedev.io/concepts#job-workdir'>작업 워크스페이스</a>에 상대적인 경로를 지정하세요. 작업 워크스페이스 자체를 사용하려면 비워 두세요.");
- m.put("Optionally specify a prefix to be prepended to generated branch name", "생성된 브랜치 이름에 추가할 접두사를 선택적으로 지정합니다");
m.put("Optionally specify a storage class to allocate build volume dynamically. Leave empty to use default storage class. <b class='text-warning'>NOTE:</b> Reclaim policy of the storage class should be set to <code>Delete</code>, as the volume is only used to hold temporary build files",
"선택적으로 빌드 볼륨을 동적으로 할당할 스토리지 클래스를 지정하세요. 기본 스토리지 클래스를 사용하려면 비워 두세요. <b class='text-warning'>참고:</b> 스토리지 클래스의 복구 정책은 <code>Delete</code>로 설정되어야 합니다. 볼륨은 임시 빌드 파일을 저장하는 데만 사용됩니다.");
m.put("Optionally specify a working period field to hold estimated time infomration.<br><b>NOTE: </b> You may customize OneDev issue fields in case there is no appropriate option here",
@@ -3092,12 +3079,13 @@ public class Translation_ko extends TranslationResourceBundle {
"crane을 통해 도커 이미지를 OCI 레이아웃으로 풀합니다. 이 단계는 서버 도커 실행자, 원격 도커 실행자 또는 Kubernetes 실행자에 의해 실행되어야 합니다");
m.put("Pull from Remote", "원격에서 풀");
m.put("Pull request", "풀 리퀘스트");
- m.put("Pull request #{0} already closed", "풀 리퀘스트 #{0}가 이미 닫혔습니다");
m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests",
"프로젝트 내에서 풀 리퀘스트 관리 권한, 여러 풀 리퀘스트에 대한 배치 작업 포함");
m.put("Pull request already closed", "풀 리퀘스트가 이미 닫혔습니다");
m.put("Pull request already opened", "풀 리퀘스트가 이미 열렸습니다");
m.put("Pull request and code review", "풀 리퀘스트 및 코드 리뷰");
+ m.put("Pull request can only be merged after getting approvals from all reviewers", "모든 리뷰어의 승인을 받은 후에만 풀 리퀘스트를 병합할 수 있습니다");
+ m.put("Pull request can only be merged by users with code write permission", "코드 쓰기 권한이 있는 사용자만 풀 리퀘스트를 병합할 수 있습니다");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",
"<a class=\"more-info d-inline link-primary\">필요한 빌드</a>가 아직 완료되지 않아 풀 리퀘스트를 지금 병합할 수 없습니다");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",
@@ -3106,10 +3094,7 @@ public class Translation_ko extends TranslationResourceBundle {
"풀 리퀘스트를 지금 병합할 수 없습니다. <a class=\"more-info d-inline link-primary\">검토 대기 중</a>입니다");
m.put("Pull request cannot be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",
"풀 리퀘스트를 지금 병합할 수 없습니다. <a class=\"more-info d-inline link-primary\">변경 요청됨</a>입니다");
- m.put("Pull request cannot be merged now as valid signature is required for head commit",
- "풀 리퀘스트를 지금 병합할 수 없습니다. 헤드 커밋에 유효한 서명이 필요합니다");
- m.put("Pull request can only be merged after getting approvals from all reviewers", "모든 리뷰어의 승인을 받은 후에만 풀 리퀘스트를 병합할 수 있습니다");
- m.put("Pull request can only be merged by users with code write permission", "코드 쓰기 권한이 있는 사용자만 풀 리퀘스트를 병합할 수 있습니다");
+ m.put("Pull request cannot be merged now as valid signature is required for head commit", "풀 리퀘스트를 지금 병합할 수 없습니다. 헤드 커밋에 유효한 서명이 필요합니다");
m.put("Pull request discard", "풀 리퀘스트 폐기");
m.put("Pull request duration statistics", "풀 리퀘스트 지속 시간 통계");
m.put("Pull request frequency statistics", "풀 리퀘스트 빈도 통계");
@@ -3258,7 +3243,7 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Request For Changes", "변경 요청");
m.put("Request Scopes", "요청 범위");
m.put("Request Trial Subscription", "체험 구독 요청");
- m.put("Request review", "리뷰 요청");
+ m.put("Request review again", "다시 검토 요청");
m.put("Request to sync", "동기화 요청");
m.put("Requested For changes", "변경 요청됨");
m.put("Requested changes to pull request \"{0}\" ({1})", "풀 리퀘스트 \"{0}\" ({1})에 대한 변경 요청");
@@ -3535,7 +3520,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Show Description", "설명 보기");
m.put("Show Duration", "기간 보기");
m.put("Show Emojis", "이모지 보기");
- m.put("Show Error Detail", "오류 세부 정보 표시");
m.put("Show Issue Status", "이슈 상태 보기");
m.put("Show Package Stats", "패키지 통계 보기");
m.put("Show Pull Request Stats", "풀 리퀘스트 통계 보기");
@@ -4094,7 +4078,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("Symbol Name", "심볼 이름");
m.put("Symbol name", "심볼 이름");
m.put("Symbols", "심볼");
- m.put("Sync", "동기화");
m.put("Sync (pull & push)", "동기화 (풀 & 푸시)");
m.put("Sync Replica Status and Back to Home", "복제본 상태 동기화 및 홈으로 돌아가기");
m.put("Sync Repository", "저장소 동기화");
@@ -4186,7 +4169,6 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("There are merge conflicts.", "병합 충돌이 있습니다.");
m.put("There are merge conflicts. You can still create the pull request though", "병합 충돌이 있습니다. 그래도 풀 요청을 생성할 수 있습니다");
m.put("There are unsaved changes, discard and continue?", "저장되지 않은 변경 사항이 있습니다. 폐기하고 계속하시겠습니까?");
- m.put("There are workspaces on source branch", "소스 브랜치에 작업 공간이 있습니다");
m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",
"이 인증기는 일반적으로 모바일 폰에서 실행됩니다. Google Authenticator, Microsoft Authenticator, Authy, 1Password 등이 예입니다.");
m.put("This <span wicket:id=\"elementTypeName\"></span> is imported from <a wicket:id=\"link\" class=\"alert-link\"><span wicket:id=\"label\"></span></a>",
@@ -5042,7 +5024,38 @@ public class Translation_ko extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Request review again", "다시 검토 요청");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level",
+ "<b>참고: </b> 전환 규칙은 프로젝트 수준에서 구성 및 재정의할 수 있습니다.");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level in enterprise edition",
+ "<b>참고: </b> 전환 규칙은 엔터프라이즈 에디션에서 프로젝트 수준에서 구성 및 재정의할 수 있습니다.");
+ m.put("Associated Branch", "연관된 브랜치");
+ m.put("Branch \"{0}\" already exists", "브랜치 \"{0}\"가 이미 존재합니다.");
+ m.put("Branch is created", "브랜치가 생성되었습니다.");
+ m.put("Cannot delete branch as it has workspaces", "작업공간이 있어 브랜치를 삭제할 수 없습니다.");
+ m.put("Cannot delete source branch as it has workspaces", "작업공간이 있어 소스 브랜치를 삭제할 수 없습니다.");
+ m.put("Create a workspace spec running Cursor CLI directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "서버 셸 환경에서 Cursor CLI를 직접 실행하여 작업공간 사양을 생성합니다.\n생성된 사양을 사용하는 작업공간은 동일한 환경 및 설정을 공유합니다.\n이 템플릿을 사용하려면 다음을 확인하십시오:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a>가 OneDev 서버에 설치되어 있어야 합니다.</li>\n <li>'관리 / 작업공간 프로비저너'에서 '적용 가능한 프로젝트'가 적절히 구성된 셸 프로비저너가 추가되어야 합니다.</li>\n</ul>");
+ m.put("Create a workspace spec running Cursor CLI inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>container image</a>\nlater to suit your needs if desired",
+ "격리 및 보안 목적으로 컨테이너 내부에서 Cursor CLI를 실행하여 작업공간 사양을 생성합니다.\n필요한 경우 나중에 <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>컨테이너 이미지</a>를\n사용자 요구에 맞게 커스터마이징할 수 있습니다.");
+ m.put("Default Fork Root", "기본 포크 루트");
+ m.put("Default branch is not available", "기본 브랜치가 사용 가능하지 않습니다.");
+ m.put("Define how issues may move from one state to another in this project. At evaluation time, rules from this project, each ancestor project up to the root, and the global rules are merged in that order; the first matching rule applies.",
+ "이 프로젝트에서 이슈가 한 상태에서 다른 상태로 이동하는 방식을 정의합니다. 평가 시, 이 프로젝트의 규칙, 루트까지의 각 상위 프로젝트의 규칙, 그리고 글로벌 규칙이 이 순서로 병합되며, 첫 번째로 일치하는 규칙이 적용됩니다.");
+ m.put("Define how issues move between states: manually by users, or automatically in response to events. The first matching rule applies.",
+ "이슈가 상태 간에 이동하는 방식을 정의합니다: 사용자가 수동으로 이동하거나 이벤트에 응답하여 자동으로 이동합니다. 첫 번째로 일치하는 규칙이 적용됩니다.");
+ m.put("Issue Branch Prefix", "이슈 브랜치 접두사");
+ m.put("Issue branch prefix updated", "이슈 브랜치 접두사가 업데이트되었습니다.");
+ m.put("No fork root", "포크 루트 없음");
+ m.put("Optionally specify a prefix to be prepended (as a path segment) when generate issue branch.\nFor instance with prefix <code>feature</code>, generated issue branch will be\n<code>feature/issue-100-some-title</code>",
+ "이슈 브랜치를 생성할 때 경로 세그먼트로 추가될 접두사를 선택적으로 지정할 수 있습니다.\n예를 들어 접두사가 <code>feature</code>인 경우, 생성된 이슈 브랜치는\n<code>feature/issue-100-some-title</code>가 됩니다.");
+ m.put("This setting is inherited from parent project when left empty. The first non-empty value found while walking up the project hierarchy will be used.",
+ "이 설정이 비어 있으면 상위 프로젝트에서 상속됩니다. 프로젝트 계층을 따라 올라가면서 발견된 첫 번째 비어 있지 않은 값이 사용됩니다.");
+ m.put("When forking from the UI, the default target project will be created as\n&lt;default fork root&gt;/&lt;account name&gt;/&lt;project name&gt; if specified\n(users forking need permission to create child projects under the fork\nroot), or &lt;account name&gt;/&lt;project name&gt; otherwise (need permission\nto create root projects)",
+ "UI에서 포크할 때, 기본 대상 프로젝트는\n&lt;기본 포크 루트&gt;/&lt;계정 이름&gt;/&lt;프로젝트 이름&gt;으로 생성됩니다.\n(포크하는 사용자는 포크 루트 아래에서 하위 프로젝트를 생성할 권한이 필요합니다),\n또는 &lt;계정 이름&gt;/&lt;프로젝트 이름&gt;으로 생성됩니다 (루트 프로젝트를 생성할 권한이 필요합니다).");
+ m.put("Workspaces on source branch", "소스 브랜치의 작업공간");
+ m.put("Workspaces on this issue", "이 이슈의 작업공간");
+ m.put("branch \"{0}\" is created", "브랜치 \"{0}\"가 생성되었습니다.");
+ m.put("branch is created", "브랜치가 생성되었습니다.");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_pt.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_pt.java
index 6ab03de7b4..70e0427f6c 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_pt.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_pt.java
@@ -190,7 +190,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Add Rule", "Adicionar Regra");
m.put("Add SSH key", "Adicionar chave SSH");
m.put("Add SSO provider", "Adicionar provedor SSO");
- m.put("Add Spec", "Adicionar Especificação");
m.put("Add Spent Time", "Adicionar Tempo Gasto");
m.put("Add Timesheet", "Adicionar Folha de Horas");
m.put("Add Widget", "Adicionar Widget");
@@ -233,7 +232,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Add new service locator", "Adicionar novo localizador de serviço");
m.put("Add new step", "Adicionar nova etapa");
m.put("Add new trigger", "Adicionar novo gatilho");
- m.put("Add new user config", "Adicionar nova configuração de usuário");
m.put("Add new user data", "Adicionar novos dados de usuário");
m.put("Add project", "Adicionar projeto");
m.put("Add reviewer...", "Adicionar revisor...");
@@ -452,11 +450,8 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Belonging Groups", "Grupos Pertencentes");
m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.",
"Abaixo estão alguns critérios comuns. Digite na caixa de pesquisa acima para visualizar a lista completa e combinações disponíveis.");
- m.put("Below content is restored from an unsaved change. <a class=\"clear-unsaved-change\">Clear</a> to discard",
- "O conteúdo abaixo foi restaurado de uma alteração não salva. <a class=\"clear-unsaved-change\">Limpar</a> para descartar");
m.put("Below content is restored from an unsaved change. <a class=\"discard-unsaved-change\">Discard</a>",
"O conteúdo abaixo foi restaurado de uma alteração não salva. <a class=\"discard-unsaved-change\">Descartar</a>");
- m.put("Below content is restored from an unsaved change. Clear to discard", "O conteúdo abaixo foi restaurado de uma alteração não salva. Limpar para descartar");
m.put("Below information will also be sent", "As informações abaixo também serão enviadas");
m.put("Binary file", "Arquivo binário");
m.put("Binary file.", "Arquivo binário.");
@@ -601,9 +596,17 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Can Be Used By Workspaces", "Pode Ser Usado Por Workspaces");
m.put("Can Create Root Projects", "Pode Criar Projetos Raiz");
m.put("Can Edit Estimated Time", "Pode Editar Tempo Estimado");
+ m.put("Can only compare with common ancestor when different projects are involved", "Só é possível comparar com o ancestral comum quando projetos diferentes estão envolvidos");
+ m.put("Cancel", "Cancelar");
+ m.put("Cancel All Queried Builds", "Cancelar Todos os Builds Consultados");
+ m.put("Cancel Selected Builds", "Cancelar Builds Selecionados");
+ m.put("Cancel invitation", "Cancelar convite");
+ m.put("Cancel request submitted", "Solicitação de cancelamento enviada");
+ m.put("Cancel this build", "Cancelar este build");
+ m.put("Cancelled", "Cancelado");
+ m.put("Cancelled By", "Cancelado Por");
m.put("Cannot convert root user to service account", "Não é possível converter o usuário root para conta de serviço");
m.put("Cannot convert yourself to service account", "Não é possível converter você mesmo para conta de serviço");
- m.put("Cannot delete branch \"{0}\" as there are workspaces on it", "Não é possível excluir o branch \"{0}\" pois há workspaces nele");
m.put("Cannot delete default branch", "Não é possível excluir a branch padrão");
m.put("Cannot delete root account", "Não é possível excluir a conta raiz");
m.put("Cannot delete yourself", "Não é possível excluir a si mesmo");
@@ -617,15 +620,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Cannot reset password for user authenticating via external system", "Não é possível redefinir a senha para usuário autenticando via sistema externo");
m.put("Cannot save malformed query", "Não é possível salvar consulta malformada");
m.put("Cannot use current or descendant project as parent", "Não é possível usar o projeto atual ou descendente como pai");
- m.put("Can only compare with common ancestor when different projects are involved", "Só é possível comparar com o ancestral comum quando projetos diferentes estão envolvidos");
- m.put("Cancel", "Cancelar");
- m.put("Cancel All Queried Builds", "Cancelar Todos os Builds Consultados");
- m.put("Cancel Selected Builds", "Cancelar Builds Selecionados");
- m.put("Cancel invitation", "Cancelar convite");
- m.put("Cancel request submitted", "Solicitação de cancelamento enviada");
- m.put("Cancel this build", "Cancelar este build");
- m.put("Cancelled", "Cancelado");
- m.put("Cancelled By", "Cancelado Por");
m.put("Case Sensitive", "Sensível a Maiúsculas e Minúsculas");
m.put("Certificates to Trust", "Certificados para Confiar");
m.put("Change", "Alterar");
@@ -669,7 +663,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Check Vulnerabilities", "Verificar Vulnerabilidades");
m.put("Check Workflow Integrity", "Verificar Integridade do Workflow");
m.put("Check out to local directory", "Verificar para diretório local");
- m.put("Check out to local workspace", "Fazer checkout para espaço de trabalho local");
m.put("Check this to compare right side with common ancestor of left and right", "Marque isto para comparar o lado direito com o ancestral comum do lado esquerdo e direito");
m.put("Check this to enforce two-factor authentication for all users in the system", "Marque isto para impor autenticação de dois fatores para todos os usuários no sistema");
m.put("Check this to enforce two-factor authentication for all users in this group", "Marque isto para impor autenticação de dois fatores para todos os usuários deste grupo");
@@ -1013,8 +1006,6 @@ public class Translation_pt extends TranslationResourceBundle {
"Defina regras de proteção de branch. Regras definidas no projeto pai são consideradas definidas após as regras definidas aqui. Para uma determinada branch e usuário, a primeira regra correspondente terá efeito");
m.put("Define default issue boards for all projects here. A certain project can override this setting to define its own issue boards.",
"Defina quadros de problemas padrão para todos os projetos aqui. Um determinado projeto pode substituir essa configuração para definir seus próprios quadros de problemas.");
- m.put("Define how issue states should be transited from one to another, either manually or automatically when some events happen. And the rule can be configured to apply to certain projects and issues via the applicable issues setting",
- "Defina como os estados de problemas devem ser transitados de um para outro, manualmente ou automaticamente quando alguns eventos ocorrerem. E a regra pode ser configurada para se aplicar a determinados projetos e problemas por meio da configuração de problemas aplicáveis");
m.put("Define issue templates here. When a new issue is created, the first matching template will be used.",
"Defina modelos de problemas aqui. Quando um novo problema é criado, o primeiro modelo correspondente será usado.");
m.put("Define labels to be assigned to project, build or pull request. For issues, custom fields can be used which is much more powerful than labels",
@@ -1061,7 +1052,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Delete this", "Excluir isto");
m.put("Delete this GPG key", "Excluir esta chave GPG");
m.put("Delete this access token", "Excluir este token de acesso");
- m.put("Delete this branch", "Excluir esta branch");
m.put("Delete this executor", "Excluir este executor");
m.put("Delete this field", "Excluir este campo");
m.put("Delete this import", "Excluir esta importação");
@@ -2249,7 +2239,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("New State", "Novo Estado");
m.put("New User Bean", "Bean de Usuário Novo");
m.put("New Value", "Novo Valor");
- m.put("New Workspace Spec", "Nova Especificação do Espaço de Trabalho");
m.put("New chat", "Novo chat");
m.put("New issue board created", "Novo quadro de issues criado");
m.put("New project created", "Novo projeto criado");
@@ -2378,7 +2367,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("No valid signature for head commit of target branch", "Nenhuma assinatura válida para o commit principal da branch de destino");
m.put("No value", "Nenhum valor");
m.put("No verified primary email address", "Nenhum endereço de email primário verificado");
- m.put("No workspace provisioners defined", "Nenhum provisionador de espaço de trabalho definido");
m.put("No workspaces", "Sem espaços de trabalho");
m.put("No workspaces to delete", "Sem espaços de trabalho para excluir");
m.put("Node Selector", "Seletor de Nó");
@@ -2552,7 +2540,6 @@ public class Translation_pt extends TranslationResourceBundle {
"Opcionalmente especifique um campo de data para armazenar informações de data de vencimento.<br><b>NOTA: </b> Você pode personalizar os campos de problemas do OneDev caso não haja uma opção apropriada aqui");
m.put("Optionally specify a path relative to <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> to put retrieved artifacts. Leave empty to use job working directory itself",
"Opcionalmente especifique um caminho relativo ao <a href='https://docs.onedev.io/concepts#job-workdir'>espaço de trabalho do trabalho</a> para colocar artefatos recuperados. Deixe vazio para usar o próprio espaço de trabalho do trabalho");
- m.put("Optionally specify a prefix to be prepended to generated branch name", "Opcionalmente, especifique um prefixo a ser adicionado ao nome de branch gerado");
m.put("Optionally specify a storage class to allocate build volume dynamically. Leave empty to use default storage class. <b class='text-warning'>NOTE:</b> Reclaim policy of the storage class should be set to <code>Delete</code>, as the volume is only used to hold temporary build files",
"Opcionalmente especifique uma classe de armazenamento para alocar dinamicamente o volume de construção. Deixe vazio para usar a classe de armazenamento padrão. <b class='text-warning'>NOTA:</b> A política de recuperação da classe de armazenamento deve ser configurada como <code>Delete</code>, pois o volume é usado apenas para armazenar arquivos temporários de construção");
m.put("Optionally specify a working period field to hold estimated time infomration.<br><b>NOTE: </b> You may customize OneDev issue fields in case there is no appropriate option here",
@@ -3092,12 +3079,13 @@ public class Translation_pt extends TranslationResourceBundle {
"Fazer pull da imagem docker como layout OCI via crane. Esta etapa precisa ser executada pelo executor docker do servidor, executor docker remoto ou executor Kubernetes");
m.put("Pull from Remote", "Pull do Remoto");
m.put("Pull request", "Solicitação de Pull");
- m.put("Pull request #{0} already closed", "Solicitação de Pull #{0} já fechada");
m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests",
"Permissão administrativa de solicitação de pull dentro de um projeto, incluindo operações em lote sobre múltiplas solicitações de pull");
m.put("Pull request already closed", "Solicitação de Pull já fechada");
m.put("Pull request already opened", "Solicitação de Pull já aberta");
m.put("Pull request and code review", "Solicitação de Pull e revisão de código");
+ m.put("Pull request can only be merged after getting approvals from all reviewers", "A solicitação de pull só pode ser mesclada após obter aprovações de todos os revisores");
+ m.put("Pull request can only be merged by users with code write permission", "A solicitação de pull só pode ser mesclada por usuários com permissão de escrita de código");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",
"A solicitação de pull não pode ser mesclada agora, pois <a class=\"more-info d-inline link-primary\">algumas builds necessárias</a> ainda não foram concluídas");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",
@@ -3106,10 +3094,7 @@ public class Translation_pt extends TranslationResourceBundle {
"A solicitação de pull não pode ser mesclada agora, pois está <a class=\"more-info d-inline link-primary\">pendente de revisão</a>");
m.put("Pull request cannot be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",
"A solicitação de pull não pode ser mesclada agora, pois foi <a class=\"more-info d-inline link-primary\">solicitada para alterações</a>");
- m.put("Pull request cannot be merged now as valid signature is required for head commit",
- "A solicitação de pull não pode ser mesclada agora, pois é necessária uma assinatura válida para o commit principal");
- m.put("Pull request can only be merged after getting approvals from all reviewers", "A solicitação de pull só pode ser mesclada após obter aprovações de todos os revisores");
- m.put("Pull request can only be merged by users with code write permission", "A solicitação de pull só pode ser mesclada por usuários com permissão de escrita de código");
+ m.put("Pull request cannot be merged now as valid signature is required for head commit", "A solicitação de pull não pode ser mesclada agora, pois é necessária uma assinatura válida para o commit principal");
m.put("Pull request discard", "Descartar solicitação de pull");
m.put("Pull request duration statistics", "Estatísticas de duração de pull request");
m.put("Pull request frequency statistics", "Estatísticas de frequência de pull request");
@@ -3258,7 +3243,7 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Request For Changes", "Solicitação de alterações");
m.put("Request Scopes", "Escopos de solicitação");
m.put("Request Trial Subscription", "Solicitar assinatura de teste");
- m.put("Request review", "Solicitar revisão");
+ m.put("Request review again", "Solicitar revisão novamente");
m.put("Request to sync", "Solicitar sincronização");
m.put("Requested For changes", "Alterações solicitadas");
m.put("Requested changes to pull request \"{0}\" ({1})", "Alterações solicitadas na solicitação de pull \"{0}\" ({1})");
@@ -3535,7 +3520,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Show Description", "Mostrar Descrição");
m.put("Show Duration", "Mostrar Duração");
m.put("Show Emojis", "Mostrar Emojis");
- m.put("Show Error Detail", "Mostrar Detalhe do Erro");
m.put("Show Issue Status", "Mostrar Status da Questão");
m.put("Show Package Stats", "Mostrar Estatísticas de Pacotes");
m.put("Show Pull Request Stats", "Mostrar Estatísticas de Solicitações de Pull");
@@ -4094,7 +4078,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("Symbol Name", "Nome do Símbolo");
m.put("Symbol name", "Nome do símbolo");
m.put("Symbols", "Símbolos");
- m.put("Sync", "Sincronizar");
m.put("Sync (pull & push)", "Sincronizar (pull & push)");
m.put("Sync Replica Status and Back to Home", "Sincronizar Status da Réplica e Voltar para a Página Inicial");
m.put("Sync Repository", "Sincronizar Repositório");
@@ -4186,7 +4169,6 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("There are merge conflicts.", "Existem conflitos de mesclagem.");
m.put("There are merge conflicts. You can still create the pull request though", "Existem conflitos de mesclagem. Você ainda pode criar a solicitação de pull, no entanto");
m.put("There are unsaved changes, discard and continue?", "Existem alterações não salvas, descartar e continuar?");
- m.put("There are workspaces on source branch", "Há espaços de trabalho no branch de origem");
m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",
"Esses autenticadores normalmente funcionam no seu celular, alguns exemplos são Google Authenticator, Microsoft Authenticator, Authy, 1Password, etc.");
m.put("This <span wicket:id=\"elementTypeName\"></span> is imported from <a wicket:id=\"link\" class=\"alert-link\"><span wicket:id=\"label\"></span></a>",
@@ -5042,7 +5024,38 @@ public class Translation_pt extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "{javax.validation.constraints.NotEmpty.message}");
m.put("{javax.validation.constraints.NotNull.message}", "{javax.validation.constraints.NotNull.message}");
m.put("{javax.validation.constraints.Size.message}", "{javax.validation.constraints.Size.message}");
- m.put("Request review again", "Solicitar revisão novamente");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level",
+ "<b>NOTA: </b> As regras de transição também podem ser configuradas e substituídas no nível do projeto");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level in enterprise edition",
+ "<b>NOTA: </b> As regras de transição também podem ser configuradas e substituídas no nível do projeto na edição empresarial");
+ m.put("Associated Branch", "Branch Associada");
+ m.put("Branch \"{0}\" already exists", "A branch \"{0}\" já existe");
+ m.put("Branch is created", "A branch foi criada");
+ m.put("Cannot delete branch as it has workspaces", "Não é possível excluir a branch pois ela possui workspaces");
+ m.put("Cannot delete source branch as it has workspaces", "Não é possível excluir a branch de origem pois ela possui workspaces");
+ m.put("Create a workspace spec running Cursor CLI directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "Crie uma especificação de workspace executando o Cursor CLI diretamente no ambiente shell do servidor.\nWorkspaces usando a especificação criada compartilharão os mesmos ambientes e configurações.\nPara usar este modelo, certifique-se de que:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> está instalado no servidor OneDev</li>\n <li>Um provisionador de shell foi adicionado em 'Administração / Provisionadores de Workspace' com 'projetos aplicáveis' configurados corretamente</li>\n</ul>");
+ m.put("Create a workspace spec running Cursor CLI inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>container image</a>\nlater to suit your needs if desired",
+ "Crie uma especificação de workspace executando o Cursor CLI dentro de um contêiner para fins de isolamento e segurança.\nVocê pode personalizar a <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>imagem do contêiner</a>\nposteriormente para atender às suas necessidades, se desejar");
+ m.put("Default Fork Root", "Raiz Padrão do Fork");
+ m.put("Default branch is not available", "A branch padrão não está disponível");
+ m.put("Define how issues may move from one state to another in this project. At evaluation time, rules from this project, each ancestor project up to the root, and the global rules are merged in that order; the first matching rule applies.",
+ "Defina como os problemas podem se mover de um estado para outro neste projeto. No momento da avaliação, as regras deste projeto, de cada projeto ancestral até a raiz, e as regras globais são mescladas nessa ordem; a primeira regra correspondente se aplica.");
+ m.put("Define how issues move between states: manually by users, or automatically in response to events. The first matching rule applies.",
+ "Defina como os problemas se movem entre estados: manualmente pelos usuários ou automaticamente em resposta a eventos. A primeira regra correspondente se aplica.");
+ m.put("Issue Branch Prefix", "Prefixo da Branch de Problema");
+ m.put("Issue branch prefix updated", "Prefixo da branch de problema atualizado");
+ m.put("No fork root", "Sem raiz de fork");
+ m.put("Optionally specify a prefix to be prepended (as a path segment) when generate issue branch.\nFor instance with prefix <code>feature</code>, generated issue branch will be\n<code>feature/issue-100-some-title</code>",
+ "Opcionalmente, especifique um prefixo a ser adicionado (como um segmento de caminho) ao gerar a branch de problema.\nPor exemplo, com o prefixo <code>feature</code>, a branch de problema gerada será\n<code>feature/issue-100-some-title</code>");
+ m.put("This setting is inherited from parent project when left empty. The first non-empty value found while walking up the project hierarchy will be used.",
+ "Esta configuração é herdada do projeto pai quando deixada em branco. O primeiro valor não vazio encontrado ao percorrer a hierarquia do projeto será usado.");
+ m.put("When forking from the UI, the default target project will be created as\n&lt;default fork root&gt;/&lt;account name&gt;/&lt;project name&gt; if specified\n(users forking need permission to create child projects under the fork\nroot), or &lt;account name&gt;/&lt;project name&gt; otherwise (need permission\nto create root projects)",
+ "Ao fazer fork pela interface, o projeto de destino padrão será criado como\n&lt;raiz padrão do fork&gt;/&lt;nome da conta&gt;/&lt;nome do projeto&gt; se especificado\n(os usuários que fazem fork precisam de permissão para criar projetos filhos sob a raiz do fork\n), ou &lt;nome da conta&gt;/&lt;nome do projeto&gt; caso contrário (necessitam de permissão\npara criar projetos raiz)");
+ m.put("Workspaces on source branch", "Workspaces na branch de origem");
+ m.put("Workspaces on this issue", "Workspaces neste problema");
+ m.put("branch \"{0}\" is created", "a branch \"{0}\" foi criada");
+ m.put("branch is created", "a branch foi criada");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh.java b/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh.java
index 1bc48776b2..bf0bd7570e 100644
--- a/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh.java
+++ b/server-core/src/main/java/io/onedev/server/web/translation/Translation_zh.java
@@ -102,6 +102,10 @@ public class Translation_zh extends TranslationResourceBundle {
"<b class='text-warning'>注意:</b><a href='https://docs.onedev.io/tutorials/issue/time-tracking' target='_blank'>时间跟踪</a>是企业版功能。<a href='https://onedev.io/pricing' target='_blank'>免费试用</a>30天");
m.put("<b>NOTE: </b> Service desk only takes effect if <a wicket:id=\"mailConnector\">mail service</a> is defined and its <tt>check incoming email</tt> option is enabled. Also <a href='https://en.wikipedia.org/wiki/Email_address#Subaddressing' target='_blank'>sub addressing</a> needs to be enabled for the system email address. Check <a href=\"https://medium.com/p/e56d62c27e57\" target='_blank'>this tutorial</a> for details",
"<b>注意:</b> 服务台仅在 <a wicket:id=\"mailConnector\">邮件服务</a> 定义且 <tt>检查收件邮箱</tt> 选项启用时生效。此外,系统邮箱地址需要启用 <a href='https://en.wikipedia.org/wiki/Email_address#Subaddressing' target='_blank'>子地址</a>。请查看 <a href=\"https://medium.com/p/e56d62c27e57\" target='_blank'>此教程</a> 获取详细信息");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level",
+ "<b>注意:</b>转换规则也可以在项目级别配置和覆盖");
+ m.put("<b>NOTE: </b> Transition rules can also be configured and overridden at project level in enterprise edition",
+ "<b>注意:</b>转换规则也可以在企业版中项目级别配置和覆盖");
m.put("<b>NOTE:</b> Batch editing issues will not cause state transitions of other issues even if transition rule matches",
"<b>注意:</b> 批量编辑工单不会导致其他工单的状态转换,即使匹配转换规则");
m.put("<b>Project Owner</b> is a built-in role with full permission over projects", "<b>项目所有者</b>是一个内置角色,拥有项目的所有权限");
@@ -216,7 +220,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Add Rule", "添加规则");
m.put("Add SSH key", "添加 SSH 密钥");
m.put("Add SSO provider", "添加 SSO 提供者");
- m.put("Add Spec", "添加规格");
m.put("Add Spent Time", "添加已用时间");
m.put("Add Timesheet", "新建时间表");
m.put("Add Widget", "添加小组件");
@@ -259,7 +262,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Add new service locator", "添加新的服务定位器");
m.put("Add new step", "添加新步骤");
m.put("Add new trigger", "添加新触发器");
- m.put("Add new user config", "添加新的用户配置");
m.put("Add new user data", "添加新的用户数据");
m.put("Add project", "添加项目");
m.put("Add reviewer...", "添加审查人员...");
@@ -391,6 +393,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Assignees are expected to merge the pull request", "合并请求的负责人应合并合并请求");
m.put("Assignees have code write permission and will be responsible for merging the pull request",
"分配人员具有代码写入权限,并负责合并合并请求");
+ m.put("Associated Branch", "关联分支");
m.put("Asymmetric", "非对称");
m.put("At least one branch or tag should be selected", "至少选择一个分支或标签");
m.put("At least one choice need to be specified", "至少需要指定一个选项");
@@ -478,11 +481,8 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Belonging Groups", "所属组");
m.put("Below are some common criterias. Type in search box above to view the complete list and available combinations.",
"以下是一些常见的条件。在搜索框中输入以查看完整列表和可用组合。");
- m.put("Below content is restored from an unsaved change. <a class=\"clear-unsaved-change\">Clear</a> to discard",
- "以下内容是从未保存的更改中恢复的。<a class=\"clear-unsaved-change\">清除</a>以丢弃");
m.put("Below content is restored from an unsaved change. <a class=\"discard-unsaved-change\">Discard</a>",
"以下内容是从未保存的更改中恢复的。<a class=\"discard-unsaved-change\">放弃</a>");
- m.put("Below content is restored from an unsaved change. Clear to discard", "以下内容从未保存的更改中恢复。清除以丢弃");
m.put("Below information will also be sent", "以下信息也将被发送");
m.put("Binary file", "二进制文件");
m.put("Binary file.", "二进制文件");
@@ -518,6 +518,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Both sides deleted this file", "双方都删除了此文件");
m.put("Bottom", "底部");
m.put("Branch", "分支");
+ m.put("Branch \"{0}\" already exists", "分支 \"{0}\" 已经存在");
m.put("Branch \"{0}\" already exists, please choose a different name", "分支 \"{0}\" 已存在,请选择不同的名称");
m.put("Branch \"{0}\" created", "分支 \"{0}\" 已创建");
m.put("Branch \"{0}\" deleted", "分支 \"{0}\" 已删除");
@@ -529,6 +530,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Branch Prefix", "分支前缀");
m.put("Branch Protection", "分支保护");
m.put("Branch Revision", "分支修订");
+ m.put("Branch is created", "分支已创建");
m.put("Branch update", "分支更新");
m.put("Branches", "分支");
m.put("Brand Setting Edit Bean", "品牌设置编辑Bean");
@@ -627,11 +629,21 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Can Be Used By Workspaces", "可用于工作区");
m.put("Can Create Root Projects", "可以创建根项目");
m.put("Can Edit Estimated Time", "可以编辑预估时间");
+ m.put("Can only compare with common ancestor when different projects are involved", "跨项目比较时只能使用共同祖先");
+ m.put("Cancel", "取消");
+ m.put("Cancel All Queried Builds", "取消所有查询的构建");
+ m.put("Cancel Selected Builds", "取消选定的构建");
+ m.put("Cancel invitation", "取消邀请");
+ m.put("Cancel request submitted", "取消请求已提交");
+ m.put("Cancel this build", "取消此构建");
+ m.put("Cancelled", "已取消");
+ m.put("Cancelled By", "已取消");
m.put("Cannot convert root user to service account", "无法将 root 用户转换为服务账户");
m.put("Cannot convert yourself to service account", "无法将自己转换为服务账户");
- m.put("Cannot delete branch \"{0}\" as there are workspaces on it", "无法删除分支 \"{0}\",因为上面有工作区");
+ m.put("Cannot delete branch as it has workspaces", "无法删除分支,因为它有工作区");
m.put("Cannot delete default branch", "不能删除默认分支");
m.put("Cannot delete root account", "不能删除根账户");
+ m.put("Cannot delete source branch as it has workspaces", "无法删除源分支,因为它有工作区");
m.put("Cannot delete yourself", "不能删除自己");
m.put("Cannot disable root account", "不能禁用根账户");
m.put("Cannot disable yourself", "不能禁用自己");
@@ -643,15 +655,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Cannot reset password for user authenticating via external system", "无法重置通过外部系统认证的用户密码");
m.put("Cannot save malformed query", "无法保存格式错误的查询");
m.put("Cannot use current or descendant project as parent", "不能使用当前或子项目作为父项目");
- m.put("Can only compare with common ancestor when different projects are involved", "跨项目比较时只能使用共同祖先");
- m.put("Cancel", "取消");
- m.put("Cancel All Queried Builds", "取消所有查询的构建");
- m.put("Cancel Selected Builds", "取消选定的构建");
- m.put("Cancel invitation", "取消邀请");
- m.put("Cancel request submitted", "取消请求已提交");
- m.put("Cancel this build", "取消此构建");
- m.put("Cancelled", "已取消");
- m.put("Cancelled By", "已取消");
m.put("Case Sensitive", "区分大小写");
m.put("Certificates to Trust", "信任的证书");
m.put("Change", "更改");
@@ -695,7 +698,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Check Vulnerabilities", "检查漏洞");
m.put("Check Workflow Integrity", "检查工作流完整性");
m.put("Check out to local directory", "检出到本地目录");
- m.put("Check out to local workspace", "Checkout 到本地");
m.put("Check this to compare right side with common ancestor of left and right", "勾选此项以将右侧与左右两侧的共同祖先进行比较");
m.put("Check this to enforce two-factor authentication for all users in the system", "勾选此项以强制系统中所有用户启用两阶段身份验证");
m.put("Check this to enforce two-factor authentication for all users in this group", "勾选此项以强制本组所有用户启用两阶段身份验证");
@@ -956,6 +958,10 @@ public class Translation_zh extends TranslationResourceBundle {
"创建一个直接在服务器 shell 环境中运行 Codex 的工作区规范。\n使用创建的规范的工作区将共享相同的环境和设置。\n要使用此模板,请确保:\n<ul>\n <li><a href='https://openai.com/codex/' target='_blank'>Codex</a> 已安装在 OneDev 服务器上</li>\n <li>在 'Administration / Workspace Provisioners' 中添加了 shell 配置器,并正确配置了 'applicable projects'</li>\n</ul>");
m.put("Create a workspace spec running Codex inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>container image</a>\nlater to suit your needs if desired",
"创建一个在容器中运行 Codex 的工作区规范,以实现隔离和安全目的。\n如果需要,您可以稍后自定义<a href='https://code.onedev.io/onedev/docker/codex' target='_blank'>容器镜像</a>\n以满足您的需求");
+ m.put("Create a workspace spec running Cursor CLI directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
+ "创建一个直接运行 Cursor CLI 的工作区规范,使用服务器 shell 环境。\n使用创建的规范的工作区将共享相同的环境和设置。\n要使用此模板,请确保:\n<ul>\n <li><a href='https://cursor.com/docs/cli/overview' target='_blank'>Cursor CLI</a> 已安装在 OneDev 服务器上</li>\n <li>在 '管理 / 工作区配置器' 中添加了一个 shell 配置器,并正确配置了 '适用项目'</li>\n</ul>");
+ m.put("Create a workspace spec running Cursor CLI inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>container image</a>\nlater to suit your needs if desired",
+ "创建一个在容器内运行 Cursor CLI 的工作区规范,以实现隔离和安全目的。\n您可以稍后自定义<a href='https://code.onedev.io/onedev/docker/cursor' target='_blank'>容器镜像</a>\n以满足您的需求");
m.put("Create a workspace spec running Open Code directly with server shell environment.\nWorkspaces using created spec will share same environments and settings.\nTo use this template, please ensure that:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> is installed on OneDev server</li>\n <li>A shell provisioner is added in 'Administration / Workspace Provisioners' with 'applicable projects' configured properly</li>\n</ul>",
"创建一个直接在服务器 shell 环境中运行 Open Code 的工作区规范。\n使用创建的规范的工作区将共享相同的环境和设置。\n要使用此模板,请确保:\n<ul>\n <li><a href='https://opencode.ai/' target='_blank'>Open Code</a> 已安装在 OneDev 服务器上</li>\n <li>在 'Administration / Workspace Provisioners' 中添加了 shell 配置器,并正确配置了 'applicable projects'</li>\n</ul>");
m.put("Create a workspace spec running Open Code inside container for isolation and security purpose.\nYou may customize the <a href='https://code.onedev.io/onedev/docker/opencode' target='_blank'>container image</a>\nlater to suit your needs if desired",
@@ -1014,6 +1020,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Default Fixed Issue Filter", "默认修复工单过滤器");
m.put("Default Fixed Issue Filters", "默认修复工单过滤器");
m.put("Default Fixed Issue Filters Bean", "默认修复工单过滤器 Bean");
+ m.put("Default Fork Root", "默认分叉根");
m.put("Default Group", "默认分组");
m.put("Default Issue Boards", "默认工单看板");
m.put("Default Merge Strategy", "默认合并策略");
@@ -1026,6 +1033,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Default Value Provider", "默认值提供器");
m.put("Default Values", "默认值");
m.put("Default branch", "默认分支");
+ m.put("Default branch is not available", "默认分支不可用");
m.put("Default branding settings restored", "已恢复默认品牌设置");
m.put("Default fixed issue filters saved", "默认固定工单过滤器已保存");
m.put("Default merge strategy", "默认合并策略");
@@ -1039,8 +1047,10 @@ public class Translation_zh extends TranslationResourceBundle {
"定义分支保护规则。父项目中定义的规则被视为在此处定义的规则之后定义的规则。对于给定的分支和用户,第一个匹配的规则将生效");
m.put("Define default issue boards for all projects here. A certain project can override this setting to define its own issue boards.",
"在此定义所有项目的默认工单看板。特定项目可以覆盖此设置以定义其自己的工单看板。");
- m.put("Define how issue states should be transited from one to another, either manually or automatically when some events happen. And the rule can be configured to apply to certain projects and issues via the applicable issues setting",
- "定义工单状态如何从一个状态转换到另一个状态,无论是手动还是自动当某些事件发生时。规则可以通过应用工单设置配置为应用于某些项目和工单");
+ m.put("Define how issues may move from one state to another in this project. At evaluation time, rules from this project, each ancestor project up to the root, and the global rules are merged in that order; the first matching rule applies.",
+ "定义在此项目中工单如何从一个状态移动到另一个状态。在评估时,将按顺序合并此项目、每个祖先项目直到根项目以及全局规则的规则;第一个匹配的规则适用。");
+ m.put("Define how issues move between states: manually by users, or automatically in response to events. The first matching rule applies.",
+ "定义工单在状态之间的移动方式:由用户手动操作,或响应事件自动操作。第一个匹配的规则适用。");
m.put("Define issue templates here. When a new issue is created, the first matching template will be used.",
"在此定义工单模板。当创建新工单时,将使用第一个匹配的模板");
m.put("Define labels to be assigned to project, build or pull request. For issues, custom fields can be used which is much more powerful than labels",
@@ -1087,7 +1097,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Delete this", "删除");
m.put("Delete this GPG key", "删除此 GPG 密钥");
m.put("Delete this access token", "删除此访问令牌");
- m.put("Delete this branch", "删除此分支");
m.put("Delete this executor", "删除此执行器");
m.put("Delete this field", "删除该字段");
m.put("Delete this import", "删除此导入");
@@ -1858,6 +1867,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Issue", "工单");
m.put("Issue Board", "看板");
m.put("Issue Boards", "工单看板");
+ m.put("Issue Branch Prefix", "工单分支前缀");
m.put("Issue Close States", "工单关闭状态");
m.put("Issue Creation Setting", "工单创建设置");
m.put("Issue Creation Settings", "工单创建设置");
@@ -1909,6 +1919,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Issue Votes", "工单投票");
m.put("Issue administrative permission inside a project, including batch operations over multiple issues",
"工单管理权限,包括对多个工单的批量操作");
+ m.put("Issue branch prefix updated", "工单分支前缀已更新");
m.put("Issue count", "工单数量");
m.put("Issue in state", "工单状态");
m.put("Issue list", "工单列表");
@@ -2275,7 +2286,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("New State", "新状态");
m.put("New User Bean", "新用户Bean");
m.put("New Value", "新值");
- m.put("New Workspace Spec", "新工作区规范");
m.put("New chat", "新聊天");
m.put("New issue board created", "新建工单看板");
m.put("New project created", "新项目已创建");
@@ -2343,6 +2353,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("No fields to prompt", "无要提示的字段");
m.put("No fields to remove", "无要删除的字段");
m.put("No file attachments", "没有文件附件");
+ m.put("No fork root", "没有分叉根");
m.put("No group by", "无分组");
m.put("No groups claim returned", "没有返回组声明");
m.put("No groups to remove from", "没有可移除的组");
@@ -2404,7 +2415,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("No valid signature for head commit of target branch", "目标分支的最新提交没有有效签名");
m.put("No value", "未指定值");
m.put("No verified primary email address", "没有验证的主电子邮件地址");
- m.put("No workspace provisioners defined", "未定义工作区配置器");
m.put("No workspaces", "没有工作区");
m.put("No workspaces to delete", "没有要删除的工作区");
m.put("Node Selector", "节点选择器");
@@ -2578,7 +2588,8 @@ public class Translation_zh extends TranslationResourceBundle {
"可选择指定一个日期字段来保存截止日期信息。<br><b>注意:</b>如果这里没有合适的选项,您可以自定义 OneDev 工单字段");
m.put("Optionally specify a path relative to <a href='https://docs.onedev.io/concepts#job-workdir'>job working directory</a> to put retrieved artifacts. Leave empty to use job working directory itself",
"可选择指定相对于 <a href='https://docs.onedev.io/concepts#job-workdir'>任务工作区</a> 的路径来放置获取的制品。留空则使用任务工作区本身");
- m.put("Optionally specify a prefix to be prepended to generated branch name", "可选地指定一个前缀以添加到生成的分支名称前");
+ m.put("Optionally specify a prefix to be prepended (as a path segment) when generate issue branch.\nFor instance with prefix <code>feature</code>, generated issue branch will be\n<code>feature/issue-100-some-title</code>",
+ "可选地指定一个前缀,在生成工单分支时作为路径段添加。\n例如,使用前缀 <code>feature</code>,生成的工单分支将是\n<code>feature/issue-100-some-title</code>");
m.put("Optionally specify a storage class to allocate build volume dynamically. Leave empty to use default storage class. <b class='text-warning'>NOTE:</b> Reclaim policy of the storage class should be set to <code>Delete</code>, as the volume is only used to hold temporary build files",
"可选择指定一个存储类来动态分配构建卷。留空则使用默认存储类。<b class='text-warning'>注意:</b>存储类的回收策略应设置为 <code>Delete</code>,因为该卷仅用于保存临时构建文件");
m.put("Optionally specify a working period field to hold estimated time infomration.<br><b>NOTE: </b> You may customize OneDev issue fields in case there is no appropriate option here",
@@ -3118,12 +3129,13 @@ public class Translation_zh extends TranslationResourceBundle {
"此步骤需要由服务器 docker 执行器、远程 docker 执行器或 Kubernetes 执行器执行");
m.put("Pull from Remote", "从远程拉取");
m.put("Pull request", "合并请求");
- m.put("Pull request #{0} already closed", "合并请求 #{0} 已关闭");
m.put("Pull request administrative permission inside a project, including batch operations over multiple pull requests",
"在项目中对多个合并请求进行批量操作的权限");
m.put("Pull request already closed", "合并请求已关闭");
m.put("Pull request already opened", "合并请求已打开");
m.put("Pull request and code review", "合并请求和代码评审");
+ m.put("Pull request can only be merged after getting approvals from all reviewers", "合并请求只能在获得所有审查人员的批准后合并");
+ m.put("Pull request can only be merged by users with code write permission", "合并请求只能由具有代码写入权限的用户合并");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not finished yet",
"合并请求现在无法合并,因为<a class=\"more-info d-inline link-primary\">一些必需的构建</a>尚未完成");
m.put("Pull request cannot be merged now as <a class=\"more-info d-inline link-primary\">some required builds</a> are not successful",
@@ -3132,10 +3144,7 @@ public class Translation_zh extends TranslationResourceBundle {
"合并请求现在无法合并,因为它正<a class=\"more-info d-inline link-primary\">等待审查</a>");
m.put("Pull request cannot be merged now as it was <a class=\"more-info d-inline link-primary\">requested for changes</a>",
"合并请求现在无法合并,因为它<a class=\"more-info d-inline link-primary\">请求了更改</a>");
- m.put("Pull request cannot be merged now as valid signature is required for head commit",
- "合并请求现在无法合并,因为头部提交需要有效的签名");
- m.put("Pull request can only be merged after getting approvals from all reviewers", "合并请求只能在获得所有审查人员的批准后合并");
- m.put("Pull request can only be merged by users with code write permission", "合并请求只能由具有代码写入权限的用户合并");
+ m.put("Pull request cannot be merged now as valid signature is required for head commit", "合并请求现在无法合并,因为头部提交需要有效的签名");
m.put("Pull request discard", "合并请求丢弃");
m.put("Pull request duration statistics", "合并请求持续时间统计");
m.put("Pull request frequency statistics", "合并请求频率统计");
@@ -3284,7 +3293,7 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Request For Changes", "请求更改");
m.put("Request Scopes", "请求范围");
m.put("Request Trial Subscription", "申请试用订阅");
- m.put("Request review", "请求审查");
+ m.put("Request review again", "再次请求审核");
m.put("Request to sync", "请求同步");
m.put("Requested For changes", "请求修改");
m.put("Requested changes to pull request \"{0}\" ({1})", "请求更改合并请求 \"{0}\"({1})");
@@ -3561,7 +3570,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Show Description", "显示描述");
m.put("Show Duration", "显示持续时间");
m.put("Show Emojis", "显示表情符号");
- m.put("Show Error Detail", "显示错误详情");
m.put("Show Issue Status", "显示问题状态");
m.put("Show Package Stats", "显示包统计");
m.put("Show Pull Request Stats", "显示合并请求统计");
@@ -4120,7 +4128,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Symbol Name", "符号名");
m.put("Symbol name", "符号名称");
m.put("Symbols", "符号");
- m.put("Sync", "同步");
m.put("Sync (pull & push)", "同步 (pull & push)");
m.put("Sync Replica Status and Back to Home", "同步副本状态并返回主页");
m.put("Sync Repository", "同步仓库");
@@ -4212,7 +4219,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("There are merge conflicts.", "有合并冲突。");
m.put("There are merge conflicts. You can still create the pull request though", "有合并冲突。您仍然可以创建合并请求");
m.put("There are unsaved changes, discard and continue?", "有未保存的更改,是否丢弃并继续?");
- m.put("There are workspaces on source branch", "源分支上有工作区");
m.put("These authenticators normally run on your mobile phone, some examples are Google Authenticator, Microsoft Authenticator, Authy, 1Password etc.",
"这些认证器通常在您的手机上运行,例如 Google Authenticator、Microsoft Authenticator、Authy、1Password 等");
m.put("This <span wicket:id=\"elementTypeName\"></span> is imported from <a wicket:id=\"link\" class=\"alert-link\"><span wicket:id=\"label\"></span></a>",
@@ -4306,6 +4312,8 @@ public class Translation_zh extends TranslationResourceBundle {
"如果构建由合并请求触发,此报告将显示在合并请求概览页面中");
m.put("This server is currently accessed via http protocol, please configure your docker daemon or buildx builder to <a href=\"https://docs.onedev.io/tutorials/cicd/insecure-docker-registry\" target=\"_blank\">work with insecure registry</a>",
"当前服务器通过 http 协议访问,请配置您的 docker 守护进程或 buildx 构建器以 <a href=\"https://docs.onedev.io/tutorials/cicd/insecure-docker-registry\" target=\"_blank\">发布镜像到不安全注册表</a>");
+ m.put("This setting is inherited from parent project when left empty. The first non-empty value found while walking up the project hierarchy will be used.",
+ "当此设置为空时,将从父项目继承。沿着项目层级向上查找时,第一个非空值将被使用。");
m.put("This shows average duration of different states over time", "显示不同状态的平均持续时间");
m.put("This shows average duration of merged pull requests over time", "此图表显示合并请求的平均持续时间");
m.put("This shows number of <b>new</b> issues in different states over time", "显示不同状态的新工单数量");
@@ -4676,6 +4684,8 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("When determine if the user is author/committer of a git commit, all emails listed here will be checked",
"确定用户是否是 git 提交的作者/提交者时,将检查此处列出的所有电子邮件");
m.put("When evaluating this template, below variables will be available:", "使用此模板时,以下变量将可用:");
+ m.put("When forking from the UI, the default target project will be created as\n&lt;default fork root&gt;/&lt;account name&gt;/&lt;project name&gt; if specified\n(users forking need permission to create child projects under the fork\nroot), or &lt;account name&gt;/&lt;project name&gt; otherwise (need permission\nto create root projects)",
+ "当从 UI 分叉时,如果指定了默认目标项目,将创建为\n&lt;默认分叉根&gt;/&lt;账户名&gt;/&lt;项目名&gt;\n(分叉的用户需要在分叉根下创建子项目的权限),否则将创建为 &lt;账户名&gt;/&lt;项目名&gt;(需要创建根项目的权限)");
m.put("When login via OneDev's built-in form, submitted user credentials can be checked against authenticator defined here, besides the internal database",
"通过 OneDev 的内置表单登录时,提交的用户凭据可以在此处定义的认证器以及内部数据库中进行检查");
m.put("When target branch of a pull request has new commits, merge commit of the pull request will be recalculated, and this option tells whether or not to accept pull request builds ran on previous merged commit. If enabled, you will need to re-run required builds on the new merge commit. This setting takes effect only when required builds are specified",
@@ -4785,7 +4795,9 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("Workspaces", "工作区");
m.put("Workspaces created by this provisioner have same privilege as OneDev server process.\nUse '**', '*' or '?' for <a href='https://docs.onedev.io/appendix/path-wildcard' target='_blank'>path wildcard match</a>.\nMultiple projects should be separated by space.<br>\n<b class='text-danger'>WARNING</b>: Workspaces created by this provisioner have same privilege as OneDev server process.\nPlease make sure that only trusted projects can use this provisioner",
"此配置器创建的工作区具有与 OneDev 服务器进程相同的权限。\n使用 '**'、'*' 或 '?' 进行<a href='https://docs.onedev.io/appendix/path-wildcard' target='_blank'>路径通配符匹配</a>。\n多个项目应以空格分隔。<br>\n<b class='text-danger'>警告</b>:此配置器创建的工作区具有与 OneDev 服务器进程相同的权限。\n请确保只有受信任的项目可以使用此配置器");
+ m.put("Workspaces on source branch", "源分支上的工作区");
m.put("Workspaces on this branch", "此分支上的工作区");
+ m.put("Workspaces on this issue", "此工单上的工作区");
m.put("Write", "写入");
m.put("YAML", "YAML");
m.put("Yes", "是");
@@ -4837,6 +4849,8 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("backlog ", "待办");
m.put("base", "基准");
m.put("before specified date", "在指定日期之前");
+ m.put("branch \"{0}\" is created", "分支 \"{0}\" 已创建");
+ m.put("branch is created", "分支已创建");
m.put("branch the build commit is merged into", "构建提交合并到的分支");
m.put("branch the job is running against", "任务运行的分支");
m.put("branch {0}", "分支 {0}");
@@ -5068,7 +5082,6 @@ public class Translation_zh extends TranslationResourceBundle {
m.put("{javax.validation.constraints.NotEmpty.message}", "不能为空");
m.put("{javax.validation.constraints.NotNull.message}", "不能为空");
m.put("{javax.validation.constraints.Size.message}", "至少需要指定一个值");
- m.put("Request review again", "再次请求审核");
}
@Override
diff --git a/server-core/src/main/java/io/onedev/server/workspace/DefaultWorkspaceService.java b/server-core/src/main/java/io/onedev/server/workspace/DefaultWorkspaceService.java
index 42c1b6d8a7..384a801887 100644
--- a/server-core/src/main/java/io/onedev/server/workspace/DefaultWorkspaceService.java
+++ b/server-core/src/main/java/io/onedev/server/workspace/DefaultWorkspaceService.java
@@ -1065,7 +1065,7 @@ public class DefaultWorkspaceService extends BaseEntityService<Workspace>
private static class ReplayBuffer {
- private static final int MAX_TOTAL_CHARS = 64 * 1024;
+ private static final int MAX_TOTAL_CHARS = 16 * 1024;
private final ArrayDeque<String> chunks = new ArrayDeque<>();