github-activity-readme icon indicating copy to clipboard operation
github-activity-readme copied to clipboard

Fails if no activity found

Open StevenJDH opened this issue 3 years ago • 7 comments

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.

StevenJDH avatar Jan 22 '21 11:01 StevenJDH

Having the same issue, any updates on this?

Kanna727 avatar Feb 05 '21 04:02 Kanna727

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?

philippencal avatar Feb 15 '21 21:02 philippencal

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

Kanna727 avatar Feb 16 '21 06:02 Kanna727

Hey @Kanna727, open your branch and execute "npx prettier --write index.js" and commit the changes, it should work for the next prettier check.

philippencal avatar Feb 16 '21 22:02 philippencal

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

cgorshing avatar Mar 25 '21 02:03 cgorshing

This is failing for me too! is there an update on this issue?

Novvan avatar Apr 09 '21 17:04 Novvan

I see this repo is no longer maintained!, One alternative for this repo is available: Readme-Workflows/recent-activity

PuneetGopinath avatar May 12 '21 14:05 PuneetGopinath

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.

fjourdren avatar Jan 16 '23 20:01 fjourdren

fix by #49 will be released with v0.4.0

tuunit avatar May 30 '23 21:05 tuunit