• Patrick Bajao's avatar
    Refactor processing of ref changes in PostReceive · 7993542b
    Patrick Bajao authored
    To support creating push events in bulk and aggregate them by
    type (branch or tag) and action (created, pushed, deleted), we
    need to be able to segregate the changes into groups.
    
    Having that inside the `PostReceive` worker class will increase
    its reponsibility further. To help with that, a new service
    called `Git::ProcessRefChangesService` has been added.
    
    It's now responsible for processing branch/tag changes and
    delegate it to the appropriate push service class.
    
    This will be later on used to determime whether we need to create
    individual or bulk push events.
    7993542b
post_receive.rb 3.87 KB