@@ -40,6 +40,18 @@ export interface IRepository {
40
40
*/
41
41
addToResourcePolicy ( statement : iam . PolicyStatement ) : void ;
42
42
43
+ /**
44
+ * Convenience method for creating a new {@link PipelineSourceAction},
45
+ * and adding it to the given Stage.
46
+ *
47
+ * @param stage the Pipeline Stage to add the new Action to
48
+ * @param name the name of the newly created Action
49
+ * @param props the optional construction properties of the new Action
50
+ * @returns the newly created {@link PipelineSourceAction}
51
+ */
52
+ addToPipeline ( stage : codepipeline . IStage , name : string , props ?: CommonPipelineSourceActionProps ) :
53
+ PipelineSourceAction ;
54
+
43
55
/**
44
56
* Grant the given principal identity permissions to perform the actions on this repository
45
57
*/
@@ -161,15 +173,6 @@ export abstract class RepositoryBase extends cdk.Construct implements IRepositor
161
173
} ;
162
174
}
163
175
164
- /**
165
- * Convenience method for creating a new {@link PipelineSourceAction},
166
- * and adding it to the given Stage.
167
- *
168
- * @param stage the Pipeline Stage to add the new Action to
169
- * @param name the name of the newly created Action
170
- * @param props the optional construction properties of the new Action
171
- * @returns the newly created {@link PipelineSourceAction}
172
- */
173
176
public addToPipeline ( stage : codepipeline . IStage , name : string , props : CommonPipelineSourceActionProps = { } ) :
174
177
PipelineSourceAction {
175
178
return new PipelineSourceAction ( this , name , {
0 commit comments