GH-942 - Add keyword to commit message to automatically close ticket in backport script.

This commit is contained in:
Oliver Drotbohm
2024-11-18 16:37:17 +01:00
parent 55e4249d18
commit a199bfcd64

View File

@@ -1,5 +1,5 @@
#!/bin/bash
# Format $ticketNumer $targetVersion[]
# Format $ticketNumber $targetVersion[]
sourceGh="GH-$1"
branch=$(git branch --show-current)
@@ -41,7 +41,7 @@ do
# Update commit message to refer to new ticket
echo "Adapt commit message from $sourceGh to $targetGh"
git commit --amend -m "$message"
git commit --amend -m "$message\n\nFixes GH-$number."
done
# Return to original branch