Skip to content

Instantly share code, notes, and snippets.

@PHedro
PHedro / multiple_repos_pr.py
Created October 9, 2022 02:18 — forked from lexorus/multiple_repos_pr.py
Automate similar pull request creation for multiple repositories with a small python 3.7 script.
# Automate similar pull request creation for multiple repositories with a small python 3.7 script.
# All you have to do:
# 1. Provide your Github credentials in "Globals" section
# 2. Declare repositories and their base branches for which you want to create PR in "repositories_to_base" dictionary
# 3. Complete PR info in "PR constants" section and "create_pr" function
# 4. Implement "execute_changes" function
import os
from os import path
from github import Github