Open rickstaa opened 2 years ago
I'm waiting for #2052 to be completed, as this will speed up my development.
(subscribe)
(subscribe)
Great! I need to find time to finish #2108, which will make implementing #2179 easier. All help is welcome ππ».
You can use #2409 for this now right? That'll make everything easier (I can perhaps write an action myself).
You can use #2409 for this now right? That'll make everything easier (I can perhaps write an action myself).
Let's discuss these things on discord (see my README).
You can use #2409 for this now right? That'll make everything easier (I can perhaps write an action myself).
Let's discuss these things on discord (see my README).
I prefer GitHub, if you don't mind. It's easier to track changes and features, and I can go back to older issues and comments. Linking and discussing code is also better.
I've created #2443 which we can use to have discussions, and that'll keep everything in one place. We can also consider multiple PRs and Issues at once (like how #2409 might make #2179 easier to implement).
The idea is great. However, i am concerned about it. Using Github Actions frequently and widely can cause your Github repository to be disabled (forks and upstream together).
For example, Project LSPosed/MagiskOnWSA was disabled because it violated GitHub's terms of service, due to tons of users forking the repository and building the project themselves on Github Actions. See their new Repository's README for more Info.
Another example will be luolongfei/freenom, a project that renews freenom domain automatically with Github Actions. This repository was also Disabled because it violated GitHub's terms of service (The author however got it back) due to many users forking the repository and creating their own action to renew their domains.
I personally have alot of automation scripts using Github Actions before, but most of the script's repository was disabled. There are also cases that people's Github account got banned because their repository keep getting disabled due to Github Actions.
The idea is great. However, i am concerned about it. Using Github Actions frequently and widely can cause your Github repository to be disabled (forks and upstream together).
For example, Project LSPosed/MagiskOnWSA was disabled because it violated GitHub's terms of service, due to tons of users forking the repository and building the project themselves on Github Actions. See their new Repository's README for more Info.
Another example will be luolongfei/freenom, a project that renews freenom domain automatically with Github Actions. This repository was also Disabled because it violated GitHub's terms of service (The author however got it back) due to many users forking the repository and creating their own action to renew their domains.
I personally have alot of automation scripts using Github Actions before, but most of the script's repository was disabled. There are also cases that people's Github account got banned because their repository keep getting disabled due to Github Actions.
Ah, that makes sense; those repositories were using Github Actions in a way that is not to be used. π My proposal was to create a new repository with a simple github action that spins up a node container, imports the GRS npm package, and then runs the query parameters using the containers PAT. This action would then generate an image in the repository, which can be referred to under a specific name in README.md. πΌοΈ I wanted to deploy this github action on https://github.com/marketplace so that users can easily add it to their README.md. π
Let me know if I overlooked something, but I think that is within GitHubs terms of service since all my other actions and many very popular actions work that way π .
@rickstaa https://github.com/LSPosed/MagiskOnWSA was using it in the TOS (to build the project, dev purpose) and they still got banned. Clearly github wants you to NOT use actions too frequently.
Also, setting up Actions is way harder then Vercel. People are already refusing to deploy their own Vercel instance, do you think they will do someting way harder just for a stats on README.md?
@rickstaa https://github.com/LSPosed/MagiskOnWSA was using it in the TOS (to build the project, dev purpose), and they still got banned. Clearly, github wants you to NOT use actions too frequently.
Also, setting up Actions is way harder then Vercel. People are already refusing to deploy their own Vercel instance, do you think they will do someting way harder just for a stats on README.md?
I don't think GitHub doesn't care about people running their actions too frequently since users pay for these executions anywayπ€. In https://github.com/LSPosed/MagiskOnWSA's situation, where they build the project inside a GitHub action, I can see how that gives problems.
In our situation, however, it will be a regular github action, and people, therefore, do not need to fork the GitHub repository in order to use it. They will use it by importing it through the marketplace in their local action YAML file (see (see https://github.com/rickstaa/action-create-tag for an example). It, therefore, does not count against our budget as the action itself is not included in the .github
folder and is, therefore, not run on forks. But thanks a lot for bringing this unique problem to my attention. I was not aware of it π.
Nevertheless, it doesn't have to be a GitHub action. We can also make deploying your own Vercel instance easier and more tempting so that more people will switch to deploying their own Vercel instance (see https://github.com/anuraghazra/github-readme-stats/issues/2415#issuecomment-1398463392).
That said I think for having more accurate card data that looks at more than 100 repositories a GitHub action is still needed since also on a Private Vercel instance you will likely run into rate limits if we paginate through al pages on very active users. π
goodproject
Will be fixed by #2537. Also, I'm seeing this only now; might have saved me some trouble during development π’
@rickstaa any news about this PR?
@rickstaa any news about this PR?
Hey, @D3vil0p3r! @rickstaa currently busy with his master thesis defence. When he finish we are going to resolve several issues important for this repository including creation of GitHub action in the order discussed there https://github.com/anuraghazra/github-readme-stats/issues/2052#issuecomment-1856460328.
Because @Zo-Bro-23 hasn't responded to questions about his GitHub action, I rewrote his GitHub action on my own. Please take a look.
I have used this action in my own GitHub profile. You can look at the workflow run here.
Is your feature request related to a problem? Please describe.
Currently, the only way to create GRS cards is through the Public/Private Vercel instance. This method is user-friendly since people can request their cards from the endpoint. Unfortunately, it, however, comes with several limitations:
Describe the solution you'd like
In my discussion with @4l1fe on https://github.com/anuraghazra/github-readme-stats/discussions/1975, we concluded that the best way to solve these issues is also to give users the ability to generate the GRS cards periodically inside a GitHub action. Doing this would provide us to solve the points above for the case when users use GRS through an action.
Implementation
We can create such an action by calling the render functions directly and then saving the resulting SVGs to the system. I created the following example to show what I mean:
We can then wrap this function inside a Javascript GitHub action and let users provide the query parameters for our cards through the action configuration file.
Alternatively, we could use Vercels query parsers to call the API endpoints directly.
Todos
2473 implements this
I think the easiest way to do this is the following:
Checkout Git branch
Write SVG to local file
Push to GRS branch
Users can use raw githubusercontent or GH Pages to access file
Inspiration from @Platane/snk :)
[ ] Wrap this functionality in a action.