I’m using a lambda function to deploy code to GitHub to a forked repository with the use of Pygithub. The forked repo will create a pr to the upstream repo where changes will be reviewed. Is there a way to make git fetch upstream
from the fork to make sure that it is even with the main repo before pushing changes to the fork? I would like to automate this process instead of manually going in to update the fork. Pygithub docs don’t seem to have anything helpful on this issue.
Things I’ve tried:
- Create pr from main repo to forked repo but lack permissions to write from main repo.