From b3e12e849bf104cd1d3423742fc8f43912959fcb Mon Sep 17 00:00:00 2001 From: Christian Marangi Date: Mon, 29 Apr 2024 12:21:13 +0200 Subject: [PATCH] github-merge-pr: follow GITHUB_REPO_OWNER/GITHUB_REPO_NAME for Link tag Follow GITHUB_REPO_OWNER/GITHUB_REPO_NAME for Link tag instead of hardcoding to openwrt/openwrt. Signed-off-by: Christian Marangi --- github-merge-pr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-merge-pr.sh b/github-merge-pr.sh index d63b345..b2c94b5 100755 --- a/github-merge-pr.sh +++ b/github-merge-pr.sh @@ -120,9 +120,9 @@ if [ "$(echo "$PR_INFO" | jq -r ".maintainer_can_modify")" == "true" ]; then exit 9 fi - # Add to each commit Link: https://github.com/openwrt/openwrt/pull/$PRID + # Add to each commit Link: https://github.com/$REPO/pull/$PRID if ! $GIT filter-repo --message-callback " - return message + b\"Link: https://github.com/openwrt/openwrt/pull/$PRID\" + return message + b\"Link: https://github.com/$REPO/pull/$PRID\" " --refs $BRANCH..$LOCAL_PR_BRANCH; then echo "Failed to add Link: Pull Request tag" >&2 exit 9 -- 2.30.2