Uploaded image for project: 'Skara'
  1. Skara
  2. SKARA-1516

Command 'git pr integrate' gets error message 'time out'

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0
    • None
    • cli
    • None

      I tried the command `git pr integrate 1341` to integrate SKARA-1495 [1]. The command replies `error: timed out waiting for response to /integrate command`. It is because the bot replies `@lgxbslgx Pushed as commit XXX.` so this line is not started with `Pushed as commit`. And then, the following conditional branch in class `GitPrIntegrate` doesn't be run.

      ```
                          for (var line : lines) {
                              if (line.startsWith("Pushed as commit")) {
                                  var output = removeTrailing(line, ".");
                                  System.out.println(output);
                                  System.exit(0);
                              } else if (line.startsWith("Your change (at version ") &&
                                         line.endsWith(") is now ready to be sponsored by a Committer.")) {
                                  var output = removeTrailing(line, ".");
                                  System.out.println(output);
                                  System.exit(0);
                              }
                          }
      ```

      The command `git pr sponsor` has the same bug.

      [1] https://github.com/openjdk/skara/pull/1341

            gli Guoxiong Li
            gli Guoxiong Li
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: