-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace npmcdn.com with unpkg.com #53
Replace npmcdn.com with unpkg.com #53
Conversation
@RichardLitt any chance you could take care of updating all our readmes in this way? |
@dignifiedquire I could. Would mainly be useful for particular things, like updating the IRC links everywhere, or adding contribute stuff. Haven't made a GitHub bot before, can't find any guides, but I could make a shell script that uses my credentials pretty easy. What would you suggest? |
@RichardLitt looks like the bot is starting to get around to our other repos: ipld/js-ipld-block#3 :) |
Nice! 💃 |
You can track the progress of the bot at https://unpkg-bot.herokuapp.com/ (requires sign in with GitHub but only needs read-only access to public data). It scans one user/org at a time in the order they joined GitHub. So far it's scanned about 12 million users. |
@ForbesLindesay Thanks! Do you have the sourcecode for the bot, anywhere? I want to build something similar. |
https://github.com/ForbesLindesay/unpkg-bot The only bits you should need to change are https://github.com/ForbesLindesay/unpkg-bot/blob/master/src/codemod-repo.js and https://github.com/ForbesLindesay/unpkg-bot/blob/master/src/get-repos-for-user.js#L7 so that you apply your own choice of update and search for your own choice of keyword. You do need a lot of people to sign in though so that you have enough access keys to not just keep getting rate limited. P.S. I was thinking about developing this into a product that would let you say something like "run this codemod on all of GitHub for $30". |
@dignifiedquire Got a good use case for the initial test? Maybe adding Contribute to everything? |
@ForbesLindesay thank you :) @RichardLitt we are missing correct installation instructions on many repos (the browser, node things) and it would be great to do a check if all badges are present and have the correct links (with all the move between orgs there are probably still some with the wrong urls. |
To avoid potential naming conflicts with npm, npmcdn.com is being renamed to unpkg.com. This is an automated pull request to update your project to use the new domain.