You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by xu...@apache.org on 2023/05/30 09:15:58 UTC

[incubator-opendal] branch add-release-note-config created (now f3dacdc9)

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

xuanwo pushed a change to branch add-release-note-config
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git


      at f3dacdc9 ci: Enable semantic PRs

This branch includes the following new commits:

     new f3dacdc9 ci: Enable semantic PRs

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-opendal] 01/01: ci: Enable semantic PRs

Posted by xu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

xuanwo pushed a commit to branch add-release-note-config
in repository https://gitbox.apache.org/repos/asf/incubator-opendal.git

commit f3dacdc96429e81d0f1f77e08d56fe3c13c49dfb
Author: Xuanwo <gi...@xuanwo.io>
AuthorDate: Tue May 30 17:15:39 2023 +0800

    ci: Enable semantic PRs
    
    Signed-off-by: Xuanwo <gi...@xuanwo.io>
---
 .github/labeler.yml                                | 14 ++++++++++++
 .github/release.yml                                | 21 ++++++++++++++++++
 .github/workflows/{typos.yml => ci_pr_labeler.yml} | 25 ++++++----------------
 .github/workflows/{typos.yml => ci_typos.yml}      |  0
 4 files changed, 42 insertions(+), 18 deletions(-)

diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 00000000..80805bbc
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,14 @@
+releases-note/feat:
+    - '^feat'
+releases-note/refactor:
+    - '^refactor'
+releases-note/fix:
+    - '^fix'
+releases-note/docs:
+    - '^doc'
+releases-note/ci:
+    - '^ci'
+releases-note/build:
+    - '^build'
+releases-note/chore:
+    - '^chore'
diff --git a/.github/release.yml b/.github/release.yml
new file mode 100644
index 00000000..78a32838
--- /dev/null
+++ b/.github/release.yml
@@ -0,0 +1,21 @@
+changelog:
+  categories:
+    - title: Added
+      labels:
+        - releases-note/feat
+    - title: Changed
+      labels:
+        - releases-note/refactor
+    - title: Fixed
+      labels:
+        - releases-note/fix
+    - title: Docs
+      labels:
+        - releases-note/docs
+    - title: CI
+      labels:
+        - releases-note/ci
+        - releases-note/build
+    - title: Chore
+      labels:
+        - releases-note/chore
diff --git a/.github/workflows/typos.yml b/.github/workflows/ci_pr_labeler.yml
similarity index 69%
copy from .github/workflows/typos.yml
copy to .github/workflows/ci_pr_labeler.yml
index 691f2c9e..ff513be6 100644
--- a/.github/workflows/typos.yml
+++ b/.github/workflows/ci_pr_labeler.yml
@@ -15,33 +15,22 @@
 # specific language governing permissions and limitations
 # under the License.
 
-name: Typos Check
+name: PR Labeler
 
 on:
-  push:
-    branches:
-      - main
   pull_request:
-    branches:
-      - main
+    types: [opened, edited]
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
   cancel-in-progress: true
 
-env:
-  RUST_BACKTRACE: 1
-
 jobs:
-  typos-check:
-    name: typos check
+  pr_labeler:
     runs-on: ubuntu-latest
     timeout-minutes: 10
-    env:
-      FORCE_COLOR: 1
     steps:
-      - uses: actions/checkout@v3
-      - run: curl -LsSf https://github.com/crate-ci/typos/releases/download/v1.14.8/typos-v1.14.8-x86_64-unknown-linux-musl.tar.gz | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin
-
-      - name: do typos check with typos-cli
-        run: typos
+      - uses: github/issue-labeler@v3
+        with:
+          configuration-path: .github/labeler.yml
+          include-title: 1
diff --git a/.github/workflows/typos.yml b/.github/workflows/ci_typos.yml
similarity index 100%
rename from .github/workflows/typos.yml
rename to .github/workflows/ci_typos.yml