The git information is retrieved in the following ways, in the root of the repository:
- Open the command prompt.
- Set the LC_ALL environment variable to C.UTF-8 by running the command:
set LC_ALL=C.UTF-8
- Run the following command to generate the git information file:
git log --numstat > ./scripts/input/git.txt
- Open the terminal.
- Set the LANG environment variable to en_US.UTF-8 by running the command:
export LANG=en_US.UTF-8
- Run the following command to generate the git information file:
git log --numstat > ./scripts/input/git.txt
After generating the git information file, you need to anonymize the emails. Run the following command:
lua5.1 ./scripts/rename_emails.lua
# or luajit rename_emails.lua
Make sure you have the following dependencies installed:
- Gruff
- RMagick
You can install these dependencies by running the following command:
gem install gruff rmagick
- Pandas
- Matplotlib
You can install these dependencies by running the following command:
pip install pandas matplotlib
- Luafilesystem
You can install this by running the following command:
luarocks install luafilesystem
To generate the git statistics, run the following commands:
python ./scripts/commits_per_hour.py; python ./scripts/commits_per_weekday.py
ruby ./scripts/commits_over_time.rb; ruby ./scripts/commits_type_count.rb
These commands will generate the necessary images and statistics based on the git information.
The workflow automatically does the steps above every 3 months, it installs the necessary dependencies by checking the contents of the dependencies folder.