Readme update action#187
Conversation
scripts/update-readme.ts
Outdated
| const config = JSON.parse(configData); | ||
|
|
||
| // If tech exists in mapping, use mapped name, otherwise use "Other" | ||
| const tech = techs[config.tech] || techs["other"]; |
There was a problem hiding this comment.
do you think it would make sense to default to the lowercase version of the tech if it doesnt existi n the mapping?
say someone adds "angular" as the tech, could just list out "angular" or a title cased version
another idea is to throw an error if the tech doesn't exist to force it to create a match. on top of that, you can add a validation on Pull Request to make sure the tech exists in the list, if it doesnt, the person making the PR needs to add it to the list
There was a problem hiding this comment.
Yeah this makes sense, added these features in the latest commit
|
nice one, i assume its tested, hard for me to test i would assume. do you think this should run on PR or commits to |
… in the list, remove "Other" tech
|
@colbyfayock I think it's better to comment on the PR as the everything will be merged along with the PR. Here's how the process looks like. |
|
The error details section is now changed to "Missing tech(s)" and it'll include names of techs that aren't added in |
|
awesome thanks @max-programming we'll see how it goes 🙌 |
|
@colbyfayock One thing I forgot to mention is that you have to enable this option in the repository settings |
|
already done! thanks |
|
@max-programming This may not be working properly during the checkout portion. Check out this workflow error. |
|
@bradgarropy I'll fix this up and let you know ✌️ |
|
Fixes at #193 |


This PR adds a github action that runs a script to update examples in the
README.mdfile based on theconfig.jsonandtechs.jsonfilesWhat has changed:
techs.jsonfile containing key-value pairs of all techs in READMEconfig.jsonfile in each example