File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change 5
5
debug ,
6
6
getVariable ,
7
7
setResult ,
8
+ warning ,
8
9
getEndpointAuthorizationParameter
9
10
} from 'azure-pipelines-task-lib'
10
11
import fetch from 'node-fetch'
@@ -37,15 +38,16 @@ const run = async (): Promise<void> => {
37
38
: undefined ,
38
39
project : getVariable ( 'System.TeamProject' ) ,
39
40
repositoryId : getVariable ( 'Build.Repository.ID' ) ,
40
- pullRequestId : getVariable ( 'System.PullRequest.PullRequestId' )
41
+ pullRequestId : getVariable ( 'System.PullRequest.PullRequestId' ) ,
42
+ sha : getVariable ( 'Build.SourceVersion' ) ,
43
+ ref : getVariable ( 'Build.SourceBranch' )
41
44
}
42
45
43
46
if ( ! context . pullRequestId ) {
44
- setResult (
45
- TaskResult . Failed ,
47
+ warning (
46
48
'System.PullRequest.PullRequestId variable not available. ' +
47
- 'Make sure you run this task in a PR build validation pipeline, ' +
48
- 'otherwise we cannot comment back the test results'
49
+ 'Make sure you run this task in a PR build validation pipeline ' +
50
+ 'if you want to see automatic comments with your test results'
49
51
)
50
52
}
51
53
Original file line number Diff line number Diff line change 8
8
"author" : " OctoMind GmbH" ,
9
9
"version" : {
10
10
"Major" : 1 ,
11
- "Minor" : 1 ,
12
- "Patch" : 3
11
+ "Minor" : 2 ,
12
+ "Patch" : 0
13
13
},
14
14
"instanceNameFormat" : " Execute Automagically" ,
15
15
"inputs" : [
Original file line number Diff line number Diff line change 2
2
"manifestVersion" : 1 ,
3
3
"id" : " automagically-execute-task" ,
4
4
"name" : " octomind automagically execute" ,
5
- "version" : " 1.1.3 " ,
5
+ "version" : " 1.2.0 " ,
6
6
"publisher" : " octomind" ,
7
7
"targets" : [
8
8
{
You can’t perform that action at this time.
0 commit comments