github - 使 github 中的 jira 链接可点击

标签 github jira

无论如何我可以在 github 上直接将 jira 票证 ID 链接到 jira 吗? (与在 bitbucket 上发生的方式大致相同?)
也许有一个插件或我可以使用的东西?

抱歉,如果这是发布此类问题的错误位置,请评论我是否应该将其发布到其他地方。

编辑:
我特别希望 github 中的票证 ID 链接到 JIRA,这在以下任何资源中都没有描述:

  • How do I connect github to JIRA?
  • https://confluence.atlassian.com/display/BITBUCKET/Linking+Bitbucket+and+GitHub+accounts+to+JIRA
  • https://help.github.com/articles/integrating-jira-with-your-projects/
  • 最佳答案

    2022 年更新:
    Dusan Plavak the comments 中提及即,截至今天(2022 年第一季度),您还可以 import / automate creation of autolinks via github api .
    您也可以使用 gh api :

    gh api repos/octocat/hello-world/autolinks \
           -f -q 'key_prefix:key_prefix url_template:url_template'
    

    2019:无需 Chrome 插件、Safari hack 或脚本。
    例如,从 2019 年 10 月起,GitHub 可以自动将 TICKET 引用转换为 Jira 链接。
    参见 Save time linking resources with autolink references 中的“ Lars Schneider ” .

    Now you can set up an autolink reference and GitHub will automatically create links (to external systems) for you.

    https://i2.wp.com/user-images.githubusercontent.com/477434/66348334-994e1000-e956-11e9-8c87-9e871c221955.gif?resize=992%2C458&ssl=1

    How it works

    If you use GitHub with external services (like Jira), you might be familiar with shorthand references (like TICKET-123) to point to resources in those external systems.

    Starting today, GitHub can automatically transform shorthand references into clickable links for GitHub Pro, Team, and Enterprise plans.


    所以不是常规的 github.com。

    To enable this feature, a repository admin needs to register the reference prefix (such as TICKET-) in the settings.
    Afterwards, references of that type are detected in issues, pull requests, comments, or commit messages, and turned into links.

    This speeds up navigation between GitHub and external systems.


    documentation .
    请注意,尽管包含在 anchor 文本中,但超链接中不包含票证前缀。设置中的 URL 预览是准确的:
    GitHub Autolinks are not so awesome for Jira
    上面复制的功能公告中的动画显示了这种限制,但并不清楚。
    这意味着您必须在目标 URL 中也包含项目键,或者在所有项目键前加上另一个键并将其用作自动链接前缀。
    你甚至不能使用 Git 的 trailers引用票证并使用自动链接,因为预告片是由 : 分隔的键值对(冒号空格)和以空格结尾的自动链接前缀无效。

    关于github - 使 github 中的 jira 链接可点击,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29473255/

    相关文章:

    git - origin 似乎不是 git 存储库

    java - 从 Jira 获取所有工作时间

    jira - 获取包含开始日期和结束日期的冲刺列表

    java - 使用 Selenium WebAPI 进行 Jira 测试自动化

    github - 转让 Github 组织所有权

    Windows Ubuntu Bash SSH 进入 Github

    ruby-on-rails - 如何在heroku上克隆项目

    git - 整洁、干净的压缩 git PR 并将提交 merge 为一个提交

    email - 是否有用于编辑 Jira 电子邮件模板的 UI?

    jira - 使用 Jira API 查找所有项目的所有用户