File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -39,14 +39,22 @@ function RunCleanupCode {
39
39
# When running in cibuild for a pull request, this reformats only the files changed in the PR and fails if the reformat produces changes.
40
40
41
41
if ($env: APPVEYOR_PULL_REQUEST_HEAD_COMMIT ) {
42
- Write-Output " Running code cleanup in cibuild for pull request"
42
+ Write-Output " Running code cleanup on changed files in pull request"
43
43
44
44
$sourceCommitHash = $env: APPVEYOR_PULL_REQUEST_HEAD_COMMIT
45
45
$targetCommitHash = git rev- parse " $env: APPVEYOR_REPO_BRANCH "
46
46
47
47
Write-Output " Source commit hash = $sourceCommitHash "
48
48
Write-Output " Target commit hash = $targetCommitHash "
49
49
50
+
51
+ $mergeCommitHash = git rev- parse " HEAD"
52
+ Write-Output " mergeCommitHash = $mergeCommitHash "
53
+
54
+ $altMergeCommitHash = git rev- parse " $env: APPVEYOR_PULL_REQUEST_HEAD_REPO_BRANCH "
55
+ Write-Output " altMergeCommitHash = $altMergeCommitHash "
56
+
57
+
50
58
dotnet regitlint - s JsonApiDotNetCore.sln -- print- command -- jb -- profile -- jb -- profile= ' \"JADNC Full Cleanup\"' -- jb -- properties:Configuration= Release -- jb -- verbosity= WARN -f commits - a $sourceCommitHash - b $targetCommitHash -- fail- on- diff -- print- diff
51
59
CheckLastExitCode
52
60
}
@@ -99,7 +107,7 @@ CheckLastExitCode
99
107
dotnet build - c Release
100
108
CheckLastExitCode
101
109
102
- RunInspectCode
110
+ # RunInspectCode
103
111
RunCleanupCode
104
112
105
113
dotnet test - c Release -- no- build -- collect:" XPlat Code Coverage"
You can’t perform that action at this time.
0 commit comments