-
Notifications
You must be signed in to change notification settings - Fork 96
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
Minimum Commits Daily. #27
base: main
Are you sure you want to change the base?
Conversation
build failed due to: |
I need to take a look at that. Looks like GitHub Actions deprecated some of the APIs. I will fix it and let you know |
@0vm I fixed the build. Could you please sync up your branch with the latest changes? |
There are some linter errors |
so whats the plan |
Thanks @0vm, once the linter issues are fixed I can merge the PR |
New Command Line Argument --min_commits:
Added a new optional argument that allows users to specify the minimum number of commits they want the script to make each day. The argument ranges from 1 to 20, with a default value of 1. This additional feature gives users more control over the number of commits made daily.
Update to contributions_per_day function:
The function has been revised to incorporate the new min_commits argument. Now, the number of daily contributions is a random value between min_commits and max_commits (both inclusive). This change enhances the variability and customization of the script's operations.
Edge case handling for min_commits and max_commits:
Added checks to handle scenarios where min_commits may be greater than max_commits. In such cases, the values are swapped to maintain a valid commit range for the script. This is crucial to ensuring the robustness of the script when faced with unusual user inputs.