INNER CODE UNIT · Python

_render_issue_body

dotnet/sdk · .github/scripts/check_vendored_files.py:302

def _render_issue_body(result: DriftResult) -> str:
    entry = result.entry
    source = result.source
    marker = _marker(entry.id, result.source_index)
    cur_ref = result.current_ref_sha or source.ref
    base_ref = source.baseline_ref_sha
    repo = source.repo

    lines = [
        marker,
        "",
        f"Automated drift report for vendored file **`{entry.local_path}`**.",
        "",
        "## Source",
        f"- Upstream repo: [`{repo}`](https://github.com/{repo})",
        f"- Upstream path: [`{source.path}`](https://github.com/{repo}/blob/{cur_ref}/{source.path})",
        f"- Tracked ref: `{source.ref}`",
        f"- Scope: {source.scope or '_unspecified_'}",

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…