github-activity-readme
github-activity-readme copied to clipboard
Fails if no activity found
It seems that if there is no activity present, the action fails with:
...
⬤ debug Activity for ..Username.., 62 events found.
✖ fatal No PullRequest/Issue/IssueComment events found
Expected: Ideally it should interpret 0 as ok and maybe put a placeholder message like "Currently there is no activity logged," or something along those lines on the README page.
Actual: No activity fails the action on each run until you do a pull request or something.
Having the same issue, any updates on this?
Having the same issue, any updates on this?
Hey @Kanna727, It seems your PR failed on code style check during Prettier running. Do you need any help with it?
Hi @philippencal, Yes, I need help. I couldn't find why it is failing. I'm having no time to test it locally also. It's a small change. It would be great if you could help me with this. Thanks
Hey @Kanna727, open your branch and execute "npx prettier --write index.js" and commit the changes, it should work for the next prettier check.
This is failing for me too - maybe I should just be more active on Github so it doesn't fail :)
Either way - I've updated @Kanna727 PR above with the results of npx prettier --write index.js
-> https://github.com/Kanna727/github-activity-readme/pull/1
This is failing for me too! is there an update on this issue?
I see this repo is no longer maintained!, One alternative for this repo is available: Readme-Workflows/recent-activity
After analyze, it appears that the github action pipeline fails because there is no recent activities on your profile and/or no new activity to add since the last execution. So the behavior described in this issue is the waited behavior (even if I agree this is not what we could expect has users).
The pull request https://github.com/jamesgeorge007/github-activity-readme/pull/49 remove the fact that pipeline fails in these circumstances. However, even with this pull request, the script is not able to add a default text when there is no new activity : "no recent activity". Then, the section will stay void.
fix by #49 will be released with v0.4.0