refactor(on_push_hook): display the URL to the compare view for pushed commit on push@@ -50,7 +50,9 @@ const makeOnPushEvent: ServiceMethodFactory<
if (data.payload != null) {
message.write("🖖 See the details of your push at:\n");
if (data.payload.refType === "head") {
- message.write(`🧲 ${baseUrl}/${data.payload.refName}/tree/\n`);
+ message.write(
+ `🧲 ${baseUrl}/compare/HEAD^^..${data.payload.commitId}\n`
+ );
} else if (data.payload.refType === "tag") {
message.write(`➡️ ${baseUrl}/tags/${data.payload.refName}\n`);
}