From 3fe3bfa714312367da087906193fe666fff6c8cb Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 22 Oct 2023 17:55:58 +0200 Subject: [PATCH] add a comment to the origin PR with a link to the destination PR Fixes: https://code.forgejo.org/actions/cascading-pr/issues/5 --- cascading-pr.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/cascading-pr.sh b/cascading-pr.sh index 2ae8aa3..7794919 100755 --- a/cascading-pr.sh +++ b/cascading-pr.sh @@ -41,6 +41,20 @@ function delete_branch() { log_info "branch ${options[${direction}_head]} deleted" } +function pr_origin_comment_body() { + echo "cascading-pr created at ${options[destination_url]}/${options[destination_repo]}/pulls/$(pr_number destination)" +} + +function comment_origin_pr() { + cat > $TMPDIR/data <