Skip to content

zoo-js/zoo-data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

zoo-data

🍩 The data for zoo-js.

πŸŽ‰ How to use ?

Request the raw address of the json file via http.

🌟 JSON

🎈 organizations

name

The name of pet organization.

code

The logo code of pet organization.

Use like: https://avatars0.githubusercontent.com/u/${code}?s=100&v=4

fullName

The organization full name.

cnName

The organization Chinese name.

type

type name tip
animal εŠ¨η‰© ε­—ζ―ζŽ’εΊ
food ι£Ÿη‰© ε­—ζ―ζŽ’εΊ
natural θ‡ͺη„Ά ε­—ζ―ζŽ’εΊ
life η”Ÿζ΄» δΈι‡ζ–°ζŽ’εΊ
technology ζŠ€ζœ― δΈι‡ζ–°ζŽ’εΊ

🎈 members

name

The name of pet organization.

number

The number of people in the pet organization.

total

The number of people in all the pet organization. Since when 2020-12-1.

🌈 script

πŸ”₯ update-members

Update the number of members according to organizations.json.

πŸ”₯ update-fork

Use env token to update fork for all orgs.

πŸ’¬ How it work?

  1. Copy test.env to .env
  2. Create a token with the org scope and copy it (https://github.com/settings/tokens/new)
  3. yarn
  4. node ./script/xxx.js
  • In here, it will auto play with GitHub Actions.