Skip to content

[WIP] Fix stale branch causing create_pull_request patch failures#25

Merged
mrjf merged 2 commits intomainfrom
copilot/fix-stale-branch-patch-failures
Apr 4, 2026
Merged

[WIP] Fix stale branch causing create_pull_request patch failures#25
mrjf merged 2 commits intomainfrom
copilot/fix-stale-branch-patch-failures

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 4, 2026

  • Update Step 3 item 1 in .github/workflows/autoloop.md (line 694) to add reset-if-merged logic before falling back to merge
  • Update "How It Works" section (lines 647, 651) to reflect the new branch handling behavior
  • Apply same changes to source file workflows/autoloop.md to keep both in sync
  • Run existing tests to verify no regressions (88/88 passed)
  • Run validation (code review + CodeQL both passed)

Copilot AI assigned Copilot and mrjf Apr 4, 2026
Copilot AI linked an issue Apr 4, 2026 that may be closed by this pull request
Replace simple merge-from-main with reset-if-merged approach in Step 3
of the autoloop workflow. When a program branch's changes have already
been merged into main (git diff produces no output), the branch is reset
to origin/main instead of merging. This prevents format-patch from
generating patches with already-merged commits that cause git am failures.

Fixes #69

Agent-Logs-Url: https://github.com/githubnext/autoloop/sessions/1aea5829-61b7-4958-bf7e-56e7bd4f6d9d

Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>
@mrjf mrjf marked this pull request as ready for review April 4, 2026 04:56
@mrjf mrjf merged commit 398f068 into main Apr 4, 2026
8 checks passed
@mrjf mrjf deleted the copilot/fix-stale-branch-patch-failures branch April 4, 2026 04:56
Copilot AI restored the copilot/fix-stale-branch-patch-failures branch April 4, 2026 04:57
Copilot stopped work on behalf of mrjf due to an error April 4, 2026 04:57
Copilot AI requested a review from mrjf April 4, 2026 04:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix stale branch causing create_pull_request patch failures

2 participants