-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support AWS CodeCommit with "guess" option ? #61
Comments
Hello Aurélien! Thank you for the very detailed feature request. Right now the A while back we added an option that will change "commit" to "commits" in the guessed URL if it finds any of the configured sub-strings in the origin. If it is possible to make a change of similar size I would love to add it. For example I could add a token for getting the |
I'd love to see such a feature for |
Thank you for the input nitzel! The relative path for the file is not readily available already and is therefore a lot more work to add. I will however add |
Hey,
TL;DR : how to have the plugin auto guess the correct URI for AWS CodeCommit. bottom line questions are at the very bottom.
I'm trying to get the URL thingy working for an AWS CodeCommit repository.
There's multiple way to clone such repository :
I used HTTPS.
There's multiple ways to authenticate to the git repository for checking out :
I use the later, but I'm unsure if this is important to the use of this extension.
When cloning a repository via HTTPS, regardless of the authentication method, we get an URI like this : https://git-codecommit.[AWS_REGION].amazonaws.com/v1/repos/[REPONAME]
This extension uses this URI by default to construct the link for viewing : I believe this URI cannot be used via a browser to browse the repository. I tried to authenticate with credentials fetched from the aws-cli helper, with no success :
This returns a username & password that I used to access :
All of these URI yield :
From the AWS Console, the browsing URI to see a commit details would be
https://[AWS_REGION].console.aws.amazon.com/codesuite/codecommit/repositories/[REPONAME]/commit/[COMMITID]?region=[AWS_REGION]
(I'm not sure about the usefulness of this last AWS_REGION, as removing it let stuff working).I have read the README about constructing a custom URI with the help of variables, an I can make one work for me :
https://eu-west-1.console.aws.amazon.com/codesuite/codecommit/repositories/${project.name}/commit/${hash}
, but this assumes all repository will be in eu-west-1The text was updated successfully, but these errors were encountered: