You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let full_message = format!("{message}\n\nIf this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).");
81
+
let full_message = format!("{message}\n\nIf this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed).\n\nIf this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above.");
82
82
eprintln!("{}", full_message);
83
83
octocrab
84
-
.issues(github_org_name, module_name)
84
+
.issues(&github_org_name,&module_name)
85
85
.create_comment(pr_number, full_message)
86
86
.await
87
87
.expect("Failed to create comment with validation error");
88
+
let remove_label_response = octocrab
89
+
.issues(&github_org_name,&module_name)
90
+
.remove_label(pr_number,"Needs Review")
91
+
.await;
92
+
match remove_label_response {
93
+
Ok(_) => {
94
+
println!(
95
+
"Found issues for PR #{}, notified and removed label",
0 commit comments