8 Commits
Author SHA1 Message Date
priya-sundaram-dev e2ada02159 chore: uv sync --upgrade + relock; make scripts/pr_file_map.py executable (#15398) 2026-09-22 07:40:40 +02:00
priya-sundaram-dev 2acda52732 pr_file_map.py: fetch PR files concurrently with asyncio (#15374)
The slow 'first pass' was one sequential 'gh pr view' per open PR (~one
network round-trip each), so it is I/O-bound. Fetch them concurrently with
asyncio.create_subprocess_exec, bounded by a semaphore (default 10,
override via PR_FILE_MAP_CONCURRENCY) to stay polite to the GitHub API.

Output is unchanged and deterministic (results keyed back in PR order);
errors still fail fast with the same messages.
2026-09-18 18:52:12 +02:00
priya-sundaram-devandChristian Clauss 54a6a65050 pr_file_map.py: add ignore_pull_request, progress passes, and a dated title (#15368)
* pr_file_map.py: add ignore_pull_request list, progress passes, dated title

- Add module-level ignore_pull_request: list[int]; get_open_prs() filters
  those PR numbers out (e.g. [123, 456, 789] skips #123, #456, #789).
- Drop the redundant DIRECTORY.md comment above DIRECTORY_FILE (the module
  docstring and render_directory_section already explain it).
- Fold the generation datetime into the H1 title:
  '# Open Pull Request File Map: 16 Sep 2026 at 21:45 UTC'.
- Show progress on stderr via other/cheap_progress.py's progress() for the
  'First pass' (fetch each PR's files) and 'Second pass' (classify files).

* Change ignore_pull_request from list to set

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
2026-09-17 15:58:43 +02:00
Christian Claussandpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> 0dd623ad34 pr_file_map.py: Use a human-readable date format (#15357)
* pr_file_map.py: Use a human-readable date format

Use a human-readable date format.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-09-16 11:52:15 +01:00
priya-sundaram-devandpre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> 00d9ebb4c0 Move DIRECTORY.md to its own section in pr_file_map.py (#15353)
* Move DIRECTORY.md to its own section in pr_file_map.py

DIRECTORY.md is auto-generated and touched by nearly every open PR, so it
dominated the 'possible merge conflicts' list and distracted maintainers.
Pull it out into a dedicated section at the very bottom of the report that
separates PRs whose only overlap is DIRECTORY.md (safe to 'accept both' in
the GitHub UI) from PRs that also collide on real source files.

Also render the Script path relative to the git root instead of an absolute
machine-specific path.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-09-15 23:54:51 +02:00
priya-sundaram-dev 2d1d3d3f23 Highlight PRs that overlap on the same file in pr_file_map.py (#15321)
Add a 'files touched by more than one open PR' section (sorted with the
most-contested files first) so overlapping PRs -- the likely merge-conflict
hot spots -- are visible at a glance when deciding what to land.

Also report two distinct file totals: 'file touches' (every PR x file pair)
and 'distinct files touched'. Only the distinct total equals existing +
missing, which fixes the earlier single count that double-counted files
edited by multiple PRs.
2026-09-14 23:03:50 +02:00
CopilotcclaussChristian Clausscopilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
e8f2965749 Improve scripts/pr_file_map.py observability and output metadata (#15317)
* Use pathlib and add PR/file status reporting in pr_file_map

Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>

* Ensure pr_file_map outputs summary with zero open PRs

Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>

* Retain no-open-PR message in generated pr_file_map report

Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>

* Return after no-open-PR summary in pr_file_map

Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>

* Apply batched suggestions from code review

Co-authored-by: Christian Clauss <cclauss@me.com>

* Apply suggestion from @cclauss

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: cclauss <3709715+cclauss@users.noreply.github.com>
Co-authored-by: Christian Clauss <cclauss@me.com>
2026-09-13 21:40:51 +01:00
Dharshini_RSChristian Clausspre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
aa38af81c9 fix:bucket count type (#15063)
* fix:bucket count type

* fixed TypeError

* Refine docstring and adjust return statement

Updated docstring for partition_liked_list method to clarify behavior. Changed return statement from None to None for consistency.

* Add script to map open PRs to modified files

This script lists all open pull requests in the current directory's git repository and maps each file touched by any open PR to its corresponding PR numbers. It outputs the results in GitHub-flavored Markdown format.

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Add noqa comments for subprocess calls

Add noqa comments to suppress specific linting warnings.

---------

Co-authored-by: Christian Clauss <cclauss@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2026-09-13 09:25:21 +02:00