Skip to content

Commit 2ebc36b

Browse files
authored
Merge pull request #2073 from apiraino/fix-mcp-concern-retrieval
Update MCP concerns retrieval
2 parents f72b997 + e202448 commit 2ebc36b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/github.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2174,12 +2174,12 @@ impl<'q> IssuesQuery for Query<'q> {
21742174
}
21752175

21762176
/// Return open concerns filed in an issue under MCP/RFC process
2177-
/// Concerns are marked by `@rfcbot concern` and `@rfcbot resolve`
2177+
/// Concerns are marked by `@rustbot concern` and `@rustbot resolve`
21782178
fn find_open_concerns(comments: Vec<Comment>) -> Option<Vec<(String, String)>> {
21792179
let re_concern_raise =
2180-
Regex::new(r"@rfcbot concern (?P<concern_title>.*)").expect("Invalid regexp");
2180+
Regex::new(r"@rustbot concern (?P<concern_title>.*)").expect("Invalid regexp");
21812181
let re_concern_solve =
2182-
Regex::new(r"@rfcbot resolve (?P<concern_title>.*)").expect("Invalid regexp");
2182+
Regex::new(r"@rustbot resolve (?P<concern_title>.*)").expect("Invalid regexp");
21832183
let mut raised: HashMap<String, String> = HashMap::new();
21842184
let mut solved: HashMap<String, String> = HashMap::new();
21852185

@@ -2198,11 +2198,11 @@ fn find_open_concerns(comments: Vec<Comment>) -> Option<Vec<(String, String)>> {
21982198

21992199
// pick the first match only
22002200
if !r.is_empty() {
2201-
let x = r[0].replace("@rfcbot concern", "");
2201+
let x = r[0].replace("@rustbot concern", "");
22022202
raised.insert(x.trim().to_string(), comment.html_url.to_string());
22032203
}
22042204
if !s.is_empty() {
2205-
let x = s[0].replace("@rfcbot resolve", "");
2205+
let x = s[0].replace("@rustbot resolve", "");
22062206
solved.insert(x.trim().to_string(), comment.html_url.to_string());
22072207
}
22082208
}

0 commit comments

Comments
 (0)