#!/usr/bin/env python3 from __future__ import annotations import argparse import json import re import subprocess import sys from pathlib import Path from _project_paths import find_repo_root from update_readme import configure_utf8_output, load_metadata CONTRIBUTOR_SECTION_START = "We officially thank the following contributors for their help in making this repository awesome!\n\n" SPECIAL_LINK_OVERRIDES = { "Copilot": "https://github.com/apps/copilot-swe-agent", "github-actions[bot]": "https://github.com/apps/github-actions", "copilot-swe-agent[bot]": "https://github.com/apps/copilot-swe-agent", } def parse_existing_contributor_links(content: str) -> dict[str, str]: links: dict[str, str] = {} pattern = re.compile(r"^- \[@(?P