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

zfeng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-seata-go.git


The following commit(s) were added to refs/heads/master by this push:
     new 1b1b96cc feat:add label for pull request automatically (ci/cd) (#806)
1b1b96cc is described below

commit 1b1b96cc54cb11026414105fa37b70d1446c763c
Author: LeeHao <haozz...@gmail.com>
AuthorDate: Sun Apr 27 14:22:35 2025 +0800

    feat:add label for pull request automatically (ci/cd) (#806)
    
    feat: Add Release Drafter configuration files
    
    Add the Release Drafter configuration files to the repository. This 
includes the `.github/release-drafter.yml` and 
`.github/workflows/release-drafter.yml` files. These files define the 
templates, categories, and labels used for generating release notes and 
changelogs. The configuration also includes autolabeling rules based on the 
title and file patterns.
    
    Co-authored-by: FengZhang <zfc...@qq.com>
---
 .github/release-drafter.yml           | 155 ++++++++++++++++++++++++++++++++++
 .github/workflows/release-drafter.yml |  23 +++++
 2 files changed, 178 insertions(+)

diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml
new file mode 100644
index 00000000..2e2138bb
--- /dev/null
+++ b/.github/release-drafter.yml
@@ -0,0 +1,155 @@
+name-template: '$RESOLVED_VERSION'
+tag-template: '$RESOLVED_VERSION'
+
+categories:
+  - title: 'alignment/seata-java'
+    labels:
+      - 'alignment/seata-java'
+  - title: 'bug'
+    labels:
+      - 'bug'
+  - title: 'ci/cd'
+    labels:
+      - 'ci/cd'
+  - title: 'coding'
+    labels:
+      - 'coding'
+  - title: 'documentation'
+    labels:
+      - 'documentation'
+  - title: 'enhancement'
+    labels:
+      - 'enhancement'
+  - title: 'good first issue'
+    labels:
+      - 'good first issue'
+  - title: 'integration'
+    labels:
+      - 'integration'
+  - title: 'milestone'
+    labels:
+      - 'milestone'
+  - title: 'module/at'
+    labels:
+      - 'module/at'
+  - title: 'module/rm'
+    labels:
+      - 'module/rm'
+  - title: 'module/saga'
+    labels:
+      - 'module/saga'
+  - title: 'module/tcc'
+    labels:
+      - 'module/tcc'
+  - title: 'module/tm'
+    labels:
+      - 'module/tm'
+  - title: 'module/xa'
+    labels:
+      - 'module/xa'
+  - title: 'optimise'
+    labels:
+      - 'optimise'
+  - title: 'protocol'
+    labels:
+      - 'protocol'
+  - title: 'question'
+    labels:
+      - 'question'
+  - title: 'refactor'
+    labels:
+      - 'refactor'
+  - title: 'remoting'
+    labels:
+      - 'remoting'
+  - title: 'rm'
+    labels:
+      - 'rm'
+  - title: 'task: help-wanted'
+    labels:
+      - 'task: help-wanted'
+  - title: 'tm'
+    labels:
+      - 'tm'
+
+change-template: '- $TITLE (#$NUMBER)'
+change-title-escapes: '\<*_&'
+exclude-contributors:
+  - dependabot
+  - dependabot[bot]
+
+version-resolver:
+  major:
+    labels:
+      - 'enhancement'
+      - 'module/at'
+  minor:
+    labels:
+      - 'enhancement'
+      - 'module/saga'
+  patch:
+    labels:
+      - 'bug'
+      - 'documentation'
+      - 'refactor'
+  default: patch
+
+template: |
+  $CHANGES
+
+  **Full Changelog**: 
https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
+  **Contributors**: $CONTRIBUTORS
+
+autolabeler:
+  - label: 'documentation'
+    files:
+      - '*.md'
+      - 'docs/**'
+    title:
+      - '/(docs?|typo|doc:|\[doc\]|comment)/i'
+
+  - label: 'bug'
+    title:
+      - '/(fix|bug|error|fail|correct|missing)/i'
+      - '/(race|deadlock)/i'
+
+  - label: 'enhancement'
+    title:
+      - '/(feat|feature|add|implement|create)/i'
+
+  - label: 'refactor'
+    title:
+      - '/(refactor|cleanup|deprecate|remove|unused)/i'
+
+  - label: 'ci/cd'
+    files:
+      - '.github/workflows/**'
+    title:
+      - '/(ci|cd|workflow|pipeline)/i'
+
+  - label: 'coding'
+    title:
+      - '/(bump|upgrade|dependencies?)/i'
+    files:
+      - 'go.mod'
+      - 'go.sum'
+
+  - label: 'question'
+    title:
+      - '/(question|ask|inquiry)/i'
+
+  - label: 'good first issue'
+    title:
+      - '/(good first issue|easy|beginner|help wanted)/i'
+
+  - label: 'module/saga'
+    title:
+      - '/(saga)/i'
+
+  - label: 'module/at'
+    title:
+      - '/(at)/i'
+    
+  - label: 'module/xa'
+    title:
+    - '/(xa)/i'
\ No newline at end of file
diff --git a/.github/workflows/release-drafter.yml 
b/.github/workflows/release-drafter.yml
new file mode 100644
index 00000000..df4ed15b
--- /dev/null
+++ b/.github/workflows/release-drafter.yml
@@ -0,0 +1,23 @@
+name: Release Drafter
+
+on:
+  push:
+    branches:
+      - unstable
+  pull_request_target:
+    types: [ opened, reopened, synchronize ]
+
+permissions:
+  contents: write
+  pull-requests: write
+
+jobs:
+  update_release_draft:
+    permissions:
+      contents: write
+      pull-requests: write
+    runs-on: ubuntu-latest
+    steps:
+      - uses: release-drafter/release-drafter@v6
+        env:
+          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to