dcoapp / app

GitHub App that enforces the Developer Certificate of Origin (DCO) on Pull Requests
https://github.com/apps/dco
ISC License
296 stars 73 forks source link

Better output format for commits? #184

Open appetrosyan opened 2 years ago

appetrosyan commented 2 years ago

Currently all output of DCO is text-wrapped at random locations which makes it extremely difficult to read. I propose adjusting the text output slightly:

Commit: sha - adfaf43 - Author: Aleksandr Petrosyan (Commiter: Aleksandr Petrosyan) <remove if the same>
Expected: `Signed-off-by: Aleksandr <a-p-petrosyan@yandex.ru>`
Actual: `Signed-off-by: Aleksandr Petrosyan <a-p-petrosyan@yandex.ru>`

Benefits

I often have to amend commits on my team's behalf. Much easier to be able to copy-and-paste directly. Also more readable, because the second line always contains Expected: <Stuff> and the third line always Actual <wrong-stuff>.

If it were possible to specify this template optionally for projects that prefer the old format, it'd also be great.