#6 Add total_commits field to git.receive authors
Opened by oturpe. Modified
oturpe/pagure-messages author-commit-count  into  master

Download 6.patch

Having commit count per author may be useful for writing rules for Fedora Badges.

Before, type GIT_RECEIVE_USER was used as author type for all Git messages. Renaming the type to GIT_USER and adding new GIT_RECEIVE_USER with additional field total_commits, only used for git.receive action. This way, other messages that git.receive do not change and type names stay consistent with their use.

In order to avoid creating new schema versions, the new field is marked optional.

The related change to messages emitted by Pagure is Pagure pull request #5137

rebased onto d540a900554d711ccbd6d55b532fe9bae75b9dde

@pingou this looks good to me, what do you think?

Metadata