Clarify labels of mode and action

This commit is contained in:
Huy Z 2025-06-22 18:56:16 +07:00 committed by GitHub
parent e15b805427
commit 37bc9b3dad
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 5 deletions

View file

@ -71,8 +71,8 @@ public class CommitPrefixerConfigurable implements Configurable {
formatHelp.setForeground(JBColor.GRAY); formatHelp.setForeground(JBColor.GRAY);
JBLabel prefixingHelp = new JBLabel("<html>Select how the prefix should be added to commit messages:<br>" + JBLabel prefixingHelp = new JBLabel("<html>Select how the prefix should be added to commit messages:<br>" +
"<b>Pre-fill in commit dialog</b>: You need to click the 'Add Prefix' button in the commit dialog.<br>" + "<b>Manual</b>: You manually click the 'Add Prefix' button in the commit tool window.<br>" +
"<b>Before commit</b>: The prefix will be added automatically before commit.</html>"); "<b>Automatic</b>: The prefix is added automatically after you click Commit.</html>");
prefixingHelp.setForeground(JBColor.GRAY); prefixingHelp.setForeground(JBColor.GRAY);
// Build the form // Build the form

View file

@ -31,8 +31,8 @@ public class CommitPrefixerSettings implements PersistentStateComponent<CommitPr
// Enum for prefixing modes // Enum for prefixing modes
public enum PrefixingMode { public enum PrefixingMode {
MANUAL("Pre-fill in commit dialog"), MANUAL("Manual"),
AUTOMATIC("Before commit"); AUTOMATIC("Automatic");
private final String displayName; private final String displayName;

View file

@ -45,7 +45,7 @@
<!-- Add the commit prefix action to the VCS menu --> <!-- Add the commit prefix action to the VCS menu -->
<action id="org.cobalyte.AddCommitPrefixAction" <action id="org.cobalyte.AddCommitPrefixAction"
class="org.cobalyte.AddCommitPrefixAction" class="org.cobalyte.AddCommitPrefixAction"
text="Add Prefix" text="Add Prefix to Commit Message"
description="Add a prefix to the commit message based on the current branch name"> description="Add a prefix to the commit message based on the current branch name">
<add-to-group group-id="Vcs.MessageActionGroup" anchor="first"/> <add-to-group group-id="Vcs.MessageActionGroup" anchor="first"/>
</action> </action>