scala-steward-action
scala-steward-action copied to clipboard
No way to reset cache to 'reset' Scala Steward
Due to https://github.com/scala-steward-org/scala-steward-action/pull/316, its now not possible to clear the cache of the action.
Currently, I would like to reset Scala Steward to reopen manually closed PRs.
Im not sure what the middle ground is between https://github.com/scala-steward-org/scala-steward-action/pull/316 and this missing feature.
Will it help to add a "special" case that under some condition (like the presence of an environment variable) completely disables the cache?
@alejandrohdezma Yea, it is indeed an edge case in case you want to rerun scala-steward from scratch ignoring manually closed PRs from the past.
So an environment variable makes total sense to me.
Extra context:
- I ran scala-steward with a personal Github token
- It opened a lot of PRs under my name causing a flood of email notifications
- I manually closed those PRs
- Switched to a Github App token
- Want to reopen all PRs under the new App token
So step 5 is currently not possible as it keeps ignoring the previously opened PRs under my own name.
Removing the cache does not imply that Scala Steward creates new PRs for updates whose PRs were previously closed. It queries the GitHub API for already existing PRs with the same branch name and won't open a new PR if it finds any: https://github.com/scala-steward-org/scala-steward/blob/19909281fa163dd689ed2597dafd26302c279269/modules/core/src/main/scala/org/scalasteward/core/nurture/NurtureAlg.scala#L90-L94
Mmm, so that would mean a change in scala-steward itself to make this possible since there is no flag atm to control this behavior? Does this make sense to be added?
@fthomas does it make sense to have this added in scala-steward
? It could be a new flag like --ignore-old-prs
.