Improve cleanup workflow resilience and fork compatibility#6822
Draft
Copilot wants to merge 4 commits intodocs-v2-jts-agentic-workflowfrom
Draft
Improve cleanup workflow resilience and fork compatibility#6822Copilot wants to merge 4 commits intodocs-v2-jts-agentic-workflowfrom
Copilot wants to merge 4 commits intodocs-v2-jts-agentic-workflowfrom
Conversation
- Switch from pull_request to pull_request_target for fork compatibility - Use fetch-depth: 0 to get full history - Add git pull --rebase before push to handle concurrent merges - Soften startup hook reference to clarify it's configurable Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>
- Add fallback to regular merge if rebase fails due to conflicts - Document security considerations for pull_request_target usage - Clarify why this workflow is safe for fork PRs Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>
Use --no-rebase --no-edit flags to ensure merge doesn't prompt for editor Co-authored-by: jstirnaman <212227+jstirnaman@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Create and manage context and planning files for agents
Improve cleanup workflow resilience and fork compatibility
Feb 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Addresses review feedback on the ephemeral docs cleanup workflow to handle concurrent merges and support fork PRs.
Changes
Workflow trigger and permissions
pull_requesttopull_request_targetfor fork PR write accessConcurrent merge handling
fetch-depth: 0for full historygit pull --rebasebefore push with fallback togit pull --no-rebase --no-editon conflictDocumentation accuracy
.claude/commands/plan.md💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.