====== Gitlab ====== * https://about.gitlab.com ===== gitlab-cli ===== * https://glab-cli.io/ * https://github.com/profclems/glab ====== Disable Force Push ====== * rebase, squash 등으로 이미 remote 에 반영된 커밋을 변경하는 것을 방지하기. * 각각 리포지토리의 branch 별로 설정하는게 있긴하지만, 전역 반영기능은 현재 없다. * 따라서 gitlab hook을 사용해야 한다. * [[https://stackoverflow.com/questions/45374801/is-it-possible-in-gitlab-to-disable-force-push-for-all-branches-but-allow-to-de|Is it possible in Gitlab to disable force push for all branches, but allow to delete them? - Stack Overflow]] * ''gitlab-shell/hooks/pre-receive.d/disable-force-push.sh'' #!/bin/sh # # update a blame tree while read oldrev newrev ref ; do # old revision is blank - branch creation if [ "$oldrev" = "0000000000000000000000000000000000000000" ] || # new revision is blank - branch deletion [ "$newrev" = "0000000000000000000000000000000000000000" ] ; then # create new or delete old branch continue; fi base=$(git merge-base $oldrev $newrev); if [ "$base" != "$oldrev" ] ; then # non fast forward merge echo "Force pushing of $ref is forbidden"; exit 1; fi done exit 0; ===== auto merge / 자동 머지 ===== * https://stackoverflow.com/questions/67516773/is-there-any-way-to-auto-merge-branches-in-gitlab * https://github.com/tmaier/gitlab-auto-merge-request ===== 참조 ===== * [[https://docs.gitlab.com/ee/ci/unit_test_reports.html|Unit test reports | GitLab]] * [[https://qiita.com/leechungkyu/items/ff82c3bcd2b7dd9e8a18|JIRA Development 패널에 GitLab 연동하기 - Qiita]]