Skip to content

Instantly share code, notes, and snippets.

View lexorus's full-sized avatar

Dmitrii Celpan lexorus

View GitHub Profile
@lexorus
lexorus / multiple_repos_pr.py
Created May 25, 2020 14:34
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