Redwood has a vibrant community that we want to highlight as much as possible. Using the All-contributors specifications and CLI, this project allows us to:
- track the Framework, create-redwood-app, and Redwoodjs.com repo contributors
- display the aggregated list of contributors in the Contributors section of the root README.md
In general, this is a three-part process:
- Update the three
*.all-contributorsrc
files with new contributors - Merge changes into the main
.all-contributorsrc
file - Update README.md#Contributors with changes
FILES
Framework redwoodjs/redwood
project:
note: this file is also used for all aggregated contributors
.all-contributorsrc
CRWA redwoodjs/create-redwood-app
project:
.crwa.all-contributorsrc
Website redwoodjs/redwoodjs.com
project:
.rwjs.com.all-contributorsrc
When adding contributors, use this "type" key for specific repos:
- 💻 (code) == Framework
- 📖 (doc) == Redwoodjs.com
- 🔧 (tool) == Create-Redwood-App
The "type" is required.
'cd tasks/all-contributors'
yarn all-contributors check --config .all-contributorsrc
// For each contributor listed in output, repeat the following:
yarn all-contributors add --config .all-contributorsrc <contributor> code
yarn all-contributors check --config .rwjs.com.all-contributorsrc
// For each contributor listed in output, repeat the following:
yarn all-contributors add --config .rwjs.com.all-contributorsrc <contributor> doc
yarn all-contributors check --config .crwa.all-contributorsrc
// For each contributor listed in output, repeat the following:
yarn all-contributors add --config .crwa.all-contributorsrc <contributor> tool
This script will add contributors from Redwoodjs.com and CRWA repos into the Framework file (if they don't already exist). It will also update the "type" of contribution for existing contributors.
node mergeContributors.js
yarn all-contributors generate --contributorsPerLine 5 --config .all-contributorsrc
Don't forget to commit and PR changes.
- Create a script to handle Step 1 (check and add new contributors for each repo)
- Convert these scripts into a GH Action that runs daily
Help with this project is welcome and needed! No specific experience required. You'll want to be familiar with:
- All-contributors config and CLI
- GH Actions (Node.js)