Path: blob/master/GitHub/GitHub_Get_files_changed_on_pull_request.ipynb
2973 views
Kernel: Python 3
GitHub - Get files changed on pull request
Tags: #github #pullrequest #files #api #python #git
Author: Florent Ravenel
Last update: 2023-04-12 (Created: 2023-03-09)
Description: This notebook get the list of files changed on a pull request using the GitHub API. Files changed could be 'added', 'renamed' or 'removed'.
Input
Import libraries
In [ ]:
Setup Variables
token
: Create your personal access token hereowner
: owner of the repositoryrepo
: name of the repositorypull_number
: number of the pull request
In [ ]:
Model
Get files changed on pull request
This function will use the GitHub API to get the list of files changed on a pull request.
In [ ]:
Output
Display result
In [ ]: