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

Fixing getRepositoryURL when project-name not provided #5560

Merged
merged 4 commits into from
Dec 9, 2024

Conversation

jorgee
Copy link
Contributor

@jorgee jorgee commented Dec 3, 2024

The getRepositoryUrl in SCM Azure provider is returning an incomplete URL when organization-name/project-name/repo-name is provided. It is mainly caused because the project-name seems optional and the repo-name is only included RepositoryProvider.project variable when project-name is not provided.
Just a adding a flag to indicate when project-name and use it in the getRepositoryUrl to include the repo name seems enough to fix the issue.

I think in Nextflow the getRepositoryUrl is mainly used for logging purposes and unit tests, because there was no error pulling the repositories using both options (with and without project-name)

Signed-off-by: jorgee <[email protected]>
Copy link

netlify bot commented Dec 3, 2024

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit df795ff
🔍 Latest deploy log https://app.netlify.com/sites/nextflow-docs-staging/deploys/6757150ed32e4b0008246964

@jorgee jorgee changed the title Fixing PLAT-974 Fixing getRepositoryURL when project-name not provided Dec 3, 2024
@jorgee jorgee requested a review from pditommaso December 9, 2024 17:26
Copy link
Member

@pditommaso pditommaso left a comment

Choose a reason for hiding this comment

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

Nice. Requires another round of tests before merging it.

@pditommaso pditommaso merged commit 335701e into master Dec 9, 2024
36 checks passed
@pditommaso pditommaso deleted the test-plat-794 branch December 9, 2024 20:02
pditommaso added a commit that referenced this pull request Dec 16, 2024

Signed-off-by: jorgee <[email protected]>
Signed-off-by: Paolo Di Tommaso <[email protected]>
Co-authored-by: Paolo Di Tommaso <[email protected]>
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.

3 participants