Skip to content

Commit 7401a9b

Browse files
committed
Add inactivityThreshold to repo-specific-configuration.md
1 parent bfe97cd commit 7401a9b

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

docs/repo-specific-configuration.md

+4
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,10 @@ reviewers = [ "username1", "username2" ]
201201
# If true, Scala Steward will sign off all commits (e.g. `git --signoff`).
202202
# Default: false
203203
signoffCommits = true
204+
205+
# Repos whose last commit is older than this threshold are considered
206+
# inactive and are ignored.
207+
inactivityThreshold = "90 days"
204208
```
205209

206210
The version information given in the patterns above can be in two formats:

modules/core/src/main/scala/org/scalasteward/core/util/dateTime.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object dateTime {
3636
Decoder[String].emap(parseFiniteDuration(_).leftMap(_.getMessage))
3737

3838
implicit val finiteDurationEncoder: Encoder[FiniteDuration] =
39-
Encoder[String].contramap(renderFiniteDuration)
39+
Encoder[String].contramap(_.toString)
4040

4141
def showDuration(d: FiniteDuration): String = {
4242
def symbol(unit: TimeUnit): String =

modules/docs/mdoc/repo-specific-configuration.md

+4
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,10 @@ reviewers = [ "username1", "username2" ]
206206
# If true, Scala Steward will sign off all commits (e.g. `git --signoff`).
207207
# Default: false
208208
signoffCommits = true
209+
210+
# Repos whose last commit is older than this threshold are considered
211+
# inactive and are ignored.
212+
inactivityThreshold = "90 days"
209213
"""
210214

211215
DocChecker.verifyParsedEqualsEncoded[RepoConfig](input)

0 commit comments

Comments
 (0)