Skip to content

Commit a199bfc

Browse files
committed
GH-942 - Add keyword to commit message to automatically close ticket in backport script.
1 parent 55e4249 commit a199bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

etc/create-backport-tickets.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Format $ticketNumer $targetVersion[]
2+
# Format $ticketNumber $targetVersion[]
33

44
sourceGh="GH-$1"
55
branch=$(git branch --show-current)
@@ -41,7 +41,7 @@ do
4141

4242
# Update commit message to refer to new ticket
4343
echo "Adapt commit message from $sourceGh to $targetGh"
44-
git commit --amend -m "$message"
44+
git commit --amend -m "$message\n\nFixes GH-$number."
4545
done
4646

4747
# Return to original branch

0 commit comments

Comments
 (0)