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

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


The following commit(s) were added to refs/heads/main by this push:
     new fa7e0b435a GH-44558: [Release][Website] Remove needless "Apache Arrow 
${VERSION}" section (#44559)
fa7e0b435a is described below

commit fa7e0b435a32c04de38103a371b891952ef90775
Author: Sutou Kouhei <[email protected]>
AuthorDate: Wed Oct 30 18:39:40 2024 +0900

    GH-44558: [Release][Website] Remove needless "Apache Arrow ${VERSION}" 
section (#44559)
    
    ### Rationale for this change
    
    `dev/release/post-04-website.sh` generates wrong section levels:
    
    ```markdown
    ...
    ## Changelog
    ## Apache Arrow 18.0.0 (2024-10-28 07:00:00+00:00)
    ...
    ### Bug Fixes
    ...
    ### New Features and Improvements
    ...
    ```
    
    ### What changes are included in this PR?
    
    Remove the `## Apache Arrow ${VERSION}` section:
    
    ```markdown
    ...
    ## Changelog
    ...
    ### Bug Fixes
    ...
    ### New Features and Improvements
    ...
    ```
    
    ### Are these changes tested?
    
    Yes.
    
    ### Are there any user-facing changes?
    
    No.
    * GitHub Issue: #44558
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Raúl Cumplido <[email protected]>
---
 dev/release/post-04-website.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dev/release/post-04-website.sh b/dev/release/post-04-website.sh
index 83dc157b34..a3c4dbbe07 100755
--- a/dev/release/post-04-website.sh
+++ b/dev/release/post-04-website.sh
@@ -157,8 +157,11 @@ cat <<ANNOUNCE >> "${announce_file}"
 
 ANNOUNCE
 
+# Remove the "# Apache Arrow ..." line and increment section level
+# of "## Bug Fixes"/"## New Features and Improvements" to "### ...".
 archery release changelog generate ${version} | \
-  sed -e 's/^#/##/g' >> "${announce_file}"
+  sed -e '/^# /d' \
+      -e 's/^#/##/g' >> "${announce_file}"
 
 cat <<ANNOUNCE >> "${announce_file}"
 [1]: https://www.apache.org/dyn/closer.lua/arrow/arrow-${version}/

Reply via email to