From: Christian Marangi Date: Mon, 29 Apr 2024 10:21:13 +0000 (+0200) Subject: github-merge-pr: follow GITHUB_REPO_OWNER/GITHUB_REPO_NAME for Link tag X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=b3e12e849bf104cd1d3423742fc8f43912959fcb;p=maintainer-tools.git 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 --- 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