mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-155327 Improvement to automated Branch Name in the Open Task dialog
added taskType placeholder
This commit is contained in:
+3
-1
@@ -13,7 +13,7 @@ public class DefaultCommitPlaceholderProvider implements CommitPlaceholderProvid
|
||||
@NotNull
|
||||
@Override
|
||||
public String[] getPlaceholders(TaskRepository repository) {
|
||||
return new String[] { "id", "number", "summary", "project"};
|
||||
return new String[] { "id", "number", "summary", "project", "taskType"};
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@@ -27,6 +27,8 @@ public class DefaultCommitPlaceholderProvider implements CommitPlaceholderProvid
|
||||
return task.getSummary();
|
||||
if ("project".equals(placeholder))
|
||||
return StringUtil.notNullize(task.getProject());
|
||||
if ("taskType".equals(placeholder))
|
||||
return task.getType().name();
|
||||
throw new IllegalArgumentException(placeholder);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user