Forráskód Böngészése

修复“等待审查”和“等待修改”的label判断问题 (#11)

LoGin 2 hónapja
szülő
commit
cd98ef2e55

+ 1 - 1
github-graphql/src/lib.rs

@@ -36,7 +36,7 @@ pub mod queries {
             states: "OPEN",
             first: 100,
             after: $after,
-            labels: ["S-waiting-on-review"],
+            labels: ["S-等待审查"],
             orderBy: {direction: "ASC", field: "UPDATED_AT"}
         )]
         pub pull_requests: PullRequestConnection,

+ 2 - 2
src/handlers/assign.rs

@@ -39,13 +39,13 @@ mod tests {
 }
 
 const NEW_USER_WELCOME_MESSAGE: &str = "Thanks for the pull request, and welcome! \
-The Rust team is excited to review your changes, and you should hear from {who} \
+The DragonOS Community is excited to review your changes, and you should hear from {who} \
 some time within the next two weeks.";
 
 const CONTRIBUTION_MESSAGE: &str = "Please see [the contribution \
 instructions]({contributing_url}) for more information. Namely, in order to ensure the \
 minimum review times lag, PR authors and assigned reviewers should ensure that the review \
-label (`S-waiting-on-review` and `S-waiting-on-author`) stays updated, invoking these commands \
+label (`S-等待审查` and `S-等待作者修改`) stays updated, invoking these commands \
 when appropriate:
 
 - `@{bot} author`: the review is finished, PR author should check the comments and take action accordingly

+ 2 - 2
src/handlers/shortcut.rs

@@ -26,8 +26,8 @@ pub(super) async fn handle_command(
     }
 
     let issue_labels = issue.labels();
-    let waiting_on_review = "S-waiting-on-review";
-    let waiting_on_author = "S-waiting-on-author";
+    let waiting_on_review = "S-等待审查";
+    let waiting_on_author = "S-等待作者修改";
     let blocked = "S-blocked";
     let status_labels = [waiting_on_review, waiting_on_author, blocked];
 

+ 2 - 2
src/triage.rs

@@ -78,8 +78,8 @@ pub async fn pulls(
                 .collect::<Vec<_>>()
                 .join(", ")
         });
-        let wait_for_author = labels.contains("S-waiting-on-author");
-        let wait_for_review = labels.contains("S-waiting-on-review");
+        let wait_for_author = labels.contains("S-等待作者修改");
+        let wait_for_review = labels.contains("S-等待审查");
         let html_url = base_pull.html_url.unwrap();
         let number = base_pull.number;
         let title = base_pull.title.unwrap();

+ 1 - 1
templates/prioritization_agenda.tt

@@ -132,7 +132,7 @@ don't know
 
 (TIP) Curate this list before the meeting
 
-[T-compiler](https://github.com/rust-lang/rust/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-asc+label%3AS-waiting-on-review+draft%3Afalse+label%3AT-compiler)
+[T-compiler](https://github.com/rust-lang/rust/pulls?q=is%3Apr+is%3Aopen+sort%3Aupdated-asc+label%3AS-等待审查+draft%3Afalse+label%3AT-compiler)
 {{-issues::render(issues=top_unreviewed_prs, with_age=true, empty="No unreviewed PRs on `T-compiler` this time.")}}
 
 ## Next week's WG checkins