Skip to content

Commit 734f870

Browse files
authored
Merge branch 'master' into async-standup-v2
2 parents fab2bfc + 9dc4a1d commit 734f870

File tree

2 files changed

+80
-1
lines changed

2 files changed

+80
-1
lines changed

.coderabbit.yaml

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
2+
language: en-US
3+
reviews:
4+
profile: "chill"
5+
high_level_summary: false
6+
changed_files_summary: false
7+
sequence_diagrams: false
8+
poem: false
9+
review_status: false
10+
collapse_walkthrough: true
11+
estimate_code_review_effort: false
12+
assess_linked_issues: false
13+
related_issues: false
14+
related_prs: false
15+
suggested_labels: false
16+
suggested_reviewers: false
17+
in_progress_fortune: false
18+
enable_prompt_for_ai_agents: false
19+
auto_review:
20+
drafts: true
21+
pre_merge_checks:
22+
description:
23+
mode: "off"
24+
title:
25+
mode: "off"
26+
issue_assessment:
27+
mode: "off"
28+
path_instructions:
29+
- path: "payjoin/src/**/*.rs"
30+
instructions: |
31+
Check for these Rust API guideline violations:
32+
33+
C-CALLER-CONTROL (critical): Flag any pub fn taking &T, &str,
34+
or &[u8] that internally clones, copies, or calls .to_owned()
35+
/ .to_string() / .to_vec() on the parameter. The fix is to
36+
take T, String, or Vec<u8> by value and let the caller decide
37+
whether to clone or move.
38+
39+
Also check the Rust API guidelines checklist:
40+
- C-COMMON-TRAITS: pub types should impl Send, Sync, Debug,
41+
Display, Default, serde traits where appropriate
42+
- C-CONV: use From/Into and AsRef for conversions rather than
43+
ad-hoc methods
44+
- C-GETTER: prefer foo() / set_foo() naming for getters and
45+
setters, not get_foo()
46+
- C-ITER: collections should impl IntoIterator and expose
47+
iter(), iter_mut() where appropriate
48+
- C-SERDE: pub types should impl Serialize/Deserialize when
49+
they represent data that crosses process boundaries
50+
- C-SEND-SYNC: err on the side of Send + Sync for pub types
51+
unless there is a specific reason not to
52+
53+
If no violations are found, say "No findings." Do not invent
54+
issues. Format: file:line - pattern - suggested fix.
55+
- path: "payjoin-cli/src/**/*.rs"
56+
instructions: |
57+
Check for these Rust API guideline violations:
58+
59+
C-CALLER-CONTROL (critical): Flag any pub fn taking &T, &str,
60+
or &[u8] that internally clones, copies, or calls .to_owned()
61+
/ .to_string() / .to_vec() on the parameter. The fix is to
62+
take T, String, or Vec<u8> by value and let the caller decide
63+
whether to clone or move.
64+
65+
Also check the Rust API guidelines checklist:
66+
- C-COMMON-TRAITS: pub types should impl Send, Sync, Debug,
67+
Display, Default, serde traits where appropriate
68+
- C-CONV: use From/Into and AsRef for conversions rather than
69+
ad-hoc methods
70+
- C-GETTER: prefer foo() / set_foo() naming for getters and
71+
setters, not get_foo()
72+
- C-ITER: collections should impl IntoIterator and expose
73+
iter(), iter_mut() where appropriate
74+
- C-SEND-SYNC: err on the side of Send + Sync for pub types
75+
unless there is a specific reason not to
76+
77+
If no violations are found, say "No findings." Do not invent
78+
issues. Format: file:line - pattern - suggested fix.

.github/scripts/create_standup_discussion.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,8 @@ def gather_activity(user, since_date):
147147
merged_prs = search_issues(f"author:{user} type:pr merged:>{since}")
148148

149149
# PRs reviewed
150-
reviewed_prs = search_issues(f"reviewed-by:{user} type:pr updated:>{since}")
150+
reviewed_prs = search_issues(f"reviewed-by:{user} type:pr updated:>{since}"
151+
151152
# Exclude PRs the user authored (already counted above)
152153
reviewed_prs = [pr for pr in reviewed_prs if pr["user"]["login"] != user]
153154

0 commit comments

Comments
 (0)