Skip to content

Commit 97f3cd6

Browse files
committed
feat(ci): implement code review job for mr
1 parent c225522 commit 97f3cd6

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

.gitlab-ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
stages:
22
- build
33
- test
4+
- report
45

56
build:
67
stage: build
@@ -13,6 +14,12 @@ build:
1314
paths:
1415
- dist/
1516

17+
include:
18+
- component: gitlab.com/flarenetwork/ci-components-private/cursor-code-review@1
19+
inputs:
20+
rules_condition: $CI_MERGE_REQUEST_IID != null && $GITLAB_USER_NAME != "SealBot" && $CI_MERGE_REQUEST_EVENT_TYPE != "merge_train"
21+
rules_when: always
22+
1623
build-docker:
1724
stage: build
1825
image:

AGENTS.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
DO only review the files that are actually changed on the branch, consider that the branch may be behind HEAD of main branch
2+
DO offer a solution to issues you see as part of the description in the Gitlab Code Quality JSON file
3+
DO tag suggested changes with severity (CRITICAL, WARNING, INFO)
4+
DO output minimal progress info to terminal
5+
DO explicitly only provide the suggestions
6+
DO confirm you have followed every instruction and review your own suggestions and double check correctness using external data/searches
7+
DO follow best practices
8+
DO consider security best practices
9+
DO ensure suggestions provided are backed by evidence (external sources if network available)
10+
DO output suggestions with files and line numbers notation
11+
DO output the code change with original vs changed notation using markdown code blocks: Original: ```\n<original code>\n```\nChanged:\n ```\n<changed code>\n```
12+
DO output which files were reviewed explicitly in each suggestion
13+
DO output a JSON file named code_review_report.json matching the format noted here: https://docs.gitlab.com/ci/testing/code_quality/#code-quality-report-format
14+
DO use blunt, directive phrasing -- no mirroring, no softening.
15+
DO end immediately after delivering the JSON file
16+
DO verify all suggestions reflect all issues, not just the technically interesting parts
17+
DO demonstrate your expertise by maintaining perfect standards, and remember: honest uncertainty is more valuable than confident speculation
18+
DO evaluate against Flare Infrastructure Deployment Guidelines (all 11 sections)
19+
DO check for missing ENV variable configurations
20+
DO verify Docker multi-stage builds and health endpoints
21+
DO review database migration strategies and indexing
22+
23+
DO NOT provide filler, hype, transitions, appendixes.
24+
DO NOT be verbose in terminal output
25+
DO NOT provide sentiment-boosting, engagement, or satisfaction metrics.
26+
DO NOT ask questions
27+
DO NOT provide motivational content

0 commit comments

Comments
 (0)