LeastAuthority / leastbot

0 stars 0 forks source link

Announce (truncated) commit messages on push. #17

Open nathan-at-least opened 10 years ago

nathan-at-least commented 10 years ago

The current push messages look like this example:

'nathan-at-least' pushed 1 commits to 'refs/heads/master' of https://github.com/LeastAuthority/ooni-releng
Push diff: https://github.com/LeastAuthority/ooni-releng/compare/56a2ea8f40fd...34149ad20a61

It would be nice if that was followed by a line like this:

34149ad Add ``all`` make target to generate pdf, detached sig, and clearsigned email txt.

What if someone pushes 50 commits? Maybe this should print up to N of the most recent commits and then if there are more, say:

Omitted 43 more commit messages.

Implementing this won't be feasible with the string template approach, so we need to retain some kind of general function handlers for github event formatting if we want this feature.