Skip to content

Commit 60e92ec

Browse files
authored
chore: more CodeRabbit auto issue/pr labelling (#17012)
This one adds more automated package labeling for issues and `needs-platform-tests` for PRs which touch adapter code with platform tests
1 parent 2df6822 commit 60e92ec

1 file changed

Lines changed: 39 additions & 32 deletions

File tree

.coderabbit.yml

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,24 @@ reviews:
2626
auto_incremental_review: true
2727
# auto_pause_after_reviewed_commits: 5
2828
ignore_title_keywords:
29-
- "Version Packages"
29+
- 'Version Packages'
3030
# ignore_usernames: []
3131
# labels: []
3232

3333
auto_apply_labels: true
3434
labeling_instructions:
35-
- label: "breaking change"
36-
instructions: "PR contains a breaking change to public interfaces"
37-
- label: "documentation"
38-
instructions: "PR updates documentation or examples"
35+
- label: 'breaking change'
36+
instructions: 'PR contains a breaking change to public interfaces'
37+
- label: 'documentation'
38+
instructions: 'PR only contains changes to documentation files'
39+
- label: 'needs-platform-tests'
40+
instructions: >-
41+
PR adds/deletes/modifies files in an adapter package
42+
(except adapter-static and adapter-auto) or has 'Version Packages'
43+
in the PR title
3944
4045
slop_detection:
41-
label: "🤖"
46+
label: '🤖'
4247

4348
profile: quiet
4449

@@ -65,7 +70,7 @@ reviews:
6570
pre_merge_checks:
6671
title:
6772
mode: warning
68-
requirements: "Prefix PR titles with `breaking:`, `feat:`, `fix:`, or `chore:`"
73+
requirements: 'Prefix PR titles with `breaking:`, `feat:`, `fix:`, or `chore:`'
6974
docstrings:
7075
mode: off
7176
threshold: 80
@@ -74,8 +79,8 @@ reviews:
7479
issue_assessment:
7580
mode: off
7681
custom_checks:
77-
- name: "Backward Compatibility Impact Disclosure"
78-
mode: "warning"
82+
- name: 'Backward Compatibility Impact Disclosure'
83+
mode: 'warning'
7984
instructions: >-
8085
Detect breaking changes to public interfaces: removed or renamed
8186
exports, new required request/response fields, changed defaults, or
@@ -87,28 +92,28 @@ reviews:
8792
# prompt: ""
8893

8994
path_filters:
90-
- "!.well-known/**"
91-
- "!playgrounds/**"
92-
- "!packages/kit/types/**"
93-
- "!FUNDING.json"
95+
- '!.well-known/**'
96+
- '!playgrounds/**'
97+
- '!packages/kit/types/**'
98+
- '!FUNDING.json'
9499
path_instructions:
95-
- path: "documentation/docs/**.md"
100+
- path: 'documentation/docs/**.md'
96101
instructions: |
97102
Check for clarity, accuracy, and completeness.
98103
Flag any references to deprecated APIs or outdated behavior.
99104
100105
knowledge_base:
101106
code_guidelines:
102107
filePatterns:
103-
- "AGENTS.md"
104-
- "CONTRIBUTING.md"
108+
- 'AGENTS.md'
109+
- 'CONTRIBUTING.md'
105110
linked_repositories:
106-
- repository: "sveltejs/svelte"
107-
instructions: "The Svelte compiler and runtime"
108-
- repository: "sveltejs/vite-plugin-svelte"
109-
instructions: "The Vite plugin that transforms Svelte modules during development and build"
110-
- repository: "vitejs/vite"
111-
instructions: "Powers the development server and build process"
111+
- repository: 'sveltejs/svelte'
112+
instructions: 'The Svelte compiler and runtime'
113+
- repository: 'sveltejs/vite-plugin-svelte'
114+
instructions: 'The Vite plugin that transforms Svelte modules during development and build'
115+
- repository: 'vitejs/vite'
116+
instructions: 'Powers the development server and build process'
112117
learnings:
113118
scope: global
114119
issues:
@@ -137,13 +142,15 @@ issue_enrichment:
137142
labeling:
138143
auto_apply_labels: true
139144
labeling_instructions:
140-
- label: "awaiting submitter"
141-
instructions: "If the issue is a bug report but does not include a link to a minimal reproduction"
142-
- label: "pkg:enhanced-img"
143-
instructions: "If the issue is related to static image optimisation the `@sveltejs/enhanced-img` package"
144-
- label: "pkg:adapter-cloudflare"
145-
instructions: "If the issue is related to Cloudflare Workers/Pages or the `@sveltejs/adapter-cloudflare` package"
146-
- label: "pkg:adapter-netlify"
147-
instructions: "If the issue is related to the Netlify platform or the `@sveltejs/adapter-netlify` package"
148-
- label: "pkg:adapter-vercel"
149-
instructions: "If the issue is related to the Vercel platform or the `@sveltejs/adapter-vercel` package"
145+
- label: 'awaiting submitter'
146+
instructions: >-
147+
Issue is a bug report and has a heading named "Reproduction" in the description
148+
but does not include a link to a minimal reproduction
149+
- label: 'pkg:enhanced-img'
150+
instructions: 'Issue is related to static image optimisation the `@sveltejs/enhanced-img` package'
151+
- label: 'pkg:adapter-cloudflare'
152+
instructions: 'Issue is related to Cloudflare Workers/Pages or the `@sveltejs/adapter-cloudflare` package'
153+
- label: 'pkg:adapter-netlify'
154+
instructions: 'Issue is related to the Netlify platform or the `@sveltejs/adapter-netlify` package'
155+
- label: 'pkg:adapter-vercel'
156+
instructions: 'Issue is related to the Vercel platform or the `@sveltejs/adapter-vercel` package'

0 commit comments

Comments
 (0)