-
Notifications
You must be signed in to change notification settings - Fork 223
CI: Add script and automated workflow to clean up stale PR preview documentation folders #1031
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CI: Add script and automated workflow to clean up stale PR preview documentation folders #1031
Conversation
…ocumentation Co-authored-by: leofang <[email protected]>
Co-authored-by: leofang <[email protected]>
leofang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@copilot help me reduce my review burden, see my comments below.
Co-authored-by: leofang <[email protected]>
leofang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: leofang <[email protected]>
leofang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: leofang <[email protected]>
|
pre-commit.ci autofix |
leofang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Co-authored-by: leofang <[email protected]>
|
What's the status of this PR? It seems like it's been languishing for a while. Let's make a decision and either merge it or close it out. |
|
@copilot Please add a CI workflow that runs this script every night at 11pm EST. Also make it manually dispatchable. |
Co-authored-by: leofang <[email protected]>
Added in commit f4d0dfa. Created
|
|
pre-commit.ci autofix |
|
Let's merge and I'll manually trigger the workflow to validate if it's functional. |
|
|
actual run works:
|
git worktree removebeforerm -rfto clean up git registrations.github/workflows/cleanup-pr-previews.ymlScript Interface
The cleanup script can be run manually with the following options:
Automated Workflow
The workflow runs automatically every night at 11pm EST and can also be manually triggered from the GitHub Actions tab:
The script safely handles existing worktrees and git registrations, preventing issues when re-running with the same temp directory name.
Fixes #628
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.