git 如何在 GitLab 中创建里程碑

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19567026/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 09:15:30  来源:igfitidea点击:

How to create a milestones in GitLab

gitgitlab

提问by Hoffmann

I'm kind of new to Git and I'm using a GitLab repository to track my issue list. I wanted to create milestones but I can not find where. Are milestones and issue tracking part of the git itself and not of Gitlab?

我是 Git 的新手,我正在使用 GitLab 存储库来跟踪我的问题列表。我想创建里程碑,但我找不到在哪里。里程碑和问题跟踪是 git 本身而不是 Gitlab 的一部分吗?

EDIT: This is my milestones page screenshot: There is no new Milestone button on it

编辑:这是我的里程碑页面截图:上面没有新的里程碑按钮

回答by VonC

Are milestones and issue tracking part of the git itself and not of Gitlab?

里程碑和问题跟踪是 git 本身而不是 Gitlab 的一部分吗?

No, they are part of GitLab only, not git.

不,它们只是 GitLab 的一部分,而不是 git。

If that hasn't change from issue 339, you have a "new milestone" button in the Issuessection, tab 'Milestones':

如果这与issue 339没有变化,则在Issues选项卡“ Milestones”部分中有一个“新里程碑”按钮:

http://cloud.github.com/downloads/gitlabhq/gitlabhq/milestones.png

http://cloud.github.com/downloads/gitlabhq/gitlabhq/milestones.png



As the OP Hoffmannreports: the presence of this button depends on your role(or abilities).

正如OP Hoffmann报告的那样:此按钮的存在取决于您的角色(或能力)。

As you can see in ability.rb, only the ability 'master' allows to create / manage milestones:

正如您在 中看到的ability.rb,只有能力“ master”允许创建/管理里程碑:

def project_master_rules
  project_dev_rules + [
    :push_code_to_protected_branches,
    :modify_issue,
    :modify_project_snippet,
    :modify_merge_request,
    :admin_issue,
    :admin_milestone,                   <=============
    :admin_project_snippet,
    :admin_team_member,
    :admin_merge_request,
    :admin_note,
    :admin_wiki,
    :admin_project
  ]
end

回答by Roman

If you are using an external issue-tracker that is integrated into gitlab, you can't use milestones!

如果您使用的是集成到 gitlab 中的外部问题跟踪器,则不能使用里程碑!