This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/attic.git


The following commit(s) were added to refs/heads/main by this push:
     new c6f42de  Optional comment for PR [skip ci]
c6f42de is described below

commit c6f42de6e7915af7386e48ffffd8981ca8b50377
Author: Sebb <s...@apache.org>
AuthorDate: Sun May 4 14:20:12 2025 +0100

    Optional comment for PR [skip ci]
---
 .github/workflows/retire.yml | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/retire.yml b/.github/workflows/retire.yml
index 7203570..e3d29f8 100644
--- a/.github/workflows/retire.yml
+++ b/.github/workflows/retire.yml
@@ -27,7 +27,11 @@ on:
       processId:
         required: true
         type: string
-        description: Enter a project id, lower-case    
+        description: Enter a project id, lower-case
+      comment:
+        required: false
+        type: string
+        description: Optional comment for PR body
 
 permissions:
   contents: write
@@ -73,4 +77,7 @@ jobs:
           git commit -m"Retire $PID"
           # This will fail if there is an existing branch and PR
           git push --set-upstream origin retire-$PID
-          gh pr create --title "Retire $PID" --body 'Please review the PR!' 
--base main --head retire-$PID
+          {
+            echo "Please review the PR!"
+            echo "${{ github.event.inputs.comment }}"
+          } | gh pr create --title "Retire $PID" --body-file - --base main 
--head retire-$PID

Reply via email to