[Good first issue] 支持用「我来处理」认领 Issue

Open Beginner friendly
#102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
80/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
github-actions, javascript, yaml
Domain
ci-cd

Research direction

Read the claim phrases listed in CONTRIBUTING.md (lines 5-11), then compare the two matching spots in .github/workflows/issue-claim.yml: the immediate-claim branch around lines 29-44 and the expiry check around lines 181-192. The first phrase check returns early instead of calling addAssignees, so align both branches on one shared list that includes 我来处理. Done means a simulated issue_comment event for 我来处理, /claim and a plain discussion comment shows assignment plus the claimed label only for the first two; parse the workflow with Bun.YAML.parse, inject a mock context and API, and paste the test command and output in the PR.

Written by the indexing model from the issue text.

Description

bug good first issue help wanted

The claim workflow ignores one of the Chinese phrases documented in the contribution guide.

复现

贡献指南列出了“我来处理”作为认领表达。用本地模拟的 issue_comment 事件在一条开放且尚未分配的 Issue 上分别提交 我来处理、我想认领 和 /claim。后两种会调用 addAssignees,第一种在匹配评论首行后直接返回。

验收标准

  • 评论首行为 我来处理 时,按现有认领流程分配贡献者并添加 claimed。
  • 即时认领和过期检查对认领短语采用一致的识别规则。
  • 用模拟事件覆盖这句中文、原有 /claim 和普通讨论评论,验证分配只发生于明确的认领评论。

源码与测试入口

  • 核对指南示例和两个工作流分支。 指南示例 · 即时认领 · 过期检查
  • 可以用 Bun.YAML.parse 读取 workflow,再给 github-script 注入模拟的 context 和 GitHub API。断言 addAssignees 的调用,无需真实发评论。

欢迎评论 /claim 认领。PR 请关联本 Issue,并附上实际执行的测试命令和结果。 贡献指南

Dominant language
TypeScript
Stars
206
Forks
37
Avg merge
8h 8m
Merged PRs (30d)
7

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ydflow/Trail

All issues in ydflow/Trail

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.