Git Contributions Tracker

Git Contribution tracking. We are a group of students in our batch in Payilagam Institute, a person who is responsible for monitoring the contributions made on gitlab on a daily basis, it was a repetitive process, and every weak each person in the batch need to take this work as responsibility. Our trainer says don't you think this is a repetitive process and you guys take any steps to make an automotive process for this procedure. We say no and even we are not think of it until he asks us! After his words, we started a project called Git Contribution Tracker. With this project we are try to automate this process and make the tracking on a daily basis. We are currently learning Java and we are not know that much in java. With the help of internet and chatbot's like chatgpt, deepseek we understand what we are going to do. We are group of peoples and started coding on java to make the project successful.In this area we are about to know what is dependency in project making? Dependency: It is external source file or even a small piece of code that are helps us to make some specific functionalities. Is this a needy one? Yes! we actually need it when it comes to do various things, most of the must needed things are comes built in with the language pack itself, other than that we need external package or a external code to perform some works. Our Dependencies in out project is : 1. Apache POI (for reading and writing excel files in our project) 2. JSON for extracting the json content from a string. We are currently try to make a tracking system for Gitlab. So we use Gitlab API to get the details. Step-by-Step Process: Step 1: Make an excel file with Gitlab PAT and each person's username. Step 2: Read the excel file through Apache POI(classname = XSSFWorkBook). Step 3: Read the data and convert to a List of Strings. Step 4: Iterate over the list to get each item of the list and make a HTTP request to the gitlab server with PAT in the authorization header(PAT must needed). Step 4: Retrieve the result and convert it to the json array to get the fields. Step 5: The Json array contains several objects with fields, we need two fields only: "status", "created_at" Step 6: On each request and response, iterate over the response json array and check the above fields on each json object to confirm whether the push happened and the date is current date. Step 7: Track the count with a instance variable. Step 8: Finally group the all the contributions with respective usernames. Step 9: Here we have a telegram bot to make these tracking send to our official group. Step 10: Stop the program. Project Repo Link: https://gitlab.com/vasudevan-repo/gitlab/-/tree/main/GitAutomation?ref_type=heads

Apr 26, 2025 - 08:11
 0
Git Contributions Tracker

Git Contribution tracking.

We are a group of students in our batch in Payilagam Institute, a person who is responsible for monitoring the contributions made on gitlab on a daily basis,
it was a repetitive process, and every weak each person in the batch need to take this work as responsibility.

Our trainer says don't you think this is a repetitive process and you guys take any steps to make an automotive process for this procedure. We say no and even we are not think of it until he asks us!

After his words, we started a project called Git Contribution Tracker. With this project we are try to automate this process and make the tracking on a daily basis.

We are currently learning Java and we are not know that much in java. With the help of internet and chatbot's like chatgpt, deepseek we understand what we are going to do.

We are group of peoples and started coding on java to make the project successful.In this area we are about to know what is dependency in project making?

Dependency:
It is external source file or even a small piece of code that are helps us to make some specific functionalities. Is this a needy one? Yes! we actually need it when it comes to do various things, most of the must needed things are comes built in with the language pack itself, other than that we need external package or a external code to perform some works.

Our Dependencies in out project is :

1. Apache POI  (for reading and writing excel files in our project)
2. JSON for extracting the json content from a string.

We are currently try to make a tracking system for Gitlab.
So we use Gitlab API to get the details.

Step-by-Step Process:

Step 1: Make an excel file with Gitlab PAT and each person's username.
Step 2: Read the excel file through Apache POI(classname = XSSFWorkBook).
Step 3: Read the data and convert to a List of Strings.
Step 4: Iterate over the list to get each item of the list and make a HTTP request to the gitlab server with PAT in the authorization header(PAT must needed).
Step 4: Retrieve the result and convert it to the json array to get the fields.
Step 5: The Json array contains several objects with fields, we need two fields only: "status", "created_at"
Step 6: On each request and response, iterate over the response json array and check the above fields on each json object to confirm whether the push happened and the date is current date.
Step 7: Track the count with a instance variable.
Step 8: Finally group the all the contributions with respective usernames.
Step 9: Here we have a telegram bot to make these tracking send to our official group.
Step 10: Stop the program.

Project Repo Link: https://gitlab.com/vasudevan-repo/gitlab/-/tree/main/GitAutomation?ref_type=heads