Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Normalize dot segments before matching maintainer paths

未关闭 适合新手
#813 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
python
领域
tooling

调研方向

从 tools/get_maintainer.py 开始,重现 issue 中的两个命令,以比较规范路径和包含点段的路径。使用不同的 section contact 和默认 contact 添加覆盖,然后验证等效的仓库相对路径会选择相同的 maintainer,同时 Windows 分隔符和带转义的路径保留现有行为。

由索引模型根据 Issue 内容生成。

描述

bug good first issue needs testing

Problem

The maintainer lookup matches raw string prefixes after replacing backslashes. A common ./ prefix bypasses every relevant MAINTAINERS entry, routing a maintained file to the default. Equivalent paths should select the same ownership section.

Starting points: tools/get_maintainer.py.

Reproduction

Executed on Linux amd64 with Python 3.14.7. The affected files at local ade878134519b0f957ca28a23c6f9cd98e43dff3 are byte-identical to canonical master 286dad9c8fcb0616f7c719c72cbf453a7d9925fd.

python3 tools/get_maintainer.py front/parser/src/lib.rs
python3 tools/get_maintainer.py ./front/parser/src/lib.rs

The first command prints Maintainers to CC:; the second prints No specific maintainers found. Using default:. Current matching/default email addresses happen to be equal, but section selection is wrong and will misroute once contacts differ.

Scope

Easy: normalize repository-relative path spelling before matching while keeping ownership boundaries intact. This is a lookup behavior defect, separate from refreshing stale ownership entries in #352. Do not change maintainer contacts.

Completion criteria

  • Canonical paths and equivalent ./ or internal dot-segment spellings select the same maintainers.
  • Use a fixture with different section/default contacts to catch incorrect fallback.
  • Preserve Windows separator handling and do not treat paths escaping the repository as owned files.
主要语言
Rust
星标
56
派生
21
平均合并
2 小时 51 分钟
30 天内合并 PR
53

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

wavefnd/Wave 的其他 Issue

查看 wavefnd/Wave 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。