Skip to content
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

Fix azure repos when clone URL is used #5667

Conversation

jorgee
Copy link
Contributor

@jorgee jorgee commented Jan 14, 2025

  • Add support for Clone URL.
  • Unifies the parse of URL path to extract organization, project and repository in all the supported cases. (AzureRepositoryProvider.getUniformPath). It is used in the AzureRepositoryProvider constructor to get the project and repo and in the ProviderConfig.resolveProjectName used when pulling the pipeline from a repo.

Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@jorgee jorgee linked an issue Jan 14, 2025 that may be closed by this pull request
Copy link

netlify bot commented Jan 14, 2025

Deploy Preview for nextflow-docs-staging ready!

Name Link
🔨 Latest commit 4c000b5
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/6788dbc66953120008165c83
😎 Deploy Preview https://deploy-preview-5667--nextflow-docs-staging.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@adamrtalbot
Copy link
Collaborator

Before ❌ :

Jan-14 15:29:11.119 [main] INFO  nextflow.cli.CmdRun -  downloaded from https://dev.azure.com/seqera-dev/test-project/_git/test-project

After ✅ :

Jan-14 15:29:49.307 [main] INFO  nextflow.cli.CmdRun -  downloaded from https://dev.azure.com/seqera-dev/test-project/_git/another-repo

Beautiful, thanks @jorgee!

…rovider.groovy

Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Jorge Ejarque <jorgee@users.noreply.github.com>
@jorgee
Copy link
Contributor Author

jorgee commented Jan 14, 2025

Before ❌ :

Jan-14 15:29:11.119 [main] INFO  nextflow.cli.CmdRun -  downloaded from https://dev.azure.com/seqera-dev/test-project/_git/test-project

After ✅ :

Jan-14 15:29:49.307 [main] INFO  nextflow.cli.CmdRun -  downloaded from https://dev.azure.com/seqera-dev/test-project/_git/another-repo

Beautiful, thanks @jorgee!

Is it also working with Platform?

@adamrtalbot
Copy link
Collaborator

Is it also working with Platform?

Platform imports the code, so we can't test it until a platform engineer updates the code itself.

@jorgee
Copy link
Contributor Author

jorgee commented Jan 14, 2025

Dmitry, just tested it in platform. @pditommaso I think it is ready to review and merge. Should we backport the changes to 24.10.4?

@jorgee jorgee requested a review from pditommaso January 14, 2025 17:26
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
@jorgee jorgee requested a review from pditommaso January 15, 2025 16:14
@pditommaso pditommaso merged commit dc6cc41 into master Jan 16, 2025
20 checks passed
@pditommaso pditommaso deleted the 5665-incorrect-behaviour-when-clone-url-format-is-provided-in-azure-repos branch January 16, 2025 13:33
pditommaso added a commit that referenced this pull request Jan 20, 2025
Signed-off-by: jorgee <jorge.ejarque@seqera.io>
Signed-off-by: Jorge Ejarque <jorgee@users.noreply.github.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Co-authored-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect behaviour when clone url format is provided in Azure repos
4 participants