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

Add update state UpdateRejectedByConfig #836

Merged
merged 2 commits into from Aug 15, 2019
Merged

Conversation

fthomas
Copy link
Member

@fthomas fthomas commented Aug 15, 2019

When pruning repos, Scala Steward now takes into account if updates are
rejected by repo configuration. This will prevent Scala Steward from
unnecessarily working on repos where it determined that a dependency is
outdated but it was actually ignored by the repo config.

When pruning repos, Scala Steward now takes into account if updates are
rejected by repo configuration. This will prevent Scala Steward from
unnecessarily working on repos where it determined that a dependency is
outdated but it was actually ignored by the repo config.
@fthomas fthomas added the enhancement New feature or request label Aug 15, 2019
@fthomas fthomas added this to the 0.4.0 milestone Aug 15, 2019
@codecov
Copy link

codecov bot commented Aug 15, 2019

Codecov Report

Merging #836 into master will decrease coverage by 0.1%.
The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #836      +/-   ##
=========================================
- Coverage   66.31%   66.2%   -0.11%     
=========================================
  Files          88      88              
  Lines        1235    1237       +2     
  Branches       37      39       +2     
=========================================
  Hits          819     819              
- Misses        416     418       +2
Impacted Files Coverage Δ
...a/org/scalasteward/core/update/UpdateService.scala 0% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update d891643...6f7334f. Read the comment docs.

PullRequestUpToDate(dependency, update, uri)
case Some((uri, _, _)) =>
PullRequestOutdated(dependency, update, uri)
repoCache.maybeRepoConfig.map(_.updates.keep(update)) match {
Copy link
Contributor

Choose a reason for hiding this comment

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

Can Steward update a dependency again if the dependency is removed from ignore list in repo config?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes. If the repo config does not ignore it any longer _.updates.keep will return a Right(_) there.

@fthomas fthomas merged commit b5ee619 into master Aug 15, 2019
@fthomas fthomas deleted the topic/UpdateRejectedByConfig branch August 15, 2019 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants