Path: blob/master/GitHub/GitHub_Get_weekly_commits_from_repository.ipynb
2973 views
GitHub - Get weekly commits from repository
Tags: #github #repos #commits #stats #naas_drivers #plotly #linechart #operations #analytics #dataframe #html
Author: Sanjeet Attili
Last update: 2023-04-12 (Created: 2022-03-18)
Description: This notebook provides a weekly summary of commits made to a GitHub repository.
Input
Setup Github
How to find your personal access token on Github?
First we need to create a personal access token to get the details of our organization from here: https://github.com/settings/tokens
You will be asked to select scopes for the token. Which scopes you choose will determine what information and actions you will be able to perform against the API.
You should be careful with the ones prefixed with write:, delete: and admin: as these might be quite destructive.
You can find description of each scope in docs here (https://docs.github.com/en/developers/apps/building-oauth-apps/scopes-for-oauth-apps).