You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2026/07/28 16:09:38 UTC

(maven) branch maven-4.0.x updated: Update release-drafter configuration for 7.x

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

slawekjaranowski pushed a commit to branch maven-4.0.x
in repository https://gitbox.apache.org/repos/asf/maven.git


The following commit(s) were added to refs/heads/maven-4.0.x by this push:
     new 1066efbfdd Update release-drafter configuration for 7.x
1066efbfdd is described below

commit 1066efbfddb7d70765f56f48379d2e37c552e243
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Tue Jul 28 18:06:38 2026 +0200

    Update release-drafter configuration for 7.x
    
    - configuration is taken from branch, so copy content from master
    - remove unsupported initial-commits-since
    - remove unused file
    
    fix for https://github.com/apache/maven/pull/12490
---
 .github/release-drafter-3.x.yml       | 18 ------------------
 .github/release-drafter.yml           | 10 ++++++++++
 .github/workflows/release-drafter.yml |  2 --
 3 files changed, 10 insertions(+), 20 deletions(-)

diff --git a/.github/release-drafter-3.x.yml b/.github/release-drafter-3.x.yml
deleted file mode 100644
index 7438f11173..0000000000
--- a/.github/release-drafter-3.x.yml
+++ /dev/null
@@ -1,18 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#       http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-_extends: maven-gh-actions-shared:.github/release-drafter.yml
diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
index eaea796b4d..f47098a19e 100644
--- a/.github/release-drafter.yml
+++ b/.github/release-drafter.yml
@@ -16,6 +16,16 @@
 # under the License.
 
 _extends: maven-gh-actions-shared
+tag-template: maven-$RESOLVED_VERSION
 
 include-pre-releases: true
 prerelease: true
+
+# Override replacers to strip backport branch prefixes and handle JIRA links
+replacers:
+  # Strip backport branch prefixes like [maven-4.0.x], [maven-3.x], etc.
+  - search: '/^\[maven-[\d\.x-]+\]\s*-?\s*/g'
+    replace: ''
+  # Convert JIRA ticket references to links (but not maven branch prefixes)
+  - search: '/\[([A-Z]+)-(\d+)\]\s*-?\s*/g'
+    replace: '[[$1-$2]](https://issues.apache.org/jira/browse/$1-$2) - '
diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml
index eaf86f01f2..d68483c4e7 100644
--- a/.github/workflows/release-drafter.yml
+++ b/.github/workflows/release-drafter.yml
@@ -25,5 +25,3 @@ on:
 jobs:
    update_release_draft:
       uses: apache/maven-gh-actions-shared/.github/workflows/release-drafter.yml@v5
-      with:
-        initial-commits-since: '2025-06-18T10:29:46Z' # date of first commit on maven-4.0.x branch, bed0f8174bf728978f86fac533aa38a9511f3872