File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change 1
- import { getProxyUrl } from " ../../config" ;
2
- import { Step } from " ./Step" ;
1
+ import { getProxyUrl } from ' ../../config' ;
2
+ import { Step } from ' ./Step' ;
3
3
4
4
/**
5
5
* Represents a commit.
@@ -14,6 +14,14 @@ export interface Commit {
14
14
commitTS ?: string ; // TODO: Normalize this to commitTimestamp
15
15
commitTimestamp ?: string ;
16
16
}
17
+ /**
18
+ * Represents an UpdatedRef in the action.
19
+ */
20
+ export interface UpdatedRef {
21
+ ref : string ;
22
+ oldOid : string ;
23
+ newOid : string ;
24
+ }
17
25
18
26
/**
19
27
* Class representing a Push.
@@ -48,6 +56,8 @@ class Action {
48
56
attestation ?: string ;
49
57
lastStep ?: Step ;
50
58
proxyGitPath ?: string ;
59
+ updatedRefs ?: UpdatedRef [ ] ;
60
+ newIdxFiles ?: string [ ] ;
51
61
52
62
/**
53
63
* Create an action.
@@ -62,15 +72,15 @@ class Action {
62
72
this . type = type ;
63
73
this . method = method ;
64
74
this . timestamp = timestamp ;
65
- this . project = repo . split ( "/" ) [ 0 ] ;
66
- this . repoName = repo . split ( "/" ) [ 1 ] ;
75
+ this . project = repo . split ( '/' ) [ 0 ] ;
76
+ this . repoName = repo . split ( '/' ) [ 1 ] ;
67
77
this . url = `${ getProxyUrl ( ) } /${ repo } ` ;
68
78
this . repo = repo ;
69
79
}
70
80
71
81
/**
72
82
* Add a step to the action.
73
- * @param {Step } step
83
+ * @param {Step } step
74
84
*/
75
85
addStep ( step : Step ) : void {
76
86
this . steps . push ( step ) ;
You can’t perform that action at this time.
0 commit comments