Closed t-neumann closed 3 years ago
It should not be too hard, you can look at the GitHub impl
Cool so I just derive the AzureDevOps
class from `RepositoryProvider I guess.
I quickly looked through the methods, looks mostly straighforward except those two - what do they refer to?
/** {@inheritDoc} */
@Override
String getEndpointUrl() {
"${config.endpoint}/repos/${project}"
}
/** {@inheritDoc} */
@Override
String getContentUrl( String path ) {
"${config.endpoint}/repos/$project/contents/$path"
}
These are the API endpoint to access the repository content. For example:
https://developer.github.com/v3/repos/contents/#get-a-repository-readme
There should be an equivalent for Azure I guess
I implemented it as far as I could and hardcoded URLs for testing purposes, crosschecking with the API results when entering it into the browser.
When testrunning it now, I run into an error pretty quickly:
./launch.sh pull quantrocode/slamseq -hub azure
Checking quantrocode/slamseq ...
WARN: Cannot read project manifest -- Cause: bad character in base64 value
bad character in base64 value
Any clue what is going on here?
I can create a PR if that helps to look at code - don't know what's the procedure here.
Too little to say. It looks some problem with base64 decoding.
To make a PR:
Hi - created the PR and made the test repo that is hard-coded in the URLs public so no credentials are required.
Development for this continues in PR #1756
PR #1756 merged that resolves this feature request.
New feature
Hi! Thanks for using Nextflow and submitting the proposal for a new feature or the enhancement of an existing functionality.
Please replace this text providing a short description of your proposal.
Usage scenario
Office365 is used by many research institutions and companies and comes naturally with free code hosting on Azure DevOps. Since GitHub, GitLabs and BitBucket is already supported, I was thinking it would be cool to also add support for Azure DevoOps repos.
Suggest implementation
My Groovy skills are mediocre - and this is even an overstatement. But I could look into it myself if you point me where to look.