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
```
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