Add support for force push diff view
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- frontend
Research direction
The payload names no source files, so start by finding the existing API from #45 that compares a PR's previous and current HEAD, and read how it is consumed. Then check #83 for the commit-range UI it is meant to share. Done means a reviewer can open a force-push diff between the old and new PR HEAD from the UI, and the scope of the optional AI history-rewrite classification is agreed on first.
Written by the indexing model from the issue text.
Description
Clear and concise description of the problem
When a contributor force-pushes a PR branch, the reviewer needs to understand what actually changed between the previous and current versions of the PR.
The reliable comparison is:
flowchart LR
Old["Previous PR HEAD"] -->|"Force-push diff"| New["Current PR HEAD"]
Comparing individual commits or commit ranges across a force push is not generally reliable, because the history may be reordered, squashed, split, or otherwise rewritten. The old and new commits may no longer have a stable correspondence.
Therefore, the review unit should be the overall diff between the previous PR HEAD and the current PR HEAD.
Suggested solution
UI/UX
- Adding addtional UI component for display force pushes
- Adding AI classification can additionally explain what kind of history rewrite produced it.
Alternative
No response
Additional context
#83 is about reviewing selected commits or commit ranges within the current PR history. It's possible that, we can re-use the underlaying API implemented #45 with more UI for these purposes
Validations
- Follow our Code of Conduct
- Read the Contributing Guide.
- Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
- Dominant language
- TypeScript
- Stars
- 622
- Forks
- 40
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No 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 antfu/pulls.review
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 32/100
antfu/pulls.review#126 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
antfu/pulls.review#125 ·
-
Say when the analysis on screen predates the commits being shownPossibly taken @0froq claimed this 15 days ago. Openenhancement
Difficulty 3/5 1-2 days Newbie friendliness 25/100
antfu/pulls.review#122 ·
-
Reuse an AI analysis across refs that show the same diff (compare → pull request)Possibly taken @0froq claimed this 15 days ago. Openenhancement
Difficulty 4/5 3-5 days Newbie friendliness 25/100
antfu/pulls.review#121 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
antfu/pulls.review#120 ·
All issues in antfu/pulls.review
Similar issues
-
triage
Difficulty 1/5 Under an hour Newbie friendliness 64/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
ranxianglei/billion-context#7860 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
agent-oc-find-bugs api complexity → simple payment-methods recurring contributions reviewed stripe
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
opencollective/opencollective#9177 ·