Skip to content
GitLab
菜单
为什么选择 GitLab
定价
联系销售
探索
为什么选择 GitLab
定价
联系销售
探索
登录
获取免费试用
主导航
搜索或转到…
项目
A
aspnetcore
管理
动态
成员
标记
计划
议题
议题看板
里程碑
Wiki
代码
合并请求
仓库
分支
提交
标签
仓库图
比较修订版本
代码片段
构建
流水线
作业
流水线计划
产物
部署
发布
Package registry
容器镜像库
模型注册表
运维
环境
Terraform 模块
监控
事件
服务台
分析
价值流分析
贡献者分析
CI/CD 分析
仓库分析
模型实验
帮助
帮助
支持
GitLab 文档
比较 GitLab 各版本
社区论坛
为极狐GitLab 提交贡献
提交反馈
隐私声明
快捷键
?
新增功能
4
代码片段
群组
项目
显示更多面包屑
dotnet
aspnetcore
提交
1c8efc4b
提交
1c8efc4b
编辑于
3 years ago
作者:
dotnet-bot
浏览文件
操作
下载
差异文件
Merge in 'release/6.0' changes
上级
1813ea0b
717740e2
No related branches found
No related tags found
无相关合并请求
变更
3
隐藏空白变更内容
行内
左右并排
显示
3 个更改的文件
.github/workflows/ReportDiff.ps1
+0
-29
0 个添加, 29 个删除
.github/workflows/ReportDiff.ps1
.github/workflows/backport.yml
+5
-0
5 个添加, 0 个删除
.github/workflows/backport.yml
.github/workflows/runtime-sync.yml
+0
-72
0 个添加, 72 个删除
.github/workflows/runtime-sync.yml
有
5 个添加
和
101 个删除
.github/workflows/ReportDiff.ps1
已删除
100644 → 0
+
0
−
29
浏览文件 @
1813ea0b
# Check the code is in sync
$changed
=
(
select-string
"nothing to commit"
artifacts\status.txt
)
.
count
-eq
0
if
(
-not
$changed
)
{
return
$changed
}
# Check if tracking issue is open/closed
$Headers
=
@{
Authorization
=
'token {0}'
-
f
$
ENV
:
GITHUB_TOKEN
;
};
$result
=
Invoke-RestMethod
-Uri
$issue
if
(
$result
.
state
-eq
"closed"
)
{
$json
=
"{
`"
state
`"
:
`"
open
`"
}"
$result
=
Invoke-RestMethod
-Method
PATCH
-Headers
$Headers
-Uri
$issue
-Body
$json
}
# Add a comment
$status
=
[
IO.File
]::
ReadAllText
(
"artifacts\status.txt"
)
$diff
=
[
IO.File
]::
ReadAllText
(
"artifacts\diff.txt"
)
$body
=
@"
The shared code is out of sync.
<details>
<summary>The Diff</summary>
``````
$status
$diff
``````
</details>
"@
$json
=
ConvertTo-Json
-InputObject
@{
'body'
=
$body
}
$issue
=
$issue
+
'/comments'
$result
=
Invoke-RestMethod
-Method
POST
-Headers
$Headers
-Uri
$issue
-Body
$json
return
$changed
\ No newline at end of file
此差异已折叠。
点击以展开。
.github/workflows/backport.yml
+
5
−
0
浏览文件 @
1c8efc4b
...
...
@@ -3,6 +3,11 @@ on:
issue_comment
:
types
:
[
created
]
permissions
:
contents
:
write
issues
:
write
pull-requests
:
write
jobs
:
backport
:
if
:
github.event.issue.pull_request != '' && contains(github.event.comment.body, '/backport to')
...
...
此差异已折叠。
点击以展开。
.github/workflows/runtime-sync.yml
已删除
100644 → 0
+
0
−
72
浏览文件 @
1813ea0b
name
:
AspNetCore-Runtime Code Sync
on
:
# Manual run
workflow_dispatch
:
schedule
:
# * is a special character in YAML so you have to quote this string
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows#scheduled-events-schedule
# Once per day at midnight PST (8 UTC)
-
cron
:
'
0
8
*
*
*'
jobs
:
compare_repos
:
# Comment out this line to test the scripts in a fork
if
:
github.repository == 'dotnet/aspnetcore'
name
:
Compare the shared code in the AspNetCore and Runtime repos and notify if they're out of sync.
runs-on
:
windows-latest
steps
:
-
name
:
Checkout aspnetcore
uses
:
actions/checkout@v2.0.0
with
:
# Test this script using changes in a fork
repository
:
'
dotnet/aspnetcore'
path
:
aspnetcore
ref
:
main
-
name
:
Checkout runtime
uses
:
actions/checkout@v2.0.0
with
:
# Test this script using changes in a fork
repository
:
'
dotnet/runtime'
path
:
runtime
ref
:
main
-
name
:
Copy
shell
:
cmd
working-directory
:
.\runtime\src\libraries\Common\src\System\Net\Http\aspnetcore\
env
:
ASPNETCORE_REPO
:
d:\a\aspnetcore\aspnetcore\aspnetcore\
run
:
CopyToAspNetCore.cmd
-
name
:
Diff
shell
:
cmd
working-directory
:
.\aspnetcore\
run
:
|
mkdir ..\artifacts
git status > ..\artifacts\status.txt
git diff > ..\artifacts\diff.txt
-
uses
:
actions/upload-artifact@v1
with
:
name
:
results
path
:
artifacts
-
name
:
Check and Notify
id
:
check
shell
:
pwsh
env
:
GITHUB_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
run
:
|
# Test this script using an issue in the local forked repo
$issue = 'https://api.github.com/repos/dotnet/aspnetcore/issues/18943'
$changed = .\aspnetcore\.github\workflows\ReportDiff.ps1
echo "::set-output name=changed::$changed"
-
name
:
Send PR
if
:
steps.check.outputs.changed == 'true'
# https://github.com/marketplace/actions/create-pull-request
uses
:
dotnet/actions-create-pull-request@v3
with
:
token
:
${{ secrets.GITHUB_TOKEN }}
path
:
.\aspnetcore
commit-message
:
'
Sync
shared
code
from
runtime'
title
:
'
Sync
shared
code
from
runtime'
body
:
'
This
PR
was
automatically
generated
to
sync
shared
code
changes
from
runtime.
Fixes
#18943'
labels
:
area-runtime
base
:
main
branch
:
github-action/sync-runtime
branch-suffix
:
timestamp
此差异已折叠。
点击以展开。
预览
0%
加载中
请重试
或
添加新附件
.
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
保存评论
取消
想要评论请
注册
或
登录