Skip to content
GitLab
菜单
项目
群组
代码片段
/
帮助
帮助
支持
社区论坛
快捷键
?
提交反馈
登录/注册
切换导航
菜单
打开侧边栏
KMSCAKKSCFKA AKFACAMADCAS
brew
提交
5657e109
提交
5657e109
编辑于
11月 22, 2021
作者:
fn ⌃ ⌥
浏览文件
Apply suggestions from code review
上级
56724da0
变更
1
Hide whitespace changes
Inline
Side-by-side
Library/Homebrew/dev-cmd/tap-new.rb
浏览文件 @
5657e109
...
...
@@ -44,17 +44,7 @@ module Homebrew
titleized_repo
=
tap
.
repo
.
dup
titleized_user
[
0
]
=
titleized_user
[
0
].
upcase
titleized_repo
[
0
]
=
titleized_repo
[
0
].
upcase
pr_pull_env
=
{}
pr_pull_env
[
"HOMEBREW_GITHUB_API_TOKEN"
]
=
"${{ github.token }}"
pr_pull_env
[
"PULL_REQUEST"
]
=
"${{ github.event.pull_request.number }}"
if
args
.
github_packages?
pr_pull_env
[
"HOMEBREW_GITHUB_PACKAGES_USER"
]
=
"${{ github.actor }}"
pr_pull_env
[
"HOMEBREW_GITHUB_PACKAGES_TOKEN"
]
=
"${{ github.token }}"
root_url
=
GitHubPackages
.
root_url
(
tap
.
user
,
"homebrew-
#{
tap
.
repo
}
"
)
end
root_url
=
GitHubPackages
.
root_url
(
tap
.
user
,
"homebrew-
#{
tap
.
repo
}
"
)
if
args
.
github_packages?
(
tap
.
path
/
"Formula"
).
mkpath
...
...
@@ -139,7 +129,10 @@ module Homebrew
- name: Pull bottles
env:
#{
pr_pull_env
.
map
{
|
k
,
v
|
"
#{
k
}
:
#{
v
}
"
}
.join "
\n
#{
" "
*
10
}
"}
HOMEBREW_GITHUB_API_TOKEN: ${{ github.token }}
HOMEBREW_GITHUB_PACKAGES_TOKEN: ${{ github.token }}
HOMEBREW_GITHUB_PACKAGES_USER: ${{ github.actor }}
PULL_REQUEST: ${{ github.event.pull_request.number }}
run: brew pr-pull --debug --tap=$GITHUB_REPOSITORY $PULL_REQUEST
- name: Push commits
...
...
编辑
预览
支持
Markdown
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录