def METHOD_NAME(self, diff: Sequence[Mapping[str, Any]]) -> Sequence[Mapping[str, Any]]:
    """Convert the patch data from GitHub into our internal format
    See sentry.models.Release.set_commits
    """
    changes = []
    for change in diff:
        if change["status"] == "modified":
            changes.append({"path": change["filename"], "type": "M"})
        if change["status"] == "added":
            changes.append({"path": change["filename"], "type": "A"})
        if change["status"] == "removed":
            changes.append({"path": change["filename"], "type": "D"})
        if change["status"] == "renamed":
            changes.append({"path": change["previous_filename"], "type": "D"})
            changes.append({"path": change["filename"], "type": "A"})
    return changes