-
Notifications
You must be signed in to change notification settings - Fork 9
Add ADO support and ADO git URL handling #960
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
base: main
Are you sure you want to change the base?
Conversation
secustor
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for picking this up
| return { | ||
| host: url.resource, | ||
| repository: url.full_name, | ||
| repository: repository, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| repository: repository, | |
| repository: `${url.owner}/${url.repo}`, |
Rather than doing this manually this seems more stable
https://github.com/IonicaBizau/git-url-parse/blob/master/test/index.js
| @@ -0,0 +1,6 @@ | |||
| --- | |||
| '@secustor/backstage-plugin-renovate-backend': patch | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| '@secustor/backstage-plugin-renovate-backend': patch | |
| '@secustor/backstage-plugin-renovate-backend': minor |
Also split up these changesets please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apologies, not too familiar with changesets. Yeah, I can break them up into one for each package.
| token: ${GITHUB_TOKEN} | ||
| azure: | ||
| - host: dev.azure.com | ||
| token: ${AZURE_PAT_TOKEN} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct based on the docs.
https://backstage.io/docs/integrations/azure/locations#using-a-personal-access-token-pat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are correct, it is a deprecated method though still currently working. The way listed in the docs is the updated way though I wasn't sure if more changes would've been needed if I did the one listed in their docs. I can test and find out though. If it isn't a huge hassle, I'll update it to use the documented version shortly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, please update to the upstream documented style
Adds ADO and adds handling its odd repo structure.
This PR provides the actual support needed for ADO to be found with git due to how ADO urls work. Otherwise simple-git will fail the URL passed by the backend.
ADO git urls look something like dev.azure.com/org/project/_git/repo or org.visualstudio.com/project/_git/repo
I've went ahead and merged in the changes from the other PR and added the needed ones to actually run against ADO in this one.