File tree 5 files changed +28
-6
lines changed
5 files changed +28
-6
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,13 @@ To use this task a token is required. Don't have one? We're here to help.
16
16
inputs :
17
17
url :
18
18
token : ${{ secrets.AUTOMAGICALLY_TOKEN }}
19
+ testTargetId : <your testTargetId that you also get from us>
19
20
` ` `
20
21
22
+ ## Change Log
23
+
24
+ - 2023-07-23: Added requirement for setting ` testTargetId` to enable v2 API
25
+
21
26
# # Publishing notes
22
27
23
28
There is currently no way to publish without a personal access token. It currently is relying
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import fetch from 'node-fetch'
13
13
const urlDefault = 'https://app.octomind.dev/'
14
14
const urlOverride = getInput ( 'automagicallyUrl' , false ) ?? ''
15
15
const automagicallyUrl = urlOverride . length === 0 ? urlDefault : urlOverride
16
- const executeUrl = `${ automagicallyUrl } /api/v1 /execute`
16
+ const executeUrl = `${ automagicallyUrl } /api/v2 /execute`
17
17
18
18
const run = async ( ) : Promise < void > => {
19
19
try {
@@ -29,6 +29,12 @@ const run = async (): Promise<void> => {
29
29
return
30
30
}
31
31
32
+ const testTargetId = getInputRequired ( 'testTargetId' )
33
+ if ( ! testTargetId ) {
34
+ setResult ( TaskResult . Failed , 'testTargetId is required' )
35
+ return
36
+ }
37
+
32
38
// https://learn.microsoft.com/en-us/azure/devops/pipelines/build/variables
33
39
const collectionUri = getVariable ( 'System.TeamFoundationCollectionUri' )
34
40
@@ -67,6 +73,7 @@ const run = async (): Promise<void> => {
67
73
body : JSON . stringify ( {
68
74
token,
69
75
url,
76
+ testTargetId,
70
77
context : {
71
78
source : 'azureDevOps' ,
72
79
accessToken,
Original file line number Diff line number Diff line change 7
7
"category" : " Utility" ,
8
8
"author" : " OctoMind GmbH" ,
9
9
"version" : {
10
- "Major" : 1 ,
11
- "Minor" : 2 ,
10
+ "Major" : 2 ,
11
+ "Minor" : 0 ,
12
12
"Patch" : 0
13
13
},
14
14
"instanceNameFormat" : " Execute Automagically" ,
26
26
"label" : " Deployment URL" ,
27
27
"required" : true ,
28
28
"helpMarkDown" : " URL to your publicly accessible deployment that will be tested"
29
+ },
30
+ {
31
+ "name" : " testTargetId" ,
32
+ "type" : " string" ,
33
+ "label" : " Test Target ID" ,
34
+ "required" : true ,
35
+ "helpMarkDown" : " ID for your test target, recevied from us"
29
36
}
30
37
],
31
38
"execution" : {
Original file line number Diff line number Diff line change @@ -16,4 +16,5 @@ To use this task a token is required. Don't have one? We're here to help.
16
16
inputs :
17
17
url : https://public.url
18
18
token : ${{ secrets.AUTOMAGICALLY_TOKEN }}
19
+ testTargetId : <your testTargetId that you also get from us>
19
20
` ` `
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.2 .0" ,
5
+ "version" : " 2.0 .0" ,
6
6
"publisher" : " octomind" ,
7
7
"targets" : [
8
8
{
14
14
"path" : " overview.md"
15
15
}
16
16
},
17
- "galleryFlags" : [ " Preview" ],
17
+ "galleryFlags" : [
18
+ " Preview"
19
+ ],
18
20
"public" : true ,
19
21
"description" : " Tools for interacting with octomind. Includes one execute task." ,
20
22
"categories" : [
25
27
},
26
28
"scopes" : [
27
29
" vso.threads_full"
28
- ],
30
+ ],
29
31
"files" : [
30
32
{
31
33
"path" : " automagicallyexecute"
You can’t perform that action at this time.
0 commit comments