Make the commit list more robust
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
Activity
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)" Also more context, the following line is how we detect new branches: !69 (572ac132)
changed this line in version 3 of the diff
added 1 commit
- 572ac132 - Update eca ruby script to clean \r and validate all new commits
mentioned in issue eclipsefdn/helpdesk#869 (closed)
added 1 commit
- ba05c057 - Revert newline fix to be committed in new branch
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" Also, are you sure these environment variables are needed? I would expect them to be useful when using something like https://github.com/nginx-proxy/nginx-proxy
changed this line in version 4 of the diff
added 1 commit
- 3c72c0e4 - Update docker-compose to remove unneeded env vars