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

Minimum Commits Daily.

Open 0vm opened this issue 2 years ago • 6 comments

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.

0vm avatar Aug 05 '23 07:08 0vm

build failed due to: Version 2.7 was not found in the local cache Error: Version 2.7 with arch x64 not found The list of all available versions can be found here: https://raw.githubusercontent.com/actions/python-versions/main/versions-manifest.json

0vm avatar Aug 09 '23 01:08 0vm

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

Shpota avatar Aug 10 '23 08:08 Shpota

@0vm I fixed the build. Could you please sync up your branch with the latest changes?

Shpota avatar Aug 11 '23 10:08 Shpota

There are some linter errors

Shpota avatar Aug 11 '23 14:08 Shpota

so whats the plan

0vm avatar Aug 22 '23 23:08 0vm

Thanks @0vm, once the linter issues are fixed I can merge the PR

Shpota avatar Aug 24 '23 08:08 Shpota