com.amashchenko.maven.plugin.gitflow.CommitMessages Maven / Gradle / Ivy
/*
* Copyright 2014-2019 Aleksandr Mashchenko.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.amashchenko.maven.plugin.gitflow;
/**
* Git commit messages.
*
*/
public class CommitMessages {
private String featureStartMessage;
private String featureFinishMessage;
private String hotfixStartMessage;
private String hotfixFinishMessage;
private String hotfixVersionUpdateMessage;
private String releaseStartMessage;
private String releaseFinishMessage;
private String releaseVersionUpdateMessage;
private String releaseFinishMergeMessage;
private String tagHotfixMessage;
private String tagReleaseMessage;
private String updateDevToAvoidConflictsMessage;
private String updateDevBackPreMergeStateMessage;
private String updateReleaseToAvoidConflictsMessage;
private String updateReleaseBackPreMergeStateMessage;
public CommitMessages() {
featureStartMessage = "Update versions for feature branch";
featureFinishMessage = "Update versions for development branch";
hotfixStartMessage = "Update versions for hotfix";
hotfixFinishMessage = "Update for next development version";
hotfixVersionUpdateMessage = "Update to hotfix version";
releaseStartMessage = "Update versions for release";
releaseFinishMessage = "Update for next development version";
releaseVersionUpdateMessage = "Update for next development version";
releaseFinishMergeMessage = "";
tagHotfixMessage = "Tag hotfix";
tagReleaseMessage = "Tag release";
updateDevToAvoidConflictsMessage = "Update develop to production version to avoid merge conflicts";
updateDevBackPreMergeStateMessage = "Update develop version back to pre-merge state";
updateReleaseToAvoidConflictsMessage = "Update release to hotfix version to avoid merge conflicts";
updateReleaseBackPreMergeStateMessage = "Update release version back to pre-merge state";
}
/**
* @return the featureStartMessage
*/
public String getFeatureStartMessage() {
return featureStartMessage;
}
/**
* @param featureStartMessage
* the featureStartMessage to set
*/
public void setFeatureStartMessage(String featureStartMessage) {
this.featureStartMessage = featureStartMessage;
}
/**
* @return the featureFinishMessage
*/
public String getFeatureFinishMessage() {
return featureFinishMessage;
}
/**
* @param featureFinishMessage
* the featureFinishMessage to set
*/
public void setFeatureFinishMessage(String featureFinishMessage) {
this.featureFinishMessage = featureFinishMessage;
}
/**
* @return the hotfixStartMessage
*/
public String getHotfixStartMessage() {
return hotfixStartMessage;
}
/**
* @param hotfixStartMessage
* the hotfixStartMessage to set
*/
public void setHotfixStartMessage(String hotfixStartMessage) {
this.hotfixStartMessage = hotfixStartMessage;
}
/**
* @return the hotfixFinishMessage
*/
public String getHotfixFinishMessage() {
return hotfixFinishMessage;
}
/**
* @param hotfixFinishMessage
* the hotfixFinishMessage to set
*/
public void setHotfixFinishMessage(String hotfixFinishMessage) {
this.hotfixFinishMessage = hotfixFinishMessage;
}
public String getHotfixVersionUpdateMessage() {
return hotfixVersionUpdateMessage;
}
public void setHotfixVersionUpdateMessage(String hotfixVersionUpdateMessage) {
this.hotfixVersionUpdateMessage = hotfixVersionUpdateMessage;
}
/**
* @return the releaseStartMessage
*/
public String getReleaseStartMessage() {
return releaseStartMessage;
}
/**
* @param releaseStartMessage
* the releaseStartMessage to set
*/
public void setReleaseStartMessage(String releaseStartMessage) {
this.releaseStartMessage = releaseStartMessage;
}
/**
* @return the releaseFinishMessage
*/
public String getReleaseFinishMessage() {
return releaseFinishMessage;
}
/**
* @param releaseFinishMessage
* the releaseFinishMessage to set
*/
public void setReleaseFinishMessage(String releaseFinishMessage) {
this.releaseFinishMessage = releaseFinishMessage;
}
public String getReleaseVersionUpdateMessage() {
return releaseVersionUpdateMessage;
}
public void setReleaseVersionUpdateMessage(String releaseVersionUpdateMessage) {
this.releaseVersionUpdateMessage = releaseVersionUpdateMessage;
}
/**
* @return the releaseFinishMergeMessage
*/
public String getReleaseFinishMergeMessage() {
return releaseFinishMergeMessage;
}
/**
* @param releaseFinishMergeMessage
* the releaseFinishMergeMessage to set
*/
public void setReleaseFinishMergeMessage(String releaseFinishMergeMessage) {
this.releaseFinishMergeMessage = releaseFinishMergeMessage;
}
/**
* @return the tagHotfixMessage
*/
public String getTagHotfixMessage() {
return tagHotfixMessage;
}
/**
* @param tagHotfixMessage
* the tagHotfixMessage to set
*/
public void setTagHotfixMessage(String tagHotfixMessage) {
this.tagHotfixMessage = tagHotfixMessage;
}
/**
* @return the tagReleaseMessage
*/
public String getTagReleaseMessage() {
return tagReleaseMessage;
}
/**
* @param tagReleaseMessage
* the tagReleaseMessage to set
*/
public void setTagReleaseMessage(String tagReleaseMessage) {
this.tagReleaseMessage = tagReleaseMessage;
}
/**
* @return the updateDevToAvoidConflictsMessage
*/
public String getUpdateDevToAvoidConflictsMessage() {
return updateDevToAvoidConflictsMessage;
}
/**
* @param updateDevToAvoidConflictsMessage
* the updateDevToAvoidConflictsMessage to set
*/
public void setUpdateDevToAvoidConflictsMessage(String updateDevToAvoidConflictsMessage) {
this.updateDevToAvoidConflictsMessage = updateDevToAvoidConflictsMessage;
}
/**
* @param updateDevToAvoidConflitsMessage
* the updateDevToAvoidConflitsMessage to set
* @deprecated Use the correctly spelt updateDevToAvoidConflictsMessage instead
*/
@Deprecated
public void setUpdateDevToAvoidConflitsMessage(String updateDevToAvoidConflitsMessage) {
this.updateDevToAvoidConflictsMessage = updateDevToAvoidConflitsMessage;
}
/**
* @return the updateDevBackPreMergeStateMessage
*/
public String getUpdateDevBackPreMergeStateMessage() {
return updateDevBackPreMergeStateMessage;
}
/**
* @param updateDevBackPreMergeStateMessage
* the updateDevBackPreMergeStateMessage to set
*/
public void setUpdateDevBackPreMergeStateMessage(String updateDevBackPreMergeStateMessage) {
this.updateDevBackPreMergeStateMessage = updateDevBackPreMergeStateMessage;
}
/**
* @return the updateReleaseToAvoidConflictsMessage
*/
public String getUpdateReleaseToAvoidConflictsMessage() {
return updateReleaseToAvoidConflictsMessage;
}
/**
* @param updateReleaseToAvoidConflictsMessage the updateReleaseToAvoidConflictsMessage to set
*/
public void setUpdateReleaseToAvoidConflictsMessage(String updateReleaseToAvoidConflictsMessage) {
this.updateReleaseToAvoidConflictsMessage = updateReleaseToAvoidConflictsMessage;
}
/**
* @return the updateReleaseBackPreMergeStateMessage
*/
public String getUpdateReleaseBackPreMergeStateMessage() {
return updateReleaseBackPreMergeStateMessage;
}
/**
* @param updateReleaseBackPreMergeStateMessage the updateReleaseBackPreMergeStateMessage to set
*/
public void setUpdateReleaseBackPreMergeStateMessage(String updateReleaseBackPreMergeStateMessage) {
this.updateReleaseBackPreMergeStateMessage = updateReleaseBackPreMergeStateMessage;
}
}