Skip to content

Commit

Permalink
improvement: Fix the script a bit and rename renamed repos
Browse files Browse the repository at this point in the history
  • Loading branch information
tgodzik committed Oct 30, 2024
1 parent d673ed1 commit eb79fe3
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 43 deletions.
76 changes: 38 additions & 38 deletions repos-github.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,8 @@
- augustjune/canoe
- austinwarrren/til
- av8data/add_transformers
- avast/datadog4s
- avast/datadog4s:series/cats-effect2
- datadog4s/datadog4s
- datadog4s/datadog4s:series/cats-effect2
- avast/grpc-json-bridge
- avast/scala-server-toolkit
- avast/slog4s
Expand Down Expand Up @@ -167,7 +167,7 @@
- circe/circe-yaml
- circe/sbt-circe-org
- CJSmith-0141/absurd
- CleverCloud/akka-warp10-scala-client
- CleverCloud/warp10-scala-client
- codacy/codacy-analysis-cli
- codelytv/scala-basic-skeleton.g8
- comcast/ip4s
Expand Down Expand Up @@ -211,7 +211,7 @@
- cquiroz/sbt-tzdb
- cquiroz/scala-java-locales
- cquiroz/scala-java-time
- crealytics/spark-excel
- nightscape/spark-excel
- criteo/lolhttp
- d2a4u/meteor
- d10xa/jadd
Expand All @@ -231,7 +231,7 @@
- debiki/talkyard
- delimobil/cabbit
- delimobil/cabbit-example
- DFiantHDL/DFiant
- DFiantHDL/DFHDL
- dieproht/matr
- dieproht/molly
- dimitarg/weaver-test-extra
Expand All @@ -240,7 +240,7 @@
- disneystreaming/smithy4s
- disneystreaming/smithy4s.g8
- disneystreaming/smithy-translate
- dispalt/tagless-redux
- goodcover/tagless-redux
- domino-osgi/domino-java
- doriordan/skuber
- doubleloop-io/applied-fp-workshop-scala
Expand All @@ -251,9 +251,9 @@
- dvgica/healthful
- dvgica/managerial
- dvgica/periodic
- dwijnand/sbt-dynver
- sbt/sbt-dynver
- dwijnand/sbt-project-graph
- dylandoamaral/zinteract
- dylandoamaral/zio-selenium
- eed3si9n/expecty
- EffectOrientedProgramming/examples:base
- eikek/binny
Expand Down Expand Up @@ -359,7 +359,7 @@
- fun-stack/example
- fun-stack/local-env
- fun-stack/sdk-scala
- fwbrasil/kyo
- getkyo/kyo
- gekomad/itto-csv
- geneontology/gaferencer
- gfc-collective/gfc-aws-s3
Expand All @@ -380,7 +380,7 @@
- guardrail-dev/guardrail
- guardrail-dev/guardrail-maven-plugin
- guardrail-dev/guardrail-sample-gradle-springmvc
- guardrail-dev/guardrail-sample-http4s
- guardrail-dev/guardrail-sample-sbt-http4s
- guardrail-dev/guardrail-sample-sbt-akkahttp
- guardrail-dev/sbt-guardrail
- gumdrop/quizleague
Expand Down Expand Up @@ -408,7 +408,7 @@
- INCATools/boomer
- INCATools/relation-graph
- INCATools/whelk
- informalsystems/apalache
- apalache-mc/apalache
- ing-bank/baker
- inoio/solrs
- intracer/scalawiki
Expand Down Expand Up @@ -450,13 +450,13 @@
- johnspade/csv3s
- johnynek/bosatsu
- jpbnetley/Mongo-csv-importer
- justapagamentos/playframework-core
- felipebonezi/play-ground
- jwojnowski/fs2-aes
- jwojnowski/humanoid
- jwojnowski/oidc4s
- jwojnowski/scuid
- jwt-scala/jwt-scala
- jxnu-liguobin/scala-macro-tools
- bitlap/smt
- kailuowang/mau
- kailuowang/sbt-catalysts
- kaizen-solutions/virgil
Expand Down Expand Up @@ -562,7 +562,7 @@
- m2-oss/calypso
- macro-peg/macro_peg
- makiftutuncu/e
- manocha-aman/wind-alerts
- elegantwebaustralia/wind-alerts
- mariohuizar/stream-detector:develop
- MartinHH/scalacheck-derived
- matsluni/aws-spi-akka-http
Expand Down Expand Up @@ -620,7 +620,7 @@
- nafg/slick-additions
- nafg/slick-migration-api
- nafg/slick-migration-api-flyway
- NakajoLab/B4-Processor
- NakajoLab/B4SMT
- naoh87/lettucef
- nebula-contrib/zio-nebula
- nemoo/play-slick3-example
Expand All @@ -637,7 +637,7 @@
- nigeleke/ohmic:develop
- nigeleke/scala-seed.g8
- nikitaDanilenko/foodie
- niklasf/lila-openingexplorer
- lichess-org/lila-openingexplorer
- nikolaiser/biser
- nivanov/cosplay
- nixiesearch/nixiesearch
Expand All @@ -657,18 +657,18 @@
- NthPortal/v
- ocadotechnology/pass4s
- odenzo/scala3-template
- olafurpg/sbt-ci-release
- sbt/sbt-ci-release
- OpenOlitor/openolitor-server
- openzipkin/zipkin-finagle
- open-electrons/open-electrons-templates
- optics-dev/Monocle
- orbeon/orbeon-forms
- otus-load/gatling-sampler
- outwatch/outwatch
- outwatch/seed.g8
- outwatch/example
- oyvindberg/bleep
- pathikrit/better-files
- pathikrit/dijon
- jvican/dijon
- paulbutcher/ScalaMock
- pbernet/akka_streams_tutorial
- peregin/gps-overlay-on-video
Expand All @@ -684,7 +684,7 @@
- phenoscape/phenoscape-kb-web-ui
- Philippus/akka-http-testkit-munit
- Philippus/baggage-jwt
- Philippus/base64
- Philippus/base64-fork
- Philippus/between
- Philippus/bump
- Philippus/elastic4s
Expand Down Expand Up @@ -792,7 +792,7 @@
- Ragazoor/typed-future
- rayrobdod/string-context-parser-combinator
- rcmartins/blinky
- reactific/riddl
- ossuminc/riddl
- ReactiveMongo/Play-ReactiveMongo
- ReactiveMongo/ReactiveMongo
- ReactiveMongo/ReactiveMongo-BSON
Expand Down Expand Up @@ -888,10 +888,10 @@
- sbt/setup-sbt
- sbt/zinc
- ScalablyTyped/Converter
- ScalaConsultants/mesmer-akka-agent
- ScalaConsultants/zio-akka-quickstart.g8
- ScalaConsultants/mesmer
- ScalaConsultants/zio-scala2-quickstart.g8
- ScalaConsultants/zio-dotty-quickstart.g8
- ScalaConsultants/zio-quickstart.g8
- ScalaConsultants/zio-scala3-quickstart.g8
- ScalaConsultants/zio-slick-interop
- scalalandio/chimney
- scalapb/protobuf-scala-runtime
Expand All @@ -916,9 +916,9 @@
- scala-tsi/scala-tsi
- scala-ts/scala-ts
- scala/hello-world.g8
- scala/jardiff
- lightbend-labs/jardiff
- scala/make-release-notes
- scala/nanotest-strawman
- eed3si9n/verify
- scala/sbt-scala-module
- scala/scala
- scala/scala3.g8
Expand All @@ -936,7 +936,7 @@
- scala/scala-library-next
- scala/scala-parallel-collections
- scala/scala-parser-combinators
- scala/scala-rewrites
- lightbend-labs/scala-rewrites
- scala/scala-seed.g8
- scala/scala-xml
- scala/scala:2.12.x
Expand All @@ -958,10 +958,10 @@
- seblm/seblm-meals
- senia-psm/zio-test-akka-http
- sentenza/cats-http4s-crypto
- sentenza/hacktoberfest-scala-algorithms
- sentenza/scala-algorithms
- SethTisue/adventofcode
- SethTisue/Project-Euler
- shadaj/scalapy
- scalapy/scalapy
- shadaj/slinky
- ShiftLeftSecurity/codepropertygraph
- ShiftLeftSecurity/js2cpg
Expand All @@ -970,14 +970,14 @@
- sideeffffect/liquibase-doobie
- sideeffffect/sbt-decent-scala
- sideeffffect/zio-testcontainers
- sirgraystar/mandyville-modelling
- owendavies93/mandyville-modelling
- siriusxm/snapshot4s
- sirthias/borer
- sirthias/spliff
- sksamuel/avro4s
- sksamuel/pulsar4s
- sksamuel/sbt-scapegoat
- sksamuel/scapegoat
- CleverCloud/pulsar4s
- scapegoat-scala/sbt-scapegoat
- scapegoat-scala/scapegoat
- slack-scala-client/slack-scala-client
- Slakah/slakah.github.io
- slick/hello-slick
Expand Down Expand Up @@ -1010,7 +1010,7 @@
- sullis/scala-hello-world-app
- suzaku-io/boopickle
- svroonland/rezilience
- svroonland/zio-amqp
- zio/zio-amqp
- svroonland/zio-kinesis
- swagger-akka-http/swagger-enumeratum-module
- swagger-akka-http/swagger-pekko-http
Expand All @@ -1026,7 +1026,7 @@
- SymphonyQL/SymphonyQL
- SystemFw/upperbound
- taig/flog
- taig/lokal
- taig/babel
- taig/sbt-blowout
- taig/sbt-houserules
- tailcallhq/zio-compose
Expand Down Expand Up @@ -1060,15 +1060,15 @@
- ThoughtWorksInc/todo
- ThoughtWorksInc/tryt.scala
- TimWSpence/cats-stm
- TinkoffCreditSystems/typed-schema
- tofu-tf/typed-schema
- tkrs/fluflu
- tkrs/mess
- tkrs/orcus
- tminglei/slick-pg
- TobiasRoland/scala-xml-encoder
- ToToTec/CmdOption
- tototoshi/slick-joda-mapper
- tpolecat/doobie
- typelevel/doobie
- trace4cats/trace4cats
- trace4cats/trace4cats-avro
- trace4cats/trace4cats-avro-kafka
Expand Down Expand Up @@ -1116,7 +1116,7 @@
- uptane/treehub
- user-signal/fs2-mqtt
- valdemargr/gql
- valencik/textmogrify
- cozydev-pink/textmogrify
- valentinHenry/blaireau
- vaslabs/sbt-kubeyml
- vermas7988/stevedore
Expand Down
10 changes: 5 additions & 5 deletions scripts/test-repos.scala
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ val inactiveDateCutoff =
date

