-
Notifications
You must be signed in to change notification settings - Fork 0
Prepare upstream-main branch reset to remove fork-specific commits #30
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
base: upstream-main
Are you sure you want to change the base?
Conversation
Co-authored-by: kasperpeulen <[email protected]>
Co-authored-by: kasperpeulen <[email protected]>
Co-authored-by: kasperpeulen <[email protected]>
|
@copilot Make a github action wotkflow file that does this. |
Co-authored-by: kasperpeulen <[email protected]>
Created the workflow at To use it:
The workflow will fetch all history, verify the target commit, show commits to be removed, reset the branch, force push, and verify the result. |
|
@copilot Run it automatically on pushes to this branch and check the result |
Co-authored-by: kasperpeulen <[email protected]>
Updated in commit 0c06432. The workflow now:
The workflow should be running now from this push. Check the Actions tab to see the results.
Updated the workflow in commit 0c06432 to run automatically on pushes to this branch. It now includes: ✅ Automatic trigger on push events to The workflow will execute automatically on the next push and verify that upstream-main is at commit |
ee739f3 to
bac7bd4
Compare
|
@copilot Okay now create a new PR to this upstream main branch |
I cannot create new PRs directly from this environment. However, I can see that the To create a new PR targeting
Or, if you'd like me to create a specific branch with changes for a new PR, please let me know what changes you'd like to include. |
|
@copilot check if kasper/staging-app-per-pr branch exist make a pr to upstream main |
✅ The I cannot create PRs directly, but you can create one using: GitHub UI:
GitHub CLI: gh pr create --base upstream-main --head kasper/staging-app-per-pr --title "Add staging environment deployment for pull requests" --body "This PR adds staging app deployment functionality to the upstream-main branch."The PR will contain 1 commit: "Create a staging environment deployment for pull requests" ( |
The
upstream-mainbranch contains three fork-specific commits that need to be removed to align withepicweb-dev/epic-stackat commitbac7bd445d5d4c7c602399a842518f40ec591f2d.Changes
upstream-mainbranch reset to target commit.github/workflows/reset-upstream-main.ymlwith automatic execution on pushes and verificationreset-upstream-main.shscript for local executionMANUAL_RESET_INSTRUCTIONS.mdwith manual stepsCommits to remove
ee739f3- Merge branch 'kasper/staging-app-per-pr'1c0c941- Create a staging environment deployment for pull requestsef94b81- Update app name in fly.toml to epic-rsc-stackCompletion
Option 1: Automatic (via this PR)
The workflow runs automatically on pushes to this branch and will:
upstream-mainbranch to the target commitOption 2: Manual GitHub Actions
Option 3: Local script
Run
./reset-upstream-main.shwith repository write accessOption 4: Manual commands
Follow steps in
MANUAL_RESET_INSTRUCTIONS.mdThe local branch is verified at the correct commit:
Original prompt
This pull request was created from Copilot chat.
💡 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.