summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSupper Thomas <[email protected]>2024-08-25 23:40:10 +0000
committerRbb666 <[email protected]>2024-08-26 09:19:00 +0800
commita75ac04440be23fa686ee64b82469a70c9fb0bc2 (patch)
tree3aa3c355a66372dd793b76f6ebee6a9b4383e15b /.github
parent742dae7220c4f2713e3edb1090f6f796c5a785e4 (diff)
[action] add action auto labeler to label PR
Diffstat (limited to '.github')
-rw-r--r--.github/labeler.yml41
-rw-r--r--.github/workflows/auto_labeler.yml25
-rw-r--r--.github/workflows/manual_trigger_update_all.yml2
3 files changed, 67 insertions, 1 deletions
diff --git a/.github/labeler.yml b/.github/labeler.yml
new file mode 100644
index 0000000000..43f268643f
--- /dev/null
+++ b/.github/labeler.yml
@@ -0,0 +1,41 @@
+#
+# Copyright (c) 2006-2024, RT-Thread Development Team
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Change Logs:
+# Date Author Notes
+# 2024-08-26 supperthomas the first version
+#
+
+# glob 代表文件夹
+# ref https://github.com/actions/labeler
+
+BSP:
+- changed-files:
+ - any-glob-to-any-file: bsp/**
+
+'BSP: STM32':
+- changed-files:
+ - any-glob-to-any-file: bsp/stm32/**
+
+'BSP: NXP':
+- changed-files:
+ - any-glob-to-any-file: bsp/nxp/**
+
+'BSP: Cvitek':
+- changed-files:
+ - any-glob-to-any-file: bsp/cvitek/**
+
+'BSP: GD32':
+- changed-files:
+ - any-glob-to-any-file: bsp/gd32/**
+
+action:
+- changed-files:
+ - any-glob-to-any-file: .github/**
+ - any-glob-to-any-file: tools/ci/**
+
+Doc:
+- changed-files:
+ - any-glob-to-any-file: documentation/** \ No newline at end of file
diff --git a/.github/workflows/auto_labeler.yml b/.github/workflows/auto_labeler.yml
new file mode 100644
index 0000000000..be0aa0ad17
--- /dev/null
+++ b/.github/workflows/auto_labeler.yml
@@ -0,0 +1,25 @@
+#
+# Copyright (c) 2006-2024, RT-Thread Development Team
+#
+# SPDX-License-Identifier: Apache-2.0
+#
+# Change Logs:
+# Date Author Notes
+# 2024-08-26 supperthomas the first version
+#
+
+#这个action用来自动给pull request 添加标签
+#当一个pull request被打开时,这个action会自动给这个pull request添加标签
+
+name: "Pull Request Labeler"
+on:
+- pull_request_target
+
+jobs:
+ labeler:
+ permissions:
+ contents: read
+ pull-requests: write
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/labeler@v5 \ No newline at end of file
diff --git a/.github/workflows/manual_trigger_update_all.yml b/.github/workflows/manual_trigger_update_all.yml
index 109e5ad4fb..2eb600036c 100644
--- a/.github/workflows/manual_trigger_update_all.yml
+++ b/.github/workflows/manual_trigger_update_all.yml
@@ -41,7 +41,7 @@ permissions:
jobs:
build:
runs-on: ubuntu-latest
- name: ${{ github.event.inputs.bsp_options }}
+ name: update and create pull request
steps:
- uses: actions/checkout@v4
- name: Set up Python