Closed fatih-yavuz closed 1 year ago
Searching more about a workaround to this issue:
on:
schedule:
- cron: '0 0 * * *'
Make a POST HTTP request to the GitHub endpoint responsible to create an issue https://api.github.com/repos/fatih-yavuz/links.dev/issues
(it is needed an authentication token, tho)
Use fs
to read the file and sharp
to validate the metadata
Alternative: Use regEx to validate and conditionally tell what's an image
It doesn't make much sense to me to check people all the time, I also think that opening an issue on github can be completely dirty.
We can change the page of users whose profile photos or page.jsons are not correct (a popup or a warning banner)
Each night, run a job to validate the content of people's page.json and their profile images.
If something is wrong, automatically create an issue and tag the person