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

Remove archived repositories #137

Closed
micalevisk opened this issue Apr 7, 2021 · 3 comments
Closed

Remove archived repositories #137

micalevisk opened this issue Apr 7, 2021 · 3 comments

Comments

@micalevisk
Copy link
Member

micalevisk commented Apr 7, 2021

Hey! This is a list of all archived repositories that I found in your README.md:

adrien2p/nest-js-api-ai
BruceHem/simple-todos
mentos1386/lynx
evebook/api
nestjsx/automapper
adrien2p/nest-js-graphql
nest-cloud/nest-memcached

You could remove them or use the ~~ to scratch them, idk. Like

😄


btw I've made this simple script to grab github repos and list the archived ones:

list_archived_repos.sh
#!/bin/bash

repos=($(grep --color=never -Po '(?<=github.com/)[^/]+/[^)/]+' "README.md"))
archived_repos=()

GH_PAT="your personal access token here"

for repo in "${repos[@]}"; do
  is_archived=$(curl -s -L -H "Authorization: token ${GH_PAT}" -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/${repo}" | jq '.archived')
  if [ "$is_archived" == "true" ]; then
    archived_repos+=("$repo")
  fi
done

printf '%s\n' "${archived_repos[@]}"

(maybe you can create a scheduler task with github action to do some health check, like broken link checker, archived repo checker)

@micalevisk micalevisk changed the title Get rid of archived repository Remove archived repositories Apr 13, 2021
@juliandavidmr
Copy link
Collaborator

Hi @micalevisk, great contribution, I will be checking it later to implement. Thanks.

@jmcdo29
Copy link
Member

jmcdo29 commented Nov 1, 2021

Thanks for the script @micalevisk. Just removed the archived repositories from the readme, and we'll look into the automation for this when we've got some time (I do love the idea of it)

@jmcdo29 jmcdo29 closed this as completed Nov 1, 2021
@micalevisk
Copy link
Member Author

micalevisk commented Nov 1, 2021

Just found these others:

https://github.com/mentos1386/nest-morgan
https://github.com/szokodiakos/typegoose

- [Nest Morgan](https://github.com/mentos1386/nest-morgan) - Morgan module for NestJS.

- [Nest Typegoose](https://github.com/kpfromer/nestjs-typegoose) - A [Typegoose](https://github.com/szokodiakos/typegoose) module for Nest framework.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants