Skip to content

Instantly share code, notes, and snippets.

@sbidoul
sbidoul / port-pr.py
Last active June 29, 2024 03:12
Port a PR to another branch
#!/usr/bin/python3
import json
import argparse
import os
import re
import shlex
import shutil
import subprocess
import tempfile
import textwrap