Make QR code dynamically using Github Issues Comments
- Fork this repo and set the forked repo with Github pages
- Create a
config.json
under the forked repo (take theconfig_sample.json
as an example) - Create a issue, could be under any repo
- Put the issue comments API (e.g.
https://api.github.com/repos/NoahDragon/Dynamic-QR/issues/1/comments
) into theconfig.json
url
fields - Create QR based on the URL
https://[URL to the github repo page]?dest=[name config in config.json]
- Comment in the created issue in step 3 will update the redirect URL
Please take config_sample.json
as example. Customized fields are in []
.
{
["dest_name"]: {
"url": ["Github issue comments link"],
"author": ["empty if anyone can update the redirect url, set to a user then only the user's comments can affect the redirect"]
}
}
- Github Pages have 10 mins cache for all htmls, so need to clean caches if commented in issue within 10 mins.
- If the comment contains multiple URL, only the first one will be taken.