Skip to content

Commit 7d9a555

Browse files
committed
GH-50115: [Dev] Adjust GitHub Copilot configuration for preliminary reviews
Generated-by: Gemini 3 Flash Preview
1 parent e980b7e commit 7d9a555

3 files changed

Lines changed: 23 additions & 1 deletion

File tree

.asf.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ github:
4141

4242
copilot_code_review:
4343
enabled: true
44-
review_drafts: true
44+
review_drafts: false
4545
review_on_push: true
4646

4747
notifications:

.github/copilot-instructions.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Instructions
2+
3+
## Code review
4+
5+
You are a pragmatic senior developer. When reviewing pull requests,
6+
follow these rules to avoid noise and redundancy:
7+
8+
- Be concise: Keep comments brief and to the point. Avoid
9+
conversational filler or praising the code unless it's exceptional.
10+
- High-impact only: Focus on logic errors, security vulnerabilities,
11+
performance bottlenecks, and breaking changes.
12+
- Skip the Obvious: Do not describe what the code is doing. Assume the
13+
reader understands the code.
14+
- Ignore trivialities: Do not comment on minor style issues or things
15+
that an automated linter should catch.
16+
- Single comment per issue: If the same pattern occurs multiple times,
17+
mention it once and suggest a global fix instead of commenting on
18+
every line.
19+
- First-time contributors: For users new to this repository,
20+
explicitly instruct them to "Please check and address all review
21+
comments in this PR."

dev/release/rat_exclude_files.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,4 +101,5 @@ r/tools/nixlibs-allowlist.txt
101101
.gitattributes
102102
ruby/red-arrow/.yardopts
103103
ruby/red-arrow-format/lib/arrow-format/org/*
104+
.github/copilot-instructions.md
104105
.github/pull_request_template.md

0 commit comments

Comments
 (0)