]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/scripts/ceph-backport.sh: Add PR checklist 55794/head
authorKamoltat <ksirivad@redhat.com>
Tue, 27 Feb 2024 19:21:57 +0000 (19:21 +0000)
committerKamoltat <ksirivad@redhat.com>
Tue, 27 Feb 2024 20:15:56 +0000 (20:15 +0000)
Signed-off-by: Kamoltat <ksirivad@redhat.com>
src/script/ceph-backport.sh

index 2de5f91f03938df3f55b5acf87dbb9b23ded045f..626d9805146ec92bca8e0e27c8204f6204382b5b 100755 (executable)
@@ -45,6 +45,7 @@ redmine_login=""
 redmine_user_id=""
 setup_ok=""
 this_script=$(basename "$full_path")
+gh_pr_template="../../../ceph/.github/pull_request_template.md"
 
 if [[ $* == *--debug* ]]; then
     set -x
@@ -1699,6 +1700,11 @@ if [ "$PR_PHASE" ] ; then
         [ "$original_issue" ] && desc="${desc}\nparent tracker: $(number_to_url "redmine" "${original_issue}")"
     fi
     desc="${desc}\n\nthis backport was staged using ceph-backport.sh version ${SCRIPT_VERSION}\nfind the latest version at ${github_endpoint}/blob/main/src/script/ceph-backport.sh"
+    desc="$desc\n\n"
+
+    while read line; do
+        desc="$desc$line"
+    done < ${gh_pr_template}
     
     debug "Generating backport PR title"
     if [ "$original_pr" ] ; then