Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e1fcdb108 |
@@ -199,3 +199,4 @@ When contributing:
|
|||||||
1. The version will automatically increment on builds
|
1. The version will automatically increment on builds
|
||||||
2. For major features, consider manually creating minor version tags
|
2. For major features, consider manually creating minor version tags
|
||||||
3. Generated version files (`src/version.*`, `VERSION`) should not be committed
|
3. Generated version files (`src/version.*`, `VERSION`) should not be committed
|
||||||
|
# Test change
|
||||||
|
|||||||
16
build.sh
16
build.sh
@@ -57,8 +57,20 @@ increment_version() {
|
|||||||
print_warning "Failed to stage changes (maybe not a git repository)"
|
print_warning "Failed to stage changes (maybe not a git repository)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Commit changes with version message
|
# Prompt for commit message
|
||||||
if git commit -m "Version $NEW_VERSION - Automatic version increment" 2>/dev/null; then
|
echo ""
|
||||||
|
print_status "Please enter a meaningful commit message for version $NEW_VERSION:"
|
||||||
|
echo -n "> "
|
||||||
|
read -r COMMIT_MESSAGE
|
||||||
|
|
||||||
|
# Check if user provided a message
|
||||||
|
if [[ -z "$COMMIT_MESSAGE" ]]; then
|
||||||
|
print_warning "No commit message provided. Using default message."
|
||||||
|
COMMIT_MESSAGE="Version $NEW_VERSION - Automatic version increment"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Commit changes with user-provided message
|
||||||
|
if git commit -m "Version $NEW_VERSION - $COMMIT_MESSAGE" 2>/dev/null; then
|
||||||
print_success "Committed changes for version $NEW_VERSION"
|
print_success "Committed changes for version $NEW_VERSION"
|
||||||
else
|
else
|
||||||
print_warning "Failed to commit changes (maybe no changes to commit or not a git repository)"
|
print_warning "Failed to commit changes (maybe no changes to commit or not a git repository)"
|
||||||
|
|||||||
Reference in New Issue
Block a user