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

Fix weekly contributions script #332

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

lf94
Copy link

@lf94 lf94 commented Jan 13, 2025

There were 2 noticeable issues with the script:

  1. We were trying to post massive markdown into a GitHub PR comment / body.
  2. We were hitting GitHub too frequently with too heavy requests.

To reduce errors, I've changed the comment body to mention looking at Files changed tab, and added waits between requests, and reduced our repo request "chunks" from 25 to 2.

@lf94
Copy link
Author

lf94 commented Jan 13, 2025

For what it's worth, you can test locally using act:

act -W .github/workflows/weekly-contributions.yml -s GITHUB_TOKEN="..."

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.

1 participant