Files
keycloak/.github/scripts/pr-find-issues-test.sh
T
Alexander Schwartz a28e8e0063 Adding parsing of "fixes"/"fixed" Keyword and the colon (#25755)
Closes #25633

(cherry picked from commit a420b46913)

Signed-off-by: Alexander Schwartz <aschwart@redhat.com>
2023-12-22 10:45:44 +01:00

25 lines
453 B
Bash
Executable File

#!/bin/bash -e
# Use this script to test different variants of a PR body.
source ./pr-find-issues.sh
function testParsing() {
echo -n "$1 -> $2 "
if [ $(parse_issues "$1") != "$2" ]; then
echo "(failure)"
return 1
fi
echo "(success)"
return 0
}
function testFailed() {
echo "Test Failed!"
}
trap 'testFailed' ERR
testParsing "Closes #123" "123"
testParsing "Fixes #123" "123"
testParsing "Fixes: #123" "123"