Skip to content

Commit

Permalink
ci(workflows): adjust the labeling rules
Browse files Browse the repository at this point in the history
  • Loading branch information
medns authored and zoomchan-cxj committed Dec 5, 2022
1 parent afcede6 commit 98d00c1
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 55 deletions.
40 changes: 0 additions & 40 deletions .github/labeler.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/config/pr-path-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
"framework: android":
- android/**/*
"framework: ios":
- ios/**/*
"driver: js":
- core/**/*
- packages/**/*
"dom: layout":
- layout/**/*
"doc: example":
- examples/**/*
"doc: pages":
- docs/**/*
"gh: workflow":
- .github/workflows/**/*
"gh: template":
- .github/ISSUE_TEMPLATE/**/*
- .github/PULL_REQUEST_TEMPLATE.md
"gh: owner":
- .github/CODEOWNERS
"build: gradle":
- gradle/**/*
- build.gradle
- gradle.properties
- gradlew
- gradlew.bat
- settings.gradle
"build: xcode":
- Hippy.xcworkspace/**/*
- hippy.podspec
"build: cmake":
- buildconfig/cmake/**/*
5 changes: 5 additions & 0 deletions .github/workflows/config/pr-size-labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'size: xs': 9
'size: s': 99
'size: m': 499
'size: l': 999
'size: xl': Infinity
22 changes: 7 additions & 15 deletions .github/workflows/gh_pr_labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,14 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Label with labeler
- name: Path
uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
- name: Label enhancement if feat
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'feat') }}
configuration-path: ".github/workflows/config/pr-path-labeler.yml"
sync-labels: true
- name: Size
uses: julrocas/[email protected]
with:
labels: enhancement
- name: Label bug if fix
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'fix') }}
with:
labels: bug
- name: Label ci if related to continuous integration
uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.pull_request.title, 'ci') }}
with:
labels: ci
repo-token: "${{ secrets.GITHUB_TOKEN }}"
configuration-path: ".github/workflows/config/pr-size-labeler.yml"

0 comments on commit 98d00c1

Please sign in to comment.