We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cafab6 commit df3d47fCopy full SHA for df3d47f
1 file changed
src/bin/pr-metadata-validator.rs
@@ -24,6 +24,9 @@ struct Args {
24
25
#[arg(long)]
26
give_more_specific_comment_for_earlier_learners: bool,
27
+
28
+ #[arg(long)]
29
+ only_close_existing_comments_with_tag: Option<String>,
30
}
31
32
#[tokio::main]
@@ -45,6 +48,13 @@ async fn main() {
45
48
std::env::var("GH_TOKEN").expect("GH_TOKEN wasn't set - must be set to a GitHub API token");
46
49
let octocrab = octocrab_for_token(github_token).expect("Failed to get octocrab");
47
50
51
+ if let Some(tag) = args.only_close_existing_comments_with_tag {
52
+ close_existing_comments(&octocrab, &pr, &tag)
53
+ .await
54
+ .expect("Failed to close existing comments");
55
+ exit(0);
56
+ }
57
58
let course_schedule = make_fake_course_schedule(pr.repo.clone());
59
60
let course = CourseScheduleWithRegisterSheetId {
0 commit comments