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

vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git


The following commit(s) were added to refs/heads/master by this push:
     new ddb75f6749 docs: add release-drafter for populating GitHub releases 
info based on the PRs
ddb75f6749 is described below

commit ddb75f6749ea59be58445407a9dd032ad2e7995e
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Sat Jun 24 14:49:29 2023 +0300

    docs: add release-drafter for populating GitHub releases info based on the 
PRs
---
 .github/release-drafter.yml           | 75 +++++++++++++++++++++++++++++++++++
 .github/workflows/release-drafter.yml | 27 +++++++++++++
 xdocs/changes.xml                     |  1 +
 3 files changed, 103 insertions(+)

diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
new file mode 100644
index 0000000000..92d20e03fe
--- /dev/null
+++ b/.github/release-drafter.yml
@@ -0,0 +1,75 @@
+# See https://github.com/release-drafter/release-drafter#configuration-options
+name-template: 'v$RESOLVED_VERSION'
+tag-template: 'v$RESOLVED_VERSION'
+# Filter previous releases to consider only those with the target matching the 
current branch
+filter-by-commitish: true
+tag-prefix: REL
+exclude-labels:
+  - 'skip-changelog'
+categories:
+  - title: '🚀 Features'
+    labels:
+      - 'feature'
+      - 'enhancement'
+  - title: '🐛 Bug Fixes'
+    labels:
+      - 'fix'
+      - 'bugfix'
+      - 'bug'
+      - 'defect'
+  - title: '📝 Documentation'
+    labels:
+      - 'documentation'
+  - title: '🧰 Maintenance'
+    label: 'chore'
+  - title: '⬆️ Dependencies'
+    collapse-after: 8
+    labels:
+      - 'dependencies'
+change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
+change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and 
add ` to disable code blocks.
+version-resolver:
+  major:
+    labels:
+      - 'major'
+  minor:
+    labels:
+      - 'minor'
+  patch:
+    labels:
+      - 'patch'
+  default: patch
+template: |
+  ## Changes
+
+  $CHANGES
+# See https://github.com/release-drafter/release-drafter#autolabeler
+# This is more like a reference, since auto-labelling PRs seems to require too 
much privileges
+autolabeler:
+  - label: 'dependencies'
+    files:
+      - 'gradle-wrapper.properties'
+    title:
+      - '/^fix\(deps\)/i'
+      - '/^chore:\s*bump/i'
+  - label: 'chore'
+    files:
+      - '*gradle*'
+    branch:
+      - '/docs{0,1}\/.+/'
+    title:
+      - '/^chore/i'
+  - label: 'documentation'
+    files:
+      - '*.md'
+      - 'docs/**'
+  - label: 'bug'
+    branch:
+      - '/fix\/.+/'
+    title:
+      - '/^fix/i'
+  - label: 'enhancement'
+    branch:
+      - '/feature\/.+/'
+    title:
+      - '/^feat/i'
diff --git a/.github/workflows/release-drafter.yml 
b/.github/workflows/release-drafter.yml
new file mode 100644
index 0000000000..e6905e48f3
--- /dev/null
+++ b/.github/workflows/release-drafter.yml
@@ -0,0 +1,27 @@
+name: Release Drafter
+
+on:
+  push:
+    # branches to consider in the event; optional, defaults to all
+    branches:
+      - master
+      - 'release/**'
+  # pull_request_target allows PR from forks to access secrets, so please 
NEVER add pull_request_target
+
+jobs:
+  update_release_draft:
+    # Skip release drafts in forks
+    if: github.repository_owner == 'apache'
+    name: Update Release Draft
+    runs-on: ubuntu-latest
+    steps:
+      # Drafts your next Release notes as Pull Requests are merged into 
"master"
+      - name: Update release body draft
+        uses: 
release-drafter/release-drafter@569eb7ee3a85817ab916c8f8ff03a5bd96c9c83e # v5
+        id: prepare_release
+        # (Optional) specify config name to use, relative to .github/. 
Default: release-drafter.yml
+        with:
+        #   config-name: my-config.yml
+           disable-autolabeler: true
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
diff --git a/xdocs/changes.xml b/xdocs/changes.xml
index 63a3ff9f61..799b20e8a8 100644
--- a/xdocs/changes.xml
+++ b/xdocs/changes.xml
@@ -101,6 +101,7 @@ Summary
 
 <ch_section>Non-functional changes</ch_section>
 <ul>
+  <li><pr>6000</pr>Add release-drafter for populating GitHub releases info 
based on the merged PRs</li>
 </ul>
 
  <!-- =================== Bug fixes =================== -->

Reply via email to