-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[action] add action auto labeler to label PR
- Loading branch information
1 parent
742dae7
commit a75ac04
Showing
3 changed files
with
67 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters