Skip to content
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

Fixes for action failing with "Cannot read properties of undefined (reading 'split')" | Updated selectors & matches #76

Closed
wants to merge 5 commits into from

Conversation

milaabl
Copy link

@milaabl milaabl commented Jul 15, 2023

After an update, GitHub client returns the user's contributions as a table, instead of a generated svg. That's why there's a sudden build error in the workflow.

Please have a look @Platane . Should be fixed now! :)

Thanks

…ion-error-fixes

🐛 Adapted contributions stats extractor function to match with new Gi…
@SkyDynamic
Copy link

hey guy, i just tried building svg using your repo, but it still Action failed with "Cannot read properties of undefined (reading 'split')"

and the action in this

action-img

@AzeemIdrisi
Copy link

Wow! That was quick.

@milaabl
Copy link
Author

milaabl commented Jul 15, 2023

@SkyDynamic , will have a look now! Thanks

@milaabl
Copy link
Author

milaabl commented Jul 15, 2023

@SkyDynamic , figured it out. Turns out one more file should have included the update. I'll add a new commit with a fix and let's see.

@SkyDynamic
Copy link

SkyDynamic commented Jul 15, 2023

@SkyDynamic , figured it out. Turns out one more file should have included the update. I'll add a new commit with a fix and let's see.

@milaabl
I just tried to , there had a new error: Action failed with "document is not defined"

I don't konw is there no definition the document

also, I will provide the action line too, please click there

@milaabl
Copy link
Author

milaabl commented Jul 15, 2023

@SkyDynamic , figured it out. Turns out one more file should have included the update. I'll add a new commit with a fix and let's see.

@milaabl I just tried to , there had a new error: Action failed with "document is not defined"

I don't konw is there no definition the document

also, I will provide the action line too, please client there

Yes, I see that error, currently working on it

@milaabl
Copy link
Author

milaabl commented Jul 15, 2023

@SkyDynamic , seems to be working with my latest fixes. I have checked on my profile: https://github.com/milaabl/milaabl-readme/actions/runs/5561652253/jobs/10159466961

Please check it out too

@SkyDynamic
Copy link

SkyDynamic commented Jul 15, 2023

@SkyDynamic , seems to be working with my latest fixes. I have checked on my profile: https://github.com/milaabl/milaabl-readme/actions/runs/5561652253/jobs/10159466961

Please check it out too

Yes, it complete!
Good

But still have some problem
Look at that image

@milaabl
Copy link
Author

milaabl commented Jul 15, 2023

@SkyDynamic , seems to be working with my latest fixes. I have checked on my profile: https://github.com/milaabl/milaabl-readme/actions/runs/5561652253/jobs/10159466961
Please check it out too

Yes, it complete! Good

But still have some problem Look at that image

Just noticed it on my profile too. Hmm, probably some attributes were retrieved incorrectly. Will have a look

@SkyDynamic
Copy link

@SkyDynamic , seems to be working with my latest fixes. I have checked on my profile: https://github.com/milaabl/milaabl-readme/actions/runs/5561652253/jobs/10159466961
Please check it out too

Yes, it complete! Good
But still have some problem Look at that image

Just noticed it on my profile too. Hmm, probably some attributes were retrieved incorrectly. Will have a look

Still hava problem
the svg is vertical

@milaabl
Copy link
Author

milaabl commented Jul 15, 2023

@SkyDynamic Thanks, I see. The problem is the y axis variable. The previous (currently broken) version built by @Platane uses the "y" attribute, but as there's no svg rect based chart data provided by GitHub anymore. Will try to figure it out, if anyone has any ideas -- your help is really welcome

@Isabe1le Isabe1le mentioned this pull request Jul 15, 2023
@pdqdat
Copy link

pdqdat commented Jul 15, 2023

Did you figure out the solution?

@milaabl
Copy link
Author

milaabl commented Jul 15, 2023

@pdqdat , not yet. I'm not sure how we can retrieve the y axis the new way, but will try to have a look at it tomorrow

@aelassas
Copy link

@milaabl Issue fixed. Check out my pull request: #77

@Platane Platane closed this Jul 17, 2023
@Platane
Copy link
Owner

Platane commented Jul 17, 2023

thanks for taking the time to edit a patch.

I rather go with the github API solution, which is more stable.
I also published a version with a patched parser, I did not took yours because I didn't want to bundle jsdom in the action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants