review-design: list commits without merge commits, and name the pull request of each commit
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
Read .agents/skills/review-design/SKILL.md Step 1, then inspect the script added by #69 and the collector under tools/trace-decision/ for how it finds landing commits and extracts pull request numbers. Decide how to represent commits without a linked pull request. Done when the script omits merge commits and associates each listed commit with its pull request, with a defined output for commits that have none.
Written by the indexing model from the issue text.
Description
Problem to solve
Step 1 of .agents/skills/review-design/SKILL.md collects the fix history of a path. Its output lists each commit with its subject and --numstat. #69 moves this lookup into a script and keeps merge commits in the list.
A merge commit gives little in this list:
- It has no
--numstatlines, becausegit logshows no diff for a merge commit by default. The lines of a fix are on the commits inside the pull request. - Only its subject has the pull request number, for example
7c2e454 docs!: put the decision record on the landing commit of each PR (#68). The commits inside a pull request have no number in their subjects. - The list is in date order, so a merge commit and the commits that it brought in are not always next to each other.
Step 1 also reads review threads. With this list, an AI assistant cannot tell which pull request holds a fix commit, so it cannot go from the fix to its review threads.
Proposal
- The script lists commits with
--no-merges. - For each commit, the script names its pull request.
Decide:
- How the script finds the pull request. One way: find the landing commit on the first-parent line, as the trace-decision collector does, and read
(#n)from its subject. This shares code withtools/trace-decision/, or repeats it. - What the script prints for a commit with no pull request: a commit pushed to the default branch directly, or a repo of this template that merges with squash or rebase.
Version
7c2e454
More information
Depends on #69: the script exists only after #69.
No case has needed this yet. The goal is that an AI assistant can go from a fix commit to its review threads. The comment https://github.com/c-w-z/commit-decision-record/issues/69#issuecomment-7336645801 compares this option with keeping merge commits and with --no-merges alone.
- Dominant language
- Shell
- Stars
- 1
- Forks
- 0
- Avg merge
- 6h 59m
- Merged PRs (30d)
- 26
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from c-w-z/commit-decision-record
-
type/documentation
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
c-w-z/commit-decision-record#90 · 1 comment ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
c-w-z/commit-decision-record#85 ·
Maintainers usually reply within 1 day
-
type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 86/100
c-w-z/commit-decision-record#84 ·
Maintainers usually reply within 1 day
-
type/feature
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
c-w-z/commit-decision-record#35 · 1 comment ·
Maintainers usually reply within 1 day
-
good first issue type/documentation
Difficulty 1/5 1-3 hours Newbie friendliness 95/100
c-w-z/commit-decision-record#33 ·
Maintainers usually reply within 1 day
All issues in c-w-z/commit-decision-record
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
omacom/omarchy#21286 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
ChurchCRM/docs.churchcrm.io#328 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
melodic-software/claude-code-plugins#20573 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
bmaltais/StartDrive#17 ·