I'm creating a pull request template for my repository.
我正在为我的存储库创建一个拉取请求模板。
I added a new file, following the instructions at https://help.github.com/articles/creating-a-pull-request-template-for-your-repository/ , and now I want its' body to contain a string generated using the current branch name (the pull request branch name).
我按照https://help.github.com/articles/creating-a-pull-request-template-for-your-repository/上的说明添加了一个新文件,现在我希望它的'正文包含一个字符串使用当前分支名称生成(拉取请求分支名称)。
Couldn't find the answer in GitHub's docs, would like to know if it's possible and if so how?
在GitHub的文档中找不到答案,想知道它是否可能,如果可能,怎么样?
1 个解决方案
#1
0
I tweeted the question: "is there a way to get the current branch name in a pull request template?"
我在Twitter上发布了一个问题:“有没有办法在拉取请求模板中获取当前分支名称?”
mentioning the GitHub account and this is the answer I was given:
提到GitHub帐户,这就是我给出的答案:
No, there currently isn't but if this is something you want included in all pull request submissions, you might want to check out Probot: https://probot.github.io . I recently created https://github.com/probot/view-rendered … that edits the pull request body to add rendered links for docs.
不,目前还没有,但如果这是您想要包含在所有提取请求中的内容,您可能需要查看Probot:https://probot.github.io。我最近创建了https://github.com/probot/view-rendered ...,它编辑了拉取请求主体,为文档添加了渲染链接。
Link to tweet: https://twitter.com/korndaniel1/status/1022468460226469888
链接到推文:https://twitter.com/korndaniel1/status/1022468460226469888
#1
0
I tweeted the question: "is there a way to get the current branch name in a pull request template?"
我在Twitter上发布了一个问题:“有没有办法在拉取请求模板中获取当前分支名称?”
mentioning the GitHub account and this is the answer I was given:
提到GitHub帐户,这就是我给出的答案:
No, there currently isn't but if this is something you want included in all pull request submissions, you might want to check out Probot: https://probot.github.io . I recently created https://github.com/probot/view-rendered … that edits the pull request body to add rendered links for docs.
不,目前还没有,但如果这是您想要包含在所有提取请求中的内容,您可能需要查看Probot:https://probot.github.io。我最近创建了https://github.com/probot/view-rendered ...,它编辑了拉取请求主体,为文档添加了渲染链接。
Link to tweet: https://twitter.com/korndaniel1/status/1022468460226469888
链接到推文:https://twitter.com/korndaniel1/status/1022468460226469888