Similarityoung commented on code in PR #964:
URL: https://github.com/apache/dubbo-go-pixiu/pull/964#discussion_r3611673808
##########
.github/workflows/github-actions.yml:
##########
@@ -66,6 +66,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
+ with:
+ fetch-depth: 2
Review Comment:
当前 `fetch-depth: 2` 只保证 `HEAD~` 可解析,但 workflow 同时监听 `push`,一次推送多个 commit 时
`issues.new: true` 只会检查最后一个 commit。 隔离检查中,第一个 commit 新增的 SA1019 在第二个无关 commit
后被 `golangci-lint v2.4.0` 报为 `0 issues`,所以新废弃调用仍可通过该 CI。 请为 `push` 使用事件的 before
SHA、为 PR 使用 base SHA,并获取对应历史后显式设置 new-from-rev。
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]