File tree Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Expand file tree Collapse file tree 2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -41,21 +41,13 @@ function RunCleanupCode {
41
41
if ($env: APPVEYOR_PULL_REQUEST_HEAD_COMMIT ) {
42
42
Write-Output " Running code cleanup on changed files in pull request"
43
43
44
- $sourceCommitHash = $ env: APPVEYOR_PULL_REQUEST_HEAD_COMMIT
44
+ $mergeCommitHash = git rev - parse " HEAD "
45
45
$targetCommitHash = git rev- parse " $env: APPVEYOR_REPO_BRANCH "
46
46
47
- Write-Output " Source commit hash = $sourceCommitHash "
47
+ Write-Output " Merge commit hash = $mergeCommitHash "
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
-
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
50
+ dotnet regitlint - s JsonApiDotNetCore.sln -- print- command -- jb -- profile -- jb -- profile= ' \"JADNC Full Cleanup\"' -- jb -- properties:Configuration= Release -- jb -- verbosity= WARN -f commits - a $mergeCommitHash - b $targetCommitHash -- fail- on- diff -- print- diff
59
51
CheckLastExitCode
60
52
}
61
53
}
Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ public static T[] Create<T>(params T[] items)
12
12
}
13
13
14
14
15
+
15
16
16
-
17
-
17
+
18
18
19
19
}
You can’t perform that action at this time.
0 commit comments