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
Support on prem GitHub release notes / changelog #1563
Support on prem GitHub release notes / changelog #1563
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1563 +/- ##
==========================================
+ Coverage 70.63% 70.77% +0.13%
==========================================
Files 113 113
Lines 1822 1827 +5
Branches 53 51 -2
==========================================
+ Hits 1287 1293 +6
+ Misses 535 534 -1
Continue to review full report at Codecov.
|
Your change would restrict linking to release notes to only the VCS the current installation is running on. Should this PR address: #1088 ? Just to understand your motivation. |
@mzuehlke looks like we can solve it this way:
WDYT? |
I think your proposal looks like a perfect way to solve this issue. 👍 |
@mzuehlke please review again |
@fthomas could you please review this PR? The Codacy failure sounds like false positive |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A really good PR.
Let me know what you think about my comments.
But I'm fine with merging this PR like it is now.
modules/core/src/main/scala/org/scalasteward/core/vcs/VCSExtraAlg.scala
Outdated
Show resolved
Hide resolved
@@ -73,51 +73,90 @@ package object vcs { | |||
possibleFilenames(baseNames) | |||
} | |||
|
|||
def possibleCompareUrls(repoUrl: Uri, update: Update): List[VersionDiff] = { | |||
private[this] def extractRepoVCSType( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one more, related to the first comment:
extractRepoVCSType
could live in VCSExtraAlg
and you would only need to pass the RepoVCSType
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then possibleCompareUrls
and possibleReleaseRelatedUrls
would need to be extracted to VCSExtraAlg
as well (right now it's in package object), which make sense for me as well
I can try to make it as separated PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mzuehlke have it as separated PR here: eugeniyk#1
I think we can merge #1563 as is and continue with refactorings in PR above, wdyt?
Thanks @eugeniyk for contributing to scala-steward 👍 |
@mzuehlke glad to improve this awesome tool! |
Currently we have
github.com
and other urls hardcoded in the code, which makes it unusable in environments with different on-prem domain names.Fixes #1088