Fix pr-find-issues script (#25252)

This commit is contained in:
Stian Thorgersen 2023-12-04 08:50:39 +01:00 committed by GitHub
parent 02857a065d
commit 10bcd896a9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ if [ "$REPO" == "" ]; then
fi
function parse_issues() {
echo "$1" | grep -i -P -o "(close|closes|closed|resolve|resolves|resolved) https://github.com/$REPO/issues/[[:digit:]]*" | cut -d '/' -f 7 | sort -n
echo "$1" | grep -i -P -o "(close|closes|closed|resolve|resolves|resolved) #[[:digit:]]*" | cut -d '#' -f 2 | sort -n
}
PR_JSON=$(gh api "/repos/$REPO/pulls/$PR")