Skip to content
Snippets Groups Projects
Select Git revision
  • marioceli-master-patch-34687
  • mshaw1-master-patch-68287
  • andr3-master-patch-06736
  • 363356-positive-intent-first
  • russell/improve-app-security-tools-introduction
  • 361217-delete-streaming-header
  • 361641-comments-discussion-header
  • morefice/add-drop-sequence-helper
  • remove-modal-ok-and-modal-cancel-slots-usage
  • sy-do-not-set-unsupported-sort-order-from-user-preference
  • master default protected
  • pedropombeiro/363308/add-html-field
  • qa-shl-group-inheritance-auth-spec
  • nd/bulk-update-member-await-active-state
  • fix-multiple-stop-actions-n-plus-1-queries
  • 358987-cleanup-feature-flag
  • release-tools/update-gitaly
  • migrate-retry-migration-button
  • id-jwt-gitlab-shell
  • 334810-add-placeholder-assignees-query
  • v15.0.0-ee
  • v14.10.3-ee
  • v15.0.0-rc44-ee
  • v15.0.0-rc43-ee
  • v15.0.0-rc42-ee
  • v14.10.2-ee
  • v14.8.6-ee
  • v14.9.4-ee
  • v14.10.1-ee
  • v14.10.0-ee
  • v14.10.0-rc42-ee
  • v14.9.3-ee
  • v14.6.7-ee
  • v14.7.7-ee
  • v14.8.5-ee
  • v14.9.2-ee
  • v14.7.6-ee
  • v14.9.1-ee
  • v14.9.0-ee
  • v14.9.0-rc42-ee
40 results

environment_spec.rb

Forked from GitLab.org / GitLab
Source project has a limited visibility.
  • Patrick Bajao's avatar
    dff1e638
    Refactor PostReceive to be more readable · dff1e638
    Patrick Bajao authored
    This refactors the implementation of gathering/iterating changes
    from the post-receive hook to be a bit more readable (removed
    the need for calling `enum_for(:changes_refs)` in different
    places).
    
    This is done with the help of the new `Gitlab::Git::Changes`
    collection object which will be used while parsing the changes.
    
    Also changed the signature of BranchPushService and TagPushService
    to accept a single `change` param instead of having oldrev, newrev
    and ref params.
    
    This also prepares the `PostReceive` worker to be able to process
    branches and tags separately so we'll be able to aggregate events
    by branches or tags.
    dff1e638
    History
    Refactor PostReceive to be more readable
    Patrick Bajao authored
    This refactors the implementation of gathering/iterating changes
    from the post-receive hook to be a bit more readable (removed
    the need for calling `enum_for(:changes_refs)` in different
    places).
    
    This is done with the help of the new `Gitlab::Git::Changes`
    collection object which will be used while parsing the changes.
    
    Also changed the signature of BranchPushService and TagPushService
    to accept a single `change` param instead of having oldrev, newrev
    and ref params.
    
    This also prepares the `PostReceive` worker to be able to process
    branches and tags separately so we'll be able to aggregate events
    by branches or tags.