val lastMonth =
val date = LocalDate.now().minusDays(30)
val date = LocalDate.now().minusDays(60)
">" + date.format(DateTimeFormatter.ISO_LOCAL_DATE)

val today =
Expand Down Expand Up @@ -79,7 +79,7 @@ enum RepoResult(
case Archived(value) => s"$repo is archived"
case Renamed(value) => s"$repo might be renamed"
case Inactive(value) => s"$repo is inactive for last $inactiveYears"
case Correct(_) => s"$repo:$branch (OK)"
case Correct(repo) => s"$repo (OK)"
case Failure(_, e) => s" Failed to query $repo -> ${e.getMessage()}"

/** Potential improvements:
Expand All @@ -97,7 +97,7 @@ def main(
val alreadyCheckedPath = os.pwd / ".backup" / (today + ".txt")
val alreadyChecked =
if (os.exists(alreadyCheckedPath))
os.read(alreadyCheckedPath).linesIterator.map(_.split(" ").head).toSet
os.read(alreadyCheckedPath).linesIterator.filter(_.nonEmpty).map(_.split(" ").head.stripSuffix(":")).toSet
else Set()
val gh = new GitHubBuilder()
.withOAuthToken(githubToken)
Expand Down Expand Up @@ -170,7 +170,7 @@ def main(
wrongBranch(ghRepo, repoEntry)
.orElse(archived(ghRepo, repoEntry))
.orElse(isInactive(ghRepo, repoEntry))
// .orElse(noScalaStewardActivity(ghRepo, repoEntry))
.orElse(noScalaStewardActivity(ghRepo, repoEntry))
.getOrElse(RepoResult.Correct(repoEntry))
case _ => RepoResult.Correct(repoEntry)

Expand Down Expand Up @@ -216,7 +216,7 @@ def main(
""
) + s" https://github.com/$repoResult"
}
.mkString("\n")
.mkString("", "\n", "\n")
os.write.append(
alreadyCheckedPath,
backup,
Expand Down

0 comments on commit eb79fe3

Please sign in to comment.