Open SeriesOfUnlikelyExplanations opened 8 months ago
Yes at this moment, notify is available only for class Repository, which represents a new one rather than an imported one(IRepository).
Was that by design or is it a bug? If by design, why?
We should close this issue as CodeCommit is no longer taking new customers and eventually will be deprecated. See here: https://aws.amazon.com/blogs/devops/how-to-migrate-your-aws-codecommit-repository-to-another-git-provider/
@pahud
Describe the bug
When I import a repository, I am unable to use the repo.notify event. It does work when I create a new repo.
This fails:
This works:
Expected Behavior
I expect this to not produce an error:
Current Behavior
I get the following error:
Property 'notify' does not exist on type 'IRepository'. Did you mean 'notifyOn'?
Reproduction Steps
TSError: ⨯ Unable to compile TypeScript: codePipelineStack.ts:65:12 - error TS2551: Property 'notify' does not exist on type 'IRepository'. Did you mean 'notifyOn'?
65 repo.notify(handler.functionArn, {
Possible Solution
Add the notify type to the IRepository class in addition to the Repository class.
Additional Information/Context
No response
CDK CLI Version
2.127.0
Framework Version
No response
Node.js Version
v20.10.0
OS
ubuntu
Language
TypeScript
Language Version
3.9.7
Other information
No response