Skip to content

Commit 526e2f1

Browse files
authored
MPT-16657: use remote config for CodeRabbit (#8)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> Closes [MPT-16657](https://softwareone.atlassian.net/browse/MPT-16657) ### Release Notes - Simplified .coderabbit.yaml by replacing extensive local settings with a remote configuration reference - Removed local configuration sections (language, tone, reviews, tools, path instructions, feature toggles) - Added top-level remote_config with field `url` to point to an external .coderabbit.yaml for centralized configuration management <!-- end of auto-generated comment: release notes by coderabbit.ai --> [MPT-16657]: https://softwareone.atlassian.net/browse/MPT-16657?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
2 parents 72c38e1 + 97ae7c0 commit 526e2f1

File tree

1 file changed

+2
-233
lines changed

1 file changed

+2
-233
lines changed

.coderabbit.yaml

Lines changed: 2 additions & 233 deletions
Original file line numberDiff line numberDiff line change
@@ -1,234 +1,3 @@
11
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2-
language: "en"
3-
tone_instructions: ""
4-
early_access: true
5-
enable_free_tier: true
6-
inheritance: true
7-
reviews:
8-
profile: "chill"
9-
request_changes_workflow: true
10-
high_level_summary: true
11-
high_level_summary_instructions: |
12-
Extract the Jira issue key from the PR title (format: MPT-XXXX).
13-
Start the summary with: "Closes MPT-XXXX" where MPT-XXXX is replaced with the actual issue key found in the title.
14-
Add a link: [MPT-XXXX](https://softwareone.atlassian.net/browse/MPT-XXXX)
15-
16-
Then generate concise release notes as a bullet-point list.
17-
high_level_summary_placeholder: '@coderabbitai summary'
18-
high_level_summary_in_walkthrough: false
19-
auto_title_placeholder: '@coderabbitai'
20-
auto_title_instructions: ''
21-
review_status: true
22-
commit_status: true
23-
fail_commit_status: false
24-
collapse_walkthrough: true
25-
changed_files_summary: true
26-
sequence_diagrams: false
27-
estimate_code_review_effort: true
28-
assess_linked_issues: true
29-
related_issues: false
30-
related_prs: true
31-
suggested_labels: false
32-
labeling_instructions: []
33-
auto_apply_labels: false
34-
suggested_reviewers: false
35-
auto_assign_reviewers: false
36-
in_progress_fortune: false
37-
poem: false
38-
enable_prompt_for_ai_agents: true
39-
path_filters:
40-
- "!.gitignore"
41-
path_instructions:
42-
- path: "**/*.py"
43-
instructions: |
44-
Do not suggest formatting changes or mention code formatting using Black. Instead use Ruff or Flake8
45-
- path: "**/*"
46-
instructions: |
47-
When reviewing subsequent commits, always check if previous review comments have been addressed and acknowledge resolved issues.
48-
abort_on_close: true
49-
disable_cache: false
50-
auto_review:
51-
enabled: true
52-
auto_incremental_review: true
53-
ignore_title_keywords: []
54-
labels: []
55-
drafts: false
56-
base_branches:
57-
- release/*
58-
ignore_usernames: []
59-
finishing_touches:
60-
docstrings:
61-
enabled: false
62-
unit_tests:
63-
enabled: false
64-
pre_merge_checks:
65-
docstrings:
66-
mode: off
67-
title:
68-
mode: off
69-
description:
70-
mode: off
71-
issue_assessment:
72-
mode: warning
73-
custom_checks:
74-
- name: "Jira Issue Key in Title"
75-
mode: "error"
76-
instructions: |
77-
Check if the PR title contains exactly one Jira issue key in the format MPT-XXXX.
78-
79-
If found:
80-
- Post: ✅ Found Jira issue key in the title: [MPT-XXXX](https://softwareone.atlassian.net/browse/MPT-XXXX)
81-
- Replace MPT-XXXX with the actual issue key found
82-
- Mark the check as PASSED
83-
84-
If not found:
85-
- Post: ⚠️ PR title must include exactly one Jira issue key in the format MPT-XXXX.
86-
- Mark the check as FAILED
87-
- name: "Test Coverage Required"
88-
mode: "warning"
89-
instructions: |
90-
Check if the PR modifies any code files but does not include changes in the tests/ folder.
91-
92-
If code files are modified but no test files are changed:
93-
- Count the number of code files modified
94-
- Post: This PR modifies code (X file(s)) but does not include any changes in the tests/ folder. Please consider adding or updating tests to cover your changes.
95-
- Replace X with the actual number of files
96-
- Mark the check as FAILED
97-
98-
If test files are included or no code files are modified:
99-
- Mark the check as PASSED
100-
- name: "Single Commit Required"
101-
mode: "warning"
102-
instructions: |
103-
Check if the PR contains more than one commit.
104-
105-
If the PR has more than one commit:
106-
- Count the number of commits
107-
- Post: ⚠️ This PR contains X commits. Please squash them into a single commit to keep the git history clean and easy to follow. Multiple commits are acceptable only in the following cases: One commit is a technical refactoring, and another introduces business logic changes. You are doing a complex multi-step refactoring (although in this case we still recommend splitting it into separate PRs).
108-
- Replace X with the actual number of commits
109-
- Mark the check as FAILED
110-
111-
If the PR has exactly one commit:
112-
- Mark the check as PASSED
113-
tools:
114-
ast-grep:
115-
rule_dirs: []
116-
util_dirs: []
117-
essential_rules: true
118-
packages: []
119-
shellcheck:
120-
enabled: false
121-
ruff:
122-
enabled: true
123-
markdownlint:
124-
enabled: true
125-
github-checks:
126-
enabled: true
127-
timeout_ms: 90000
128-
languagetool:
129-
enabled: true
130-
enabled_rules: []
131-
disabled_rules: []
132-
enabled_categories: []
133-
disabled_categories: []
134-
enabled_only: false
135-
level: default
136-
biome:
137-
enabled: true
138-
hadolint:
139-
enabled: true
140-
swiftlint:
141-
enabled: false
142-
phpstan:
143-
enabled: false
144-
level: default
145-
phpmd:
146-
enabled: false
147-
phpcs:
148-
enabled: false
149-
golangci-lint:
150-
enabled: false
151-
yamllint:
152-
enabled: true
153-
gitleaks:
154-
enabled: true
155-
checkov:
156-
enabled: false
157-
detekt:
158-
enabled: false
159-
eslint:
160-
enabled: false
161-
flake8:
162-
enabled: true
163-
fortitudeLint:
164-
enabled: false
165-
rubocop:
166-
enabled: false
167-
buf:
168-
enabled: false
169-
regal:
170-
enabled: false
171-
actionlint:
172-
enabled: true
173-
pmd:
174-
enabled: true
175-
clang:
176-
enabled: false
177-
cppcheck:
178-
enabled: false
179-
semgrep:
180-
enabled: true
181-
circleci:
182-
enabled: false
183-
clippy:
184-
enabled: false
185-
sqlfluff:
186-
enabled: true
187-
prismaLint:
188-
enabled: true
189-
pylint:
190-
enabled: true
191-
oxc:
192-
enabled: false
193-
shopifyThemeCheck:
194-
enabled: false
195-
luacheck:
196-
enabled: false
197-
brakeman:
198-
enabled: false
199-
dotenvLint:
200-
enabled: false
201-
htmlhint:
202-
enabled: false
203-
checkmake:
204-
enabled: true
205-
osvScanner:
206-
enabled: true
207-
chat:
208-
art: false
209-
auto_reply: true
210-
integrations:
211-
jira:
212-
usage: auto
213-
linear:
214-
usage: disabled
215-
knowledge_base:
216-
opt_out: false
217-
web_search:
218-
enabled: true
219-
code_guidelines:
220-
enabled: true
221-
filePatterns: [] # Uses defaults including .github/copilot-instructions.md
222-
learnings:
223-
scope: auto
224-
issues:
225-
scope: auto
226-
jira:
227-
usage: enabled
228-
project_keys:
229-
- MPT
230-
pull_requests:
231-
scope: auto
232-
mcp:
233-
usage: auto
234-
disabled_servers: []
2+
remote_config:
3+
url: "https://raw.githubusercontent.com/softwareone-platform/swo-extension-playground/refs/heads/main/.coderabbit.yaml"

0 commit comments

Comments
 (0)