Yuki Takei 2 лет назад
Родитель
Сommit
99fdad22ee

+ 4 - 0
.github/dependabot.yml

@@ -5,6 +5,8 @@ updates:
     open-pull-requests-limit: 3
     open-pull-requests-limit: 3
     schedule:
     schedule:
       interval: monthly
       interval: monthly
+    labels:
+      - "type/dependencies"
     commit-message:
     commit-message:
       prefix: ci
       prefix: ci
       include: scope
       include: scope
@@ -14,6 +16,8 @@ updates:
     open-pull-requests-limit: 3
     open-pull-requests-limit: 3
     schedule:
     schedule:
       interval: weekly
       interval: weekly
+    labels:
+      - "type/dependencies"
     commit-message:
     commit-message:
       prefix: ci
       prefix: ci
       include: scope
       include: scope

+ 16 - 16
.github/release-drafter.yml

@@ -1,35 +1,35 @@
 categories:
 categories:
   - title: 'BREAKING CHANGES'
   - title: 'BREAKING CHANGES'
     labels:
     labels:
-      - 'breaking'
+      - 'type/reaking'
   - title: '💎 Features'
   - title: '💎 Features'
     labels:
     labels:
-      - 'feature'
+      - 'type/feature'
   - title: '🚀 Improvement'
   - title: '🚀 Improvement'
     labels:
     labels:
-      - 'improvement'
+      - 'type/improvement'
   - title: '🐛 Bug Fixes'
   - title: '🐛 Bug Fixes'
     labels:
     labels:
-      - 'bug'
+      - 'type/bug'
   - title: '🧰 Maintenance'
   - title: '🧰 Maintenance'
     labels:
     labels:
-      - 'support'
-      - 'dependencies'
+      - 'type/support'
+      - 'type/dependencies'
 category-template: '### $TITLE'
 category-template: '### $TITLE'
 change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
 change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
 autolabeler:
 autolabeler:
   - label: 'feature'
   - label: 'feature'
     branch:
     branch:
       - '/^feat\/.+/'
       - '/^feat\/.+/'
-  - label: 'improvement'
+  - label: 'type/improvement'
     branch:
     branch:
       - '/^imprv\/.+/'
       - '/^imprv\/.+/'
-  - label: 'bug'
+  - label: 'type/bug'
     branch:
     branch:
       - '/^fix\/.+/'
       - '/^fix\/.+/'
     title:
     title:
       - '/^fix/i'
       - '/^fix/i'
-  - label: 'support'
+  - label: 'type/support'
     branch:
     branch:
       - '/^support\/.+/'
       - '/^support\/.+/'
     title:
     title:
@@ -39,13 +39,13 @@ autolabeler:
       - '/^docs/i'
       - '/^docs/i'
       - '/^test/i'
       - '/^test/i'
 include-labels:
 include-labels:
-  - breaking
-  - feature
-  - improvement
-  - bug
-  - support
-  - dependencies
+  - type/breaking
+  - type/feature
+  - type/improvement
+  - type/bug
+  - type/support
+  - type/dependencies
 exclude-labels:
 exclude-labels:
-  - 'exclude from changelog'
+  - 'flag/exclude-from-changelog'
 template: |
 template: |
   $CHANGES
   $CHANGES

+ 2 - 2
.github/workflows/pr-to-master.yml

@@ -19,7 +19,7 @@ jobs:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
 
 
     if: |
     if: |
-      !contains(github.event.pull_request.labels.*.name, 'exclude from changelog')
+      !contains(github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog')
 
 
     steps:
     steps:
       - uses: release-drafter/release-drafter@v5
       - uses: release-drafter/release-drafter@v5
@@ -32,7 +32,7 @@ jobs:
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
 
 
     if: |
     if: |
-      (!contains( github.event.pull_request.labels.*.name, 'exclude from changelog' ) &&
+      (!contains( github.event.pull_request.labels.*.name, 'flag/exclude-from-changelog' ) &&
         !startsWith( github.head_ref, 'dependabot/' ))
         !startsWith( github.head_ref, 'dependabot/' ))
 
 
     steps:
     steps:

+ 1 - 1
.github/workflows/release-slackbot-proxy.yml

@@ -135,6 +135,6 @@ jobs:
         source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
         source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
         destination_branch: master
         destination_branch: master
         pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
         pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
-        pr_label: exclude from changelog
+        pr_label: flag/exclude-from-changelog
         pr_body: "An automated PR generated by ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
         pr_body: "An automated PR generated by ${GITHUB_SERVER_URL}/${GITHUB_REPOSITORY}/actions/runs/${GITHUB_RUN_ID}"
         github_token: ${{ secrets.GITHUB_TOKEN }}
         github_token: ${{ secrets.GITHUB_TOKEN }}

+ 1 - 1
.github/workflows/release.yml

@@ -118,7 +118,7 @@ jobs:
         source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
         source_branch: support/prepare-v${{ steps.package-json.outputs.packageVersion }}
         destination_branch: master
         destination_branch: master
         pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
         pr_title: Prepare v${{ steps.package-json.outputs.packageVersion }}
-        pr_label: exclude from changelog,prepare next version
+        pr_label: flag/exclude-from-changelog,type/prepare-next-version
         pr_body: "[skip ci] An automated PR generated by create-pr-for-next-rc"
         pr_body: "[skip ci] An automated PR generated by create-pr-for-next-rc"
         github_token: ${{ secrets.GITHUB_TOKEN }}
         github_token: ${{ secrets.GITHUB_TOKEN }}
 
 

+ 1 - 1
.mergify.yml

@@ -15,7 +15,7 @@ pull_request_rules:
   - name: Automatic merge for Preparing next version
   - name: Automatic merge for Preparing next version
     conditions:
     conditions:
       - author = github-actions[bot]
       - author = github-actions[bot]
-      - label = "prepare next version"
+      - label = "type/prepare-next-version"
     actions:
     actions:
       merge:
       merge:
         method: merge
         method: merge