scala-steward
scala-steward copied to clipboard
Add support for Azure Repos
This PR adds support for Azure Repos as requested on #2659
Azure APi Doce: here
WIth this feature, scala-steward can be run on Azure Repos using docker as follows
- Create and add an access token to
pass.sh
file: See how
echo "#!/bin/sh" >> pass.sh
echo "echo '$AZURE_REPO_ACCESS_TOKEN'" >> pass.sh
- Run steward
docker run -v $PWD:/opt/scala-steward \
-it fthomas/scala-steward:latest \
-DLOG_LEVEL=TRACE \
--do-not-fork \
--workspace "/opt/scala-steward/workspace" \
--repos-file "/opt/scala-steward/repos.md" \
--git-author-email "[email protected]" \
--vcs-type "azure-repos" \
--vcs-api-host "https://dev.azure.com" \
--vcs-login "[email protected]" \
--azure-repos-organization "mycompany" \
--git-ask-pass "/opt/scala-steward/pass.sh"
Codecov Report
Merging #2677 (6acb53e) into main (fcd5ea3) will increase coverage by
0.19%
. The diff coverage is87.03%
.
@@ Coverage Diff @@
## main #2677 +/- ##
==========================================
+ Coverage 81.32% 81.52% +0.19%
==========================================
Files 146 150 +4
Lines 2592 2695 +103
Branches 43 50 +7
==========================================
+ Hits 2108 2197 +89
- Misses 484 498 +14
Impacted Files | Coverage Δ | |
---|---|---|
...ala/org/scalasteward/core/application/Config.scala | 100.00% <ø> (ø) |
|
...scala/org/scalasteward/core/vcs/VCSSelection.scala | 17.39% <0.00%> (-4.84%) |
:arrow_down: |
...lasteward/core/vcs/azurerepos/authentication.scala | 0.00% <0.00%> (ø) |
|
...main/scala/org/scalasteward/core/vcs/package.scala | 86.04% <53.84%> (-13.96%) |
:arrow_down: |
...steward/core/vcs/azurerepos/AzureReposApiAlg.scala | 95.65% <95.65%> (ø) |
|
...g/scalasteward/core/vcs/azurerepos/JsonCodec.scala | 97.77% <97.77%> (ø) |
|
.../scala/org/scalasteward/core/application/Cli.scala | 100.00% <100.00%> (ø) |
|
...main/scala/org/scalasteward/core/vcs/VCSType.scala | 100.00% <100.00%> (ø) |
|
...ala/org/scalasteward/core/vcs/azurerepos/Url.scala | 100.00% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.