Skip to content

Commit ec863dc

Browse files
committed
Remove author field from concerns data
1 parent b32d8ee commit ec863dc

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/handlers/concern.rs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ struct ConcernData {
2121
#[derive(Debug, PartialEq, Eq, Clone, serde::Serialize, serde::Deserialize)]
2222
struct Concern {
2323
title: String,
24-
author: String,
2524
comment_url: String,
2625
status: ConcernStatus,
2726
}
@@ -44,7 +43,6 @@ pub(super) async fn handle_command(
4443
let Some(comment_url) = event.html_url() else {
4544
bail!("unable to retrieve the comment url")
4645
};
47-
let author = event.user().login.to_owned();
4846
let issue = &issue_comment.issue;
4947

5048
// Verify that this issue isn't a rfcbot FCP, skip if it is
@@ -100,7 +98,6 @@ pub(super) async fn handle_command(
10098
{
10199
concern_data.concerns.push(Concern {
102100
title,
103-
author,
104101
status: ConcernStatus::Active,
105102
comment_url: comment_url.to_string(),
106103
});
@@ -185,7 +182,6 @@ fn markdown_content(concerns: &[Concern], bot: &str) -> String {
185182

186183
for &Concern {
187184
ref title,
188-
author: _,
189185
ref status,
190186
ref comment_url,
191187
} in concerns
@@ -216,13 +212,11 @@ fn simple_markdown_content() {
216212
let concerns = &[
217213
Concern {
218214
title: "This is my concern about concern".to_string(),
219-
author: "Urgau".to_string(),
220215
status: ConcernStatus::Active,
221216
comment_url: "https://github.com/fake-comment-1234".to_string(),
222217
},
223218
Concern {
224219
title: "This is a resolved concern".to_string(),
225-
author: "Kobzol".to_string(),
226220
status: ConcernStatus::Resolved {
227221
comment_url: "https:://github.com/fake-comment-8888".to_string(),
228222
},
@@ -248,7 +242,6 @@ fn simple_markdown_content() {
248242
fn resolved_concerns_markdown_content() {
249243
let concerns = &[Concern {
250244
title: "This is a resolved concern".to_string(),
251-
author: "Kobzol".to_string(),
252245
status: ConcernStatus::Resolved {
253246
comment_url: "https:://github.com/fake-comment-8888".to_string(),
254247
},

0 commit comments

Comments
 (0)