centraldogma
centraldogma copied to clipboard
Display the original commit message when mirroring
Currently, the commit message of a commit that is pushed by the mirroring task looks like this:
Mirror fbee605, git+ssh://github.com/xxx.git#master to the repository 'foo'
It does not contain the original commit message which is useful to users. It would be nice if we can display the original commit message. We can retrieve the message via:
Iterable<RevCommit> call = git.log().setMaxCount(1).call();
We might display the message using the detail field. However, the current UI does not display it so we should revamp the UI beforehand.
There might be more than 1 commit involved in a mirroring attempt. Should we show every commit message (up to N commits)?
Should we show every commit message (up to N commits)?
That's a good idea.
At second thought, we probably should show the latest one only, given we're going to use shallow clone and shallow fetch (see #801).
From my understanding, here is the pr: https://github.com/line/centraldogma/pull/818 Please help review 🤗
Closed via #818 Thanks, @thachlp!