?????????????????????????
????1???? Redmine ?в? GitLab ????е?????
????2??Redmine ?и??? Gitlab ???
????3?????? Git Commit Log ??? Redmine ?е? Issue ????
????????????
?????ù????? Kubernetes ????????ɡ?
????Redmine??sameersbn/redmine:3.3.1 Gitlab?????????
????Redmine ????
?????????????
???????????????? Redmine?????? Administration -> Repositories ?? settings?tab=repositories ????
????SCM
????· Enabled SCM ?У?????????? Gitlab???????????? Git ????? Git ????????????????????? git?????? Redmine ?? configuuration.yml ?н??????á?
????· Fetch commits automatically??True??????????????????????????????????????????????
????· Enable WS for repository management??True
????· Repository management WS API key???????????????? API Key?????????? WebHook ??????
????Commit ???????
????· Referencing keywords?????ù?????????????????? Commit ????м??? refs #1 ??????л??е? #1 Issue ???????
????· ????????п?????? Commit log ?е?????? Issue ???и??£?????????????????д fixed fixed %60 ????????? Commit ???????????? fixed #1 ?????? Issue #1 ????? Fixed??????????? 60%??
??????????? Git ???
?????? Redmine ?????????·???У???? git ????????? git clone --mirror git@github.com:git_user/project.git
??????????????
????· ?????????????????棨 projects/[project-id]/settings/repositories ??
????· ?????
????· ·?????????????е???????λ?á?
????· ???檔
????· ?? projects/[project-id]/repository ?У????????????汾?????????????????? diff ???????
??????????
????????????? Redmin ???
?????ò?????? Redmine ?????У???????????? Gitlab ?? Webhook Post ????
????Github?? https://github.com/phlegx/redmine_gitlab_hook
????????? Redmine ????????????? Redmine ?????????
?????????? Redmine ?? admin/plugins ?п???????°????????
???????? settings/plugin/redmine_gitlab_hook ????? All branches ??
????Gitlab ????
????Gitlab ?????÷????????????? Issue ???????????????????? Redmine??????????? Webhook ????????????????? Redmine ????????
????Issue
???????? Gitlab ???????????????棺 [project-url]/services ????? redmine ???????
????· Active??True
????· Trigger??Push
????· Project url??Redmine ?????????????????? http://redmine.local/projects/sample-project
????· Issues url??????? Project url + issues ?????? http://redmine.local/projects/sample-project/issues
????· New issue url??????? Issues url + new ?????? http://redmine.local/projects/sample-project/issues/new
???????????????????? Issue ??????????? Redmine ?С???? Low ???????
????Webhook
????Webhook ?? Gitlab ????????????????????????????????? Redmine ?? Gitlab ???Э???????? Redmine ??????????
???????????? Webhook ??棺 [project-url]/hooks ??????????URL ?????д http://redmine-url/gitlab_hook?project_id=[project-id]&key=[repository-token] ??key ??????????????? Repository Token??
????????
????Git clone ????????????????? Comment ??д?? fixed #1???? Redmine ?е???? Issue ??????????