Skip to content
Snippets Groups Projects

Make the commit list more robust

Closed Martin Lowe requested to merge (removed):malowe/master/nil_checks into master
2 unresolved threads

Uses git rev-list instead of git cherry to list commits. This has the option to ignore known/non-new commits which should reduce the noise in the console. Additionally, updated to use better checks for skipping certain events (like deletion events) and rely on the write perms instead.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
46 51 previous_head_commit = stdin_args[0]
47 52 new_head_commit = stdin_args[1]
48 53
54 ## Check if we should even process (branch or tag get deleted)
55 if ($new_head_commit = $zero_commit) then
56 puts "Commit is a deletion of a branch, not validating commit (nothing to validate)"
  • Mikaël Barbero approved this merge request

    approved this merge request

  • Martin Lowe added 1 commit

    added 1 commit

    • 572ac132 - Update eca ruby script to clean \r and validate all new commits

    Compare with previous version

  • Martin Lowe resolved all threads

    resolved all threads

  • Christopher Guindon approved this merge request

    approved this merge request

  • Martin Lowe added 1 commit

    added 1 commit

    • ba05c057 - Revert newline fix to be committed in new branch

    Compare with previous version

  • 10 - 443
    11 - 80
    12 - 22
    13 volumes:
    14 - '/localdocker/gitlab/config:/etc/gitlab'
    15 - '/localdocker/gitlab/logs:/var/log/gitlab'
    16 - '/localdocker/gitlab/data:/var/opt/gitlab'
    1 version: '3.6'
    2 services:
    3
    4 web:
    5 image: 'gitlab/gitlab-ce:latest'
    6 restart: always
    7 hostname: gitlab.dev.docker
    8 environment:
    9 VIRTUAL_HOST: "gitlab.dev.docker"
  • Martin Lowe added 1 commit

    added 1 commit

    • 3c72c0e4 - Update docker-compose to remove unneeded env vars

    Compare with previous version

  • Christopher Guindon approved this merge request

    approved this merge request

  • closed

  • Please register or sign in to reply
    Loading