Skip to content

[repo-assist] fix(diff): ignore local commits when tracking reviewed PKGBUILD diffs - #2966

Draft
github-actions[bot] wants to merge 1 commit into
nextfrom
repo-assist/fix-issue-2965-diff-local-commit-b3d2abd69c9351f1
Draft

[repo-assist] fix(diff): ignore local commits when tracking reviewed PKGBUILD diffs#2966
github-actions[bot] wants to merge 1 commit into
nextfrom
repo-assist/fix-issue-2965-diff-local-commit-b3d2abd69c9351f1

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

🤖 This PR was prepared by Repo Assist, an automated AI assistant for this repository.

Closes #2965

Root cause

AUR_SEEN was updated to the working tree HEAD. When a PKGBUILD repository contained a local commit, the next diff compared that local commit against HEAD@{upstream}, presenting the local changes as if upstream had reverted them.

Fix

Track HEAD@{upstream} in AUR_SEEN instead. Diff reviews now record the upstream revision that was actually reviewed and ignore unrelated local commits. A focused regression test verifies the ref update target.

Test Status

  • go test ./pkg/menus — passed
  • make build — passed
  • git diff --check — passed

No new dependencies were added.

Generated by 🌈 Repo Assist, see workflow run. Learn more.
Comment /repo-assist to run again

Add this agentic workflow to your repo

To install this agentic workflow, run

gh aw add githubnext/agentics/workflows/repo-assist.md@1c6668b751c51af8571f01204ceffb19362e0f66

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect diff is shown when there is a local commit

0 participants