Skip to content

Conversation

@GigiaJ
Copy link

@GigiaJ GigiaJ commented Jan 4, 2026

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.

Copy link
Owner

@secustor secustor left a 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,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
'@secustor/backstage-plugin-renovate-backend': patch
'@secustor/backstage-plugin-renovate-backend': minor

Also split up these changesets please

Copy link
Author

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}
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Author

@GigiaJ GigiaJ Jan 5, 2026

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.

Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants