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

[🐛]the readme log periodly repeated #24

Open
adeson33 opened this issue Jan 9, 2025 · 7 comments
Open

[🐛]the readme log periodly repeated #24

adeson33 opened this issue Jan 9, 2025 · 7 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@adeson33
Copy link

adeson33 commented Jan 9, 2025

Describe the bug
i deploy the activity-log on my respository, and the workflow begin to run, my readme textfile continues to change, but it get periodly repeated.
Snipaste_2025-01-09_09-10-52

To Reproduce
Steps to reproduce the behavior:

  1. Go to my resposity test
  2. add the activity-log files
  3. update work-flow config
  4. wait for the actions triggering

which is confused me is that my Actions page is full of workflow.

my Actions page
work_flow

my test reposity like this
repos_category

it's my test enviroment, you can see my workflow config, i am not sure if there's a problem with the env.
https://github.com/adeson33/test

@TheDanniCraft
Copy link
Owner

Hi @adeson33,
Thank you for reporting this issue!

To better understand what’s happening, could you share the json output of the following API request? This will help to debug the issue by analyzing your events. You’ll need to replace the authorization header with your Personal Access Token (PAT) to include activity from private repositories:
Run in Hoppscotch

If you’re comfortable sharing your private events publicly, feel free to post the output here. Otherwise, you can send it to me at [email protected].

Looking forward to your response!

@adeson33
Copy link
Author

hey @TheDanniCraft
i have already use the hoppscotch to scratch the json output of the following API request, Why it seems like to get the event of your github respository?
the json file i got
Github Fetch Events - response.json

Should i change target url that i post
api_test

@TheDanniCraft
Copy link
Owner

hey @TheDanniCraft i have already use the hoppscotch to scratch the json output of the following API request, Why it seems like to get the event of your github respository? the json file i got Github Fetch Events - response.json

Should i change target url that i post api_test

You're absolutely right—my apologies for that oversight. I forgot to update that part of the URL. This is the correct url:
Run in Hoppscotch

@adeson33
Copy link
Author

ok, i hava got json file.It seems there is no repeated responses.I guess maybe there is some wrong with my config.

the latest json response
adeson_response.json

is it influenced? i updated the workflow event limit to 100
event_limit

@TheDanniCraft
Copy link
Owner

ok, i hava got json file.It seems there is no repeated responses.I guess maybe there is some wrong with my config.

the latest json response adeson_response.json

is it influenced? i updated the workflow event limit to 100 event_limit

Hi @adeson33,

Thank you for providing the logs! I reviewed them and cross-checked them against your adeson33/test repository. The events match exactly with what the action generated.

I believe this confusion might be caused by the following:

When you commit multiple times (e.g., 5 times) to a repository, the log shows 5 separate entries. However, since commits to private repositories do not link directly to the specific commit in the generated output, it may appear as if they are repeated because the messages look identical.

For example, this:

📝 Committed to a private repo  
📝 Committed to a private repo  
📝 Committed to a private repo  
📝 Committed to a private repo  
📝 Committed to a private repo  
📝 Committed to a private repo  

Is actually:

📝 Committed to repo A, commit A  
📝 Committed to repo A, commit B  
📝 Committed to repo A, commit C  
📝 Committed to repo A, commit D  
📝 Committed to repo A, commit E  
📝 Committed to repo A, commit F  

There’s already a feature request (see issue #25) in progress to improve this behavior by grouping similar entries to make it clearer.

Let me know if this resolves your issue or if you have any further questions!

@adeson33
Copy link
Author

hey @TheDanniCraft
i find there is some wrong with your script in src/utils/github.js
when you set the eventlimit more than the num of you get from github api, this bug will appear.Because the fetchAllEvents function will loops until the filteredEvents variable's length meets the condition equal or bigger than eventLimit. So that's why I get the repeated result.
bug_code

the workflow's result aslo verifies my suspect, my json output of the github event api indicates my events's size only 28, when i set my envent limit as 100, the function fetchAllEvents will loop over and over again.
workflow_initial_result

@TheDanniCraft TheDanniCraft added the bug Something isn't working label Jan 10, 2025
@TheDanniCraft TheDanniCraft added this to the v1 Release milestone Jan 10, 2025
@TheDanniCraft
Copy link
Owner

Hey @adeson33,

Thank you for the clarification — now I understand what you mean by “repeated”! I’ll work on fixing this as soon as possible. I’ll use your provided adeson_response.json file to test the fix and ensure it resolves the issue.

I’ll keep you updated and let you know as soon as the fix goes live!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants