cooperspencer / gickup

https://cooperspencer.github.io/gickup-documentation/
Apache License 2.0
964 stars 34 forks source link

Add AWS CodeCommit as a source/destination. #67

Open ndmacioce opened 2 years ago

ndmacioce commented 2 years ago

Add AWS CodeCommit as a source/destination.

CodeCommit is an AWS hosted Git platform. Some users may have source code in there or could use it as a backup if they already have AWS accounts and infrastructure.

Since it's a Git service, most of the functionality should be similar to the existing Git providers in Gickup. But since repos are only available to AWS IAM users in the same AWS account, I can try to take a dive into code and see what kind of effort this would take if you'd like.

cooperspencer commented 2 years ago

That would be awesome.

colindean commented 2 years ago

Poking around, I find https://docs.aws.amazon.com/sdk-for-go/api/service/codecommit/ has the SDK info.

Looks like it's "as easy as" ListRepositories and then GetRepository on each RepositoryName in Repositories output, and get the RepositoryMetadata to get the clone URLs and other info.

https://docs.aws.amazon.com/sdk-for-go/api/service/codecommit/#RepositoryMetadata

I think the GitHub integration would serve as a good model!