Skip to content

check_contributors.py --stub could suggest the area from the files a pull request changed #1333

Open

Description

@yakew7

Where: scripts/check_contributors.py (run_stub), scripts/contributors_write.py (add_stub).

Current gap: --area NAME (#1294) lets the person starting an entry choose the Contributions by area row, but they have to know which row fits; the default stays Contributor tooling & docs even for a contributor whose PRs only touched assets/profiler-*.js.

Suggested approach: Fetch the changed file paths of the new person's PRs (gh pr view --json files), map them to area rows with a small table (for example assets/profiler-* to the web row, faircode/ to the CLI row, .github/ to CI) and use the best match as the default when --area is not given, printing what it chose.

Done when: a stub for a PR that only changes assets/profiler-ui.js lists the person under the web profiler row, and --area still overrides, covered by tests with saved file lists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    communityContributors, metrics and project housekeepingenhancementNew feature or requestgood first issueGood for newcomers

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions