Fix merge-main-to-development workflow for protected branch#2264
Merged
Conversation
…velopment branch Agent-Logs-Url: https://github.com/PackRat-AI/PackRat/sessions/da9ec54f-ae67-42c6-b1d5-9a1c96104e1a Co-authored-by: mikib0 <54102880+mikib0@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
mikib0
April 20, 2026 15:19
View session
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the “merge main into development” GitHub Actions workflow to comply with branch protection rules on development by switching from a direct merge to opening an automated pull request.
Changes:
- Replace
devmasx/merge-branchwithpeter-evans/create-pull-requestto propose changes via PR. - Checkout
main(as the PR source) rather thandevelopment. - Configure the PR branch name, base branch, labels, and auto-delete behavior.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Contributor
Deploying packrat-guides with
|
| Latest commit: |
f2242ad
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://f9ebaed7.packrat-guides-6gq.pages.dev |
| Branch Preview URL: | https://copilot-fix-failing-ci-workf.packrat-guides-6gq.pages.dev |
Contributor
Deploying with
|
| Status | Name | Latest Commit | Updated (UTC) |
|---|---|---|---|
| ❌ Deployment failed View logs |
packrat-admin | f2242ad | Apr 21 2026, 02:00 PM |
Contributor
Deploying packrat-landing with
|
| Latest commit: |
f2242ad
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://134f46d3.packrat-landing.pages.dev |
| Branch Preview URL: | https://copilot-fix-failing-ci-workf.packrat-landing.pages.dev |
andrew-bierman
pushed a commit
that referenced
this pull request
May 14, 2026
Fix merge-main-to-development workflow for protected branch
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.
The workflow was failing with
409 - protected branch 'development' check failed: Changes must be made through a pull requestbecause it attempted to directly mergemaininto the now-protecteddevelopmentbranch.Changes
devmasx/merge-branch@v1.4.0withpeter-evans/create-pull-request@v7developmenttomain(source branch for PR)sync-main-to-developmentdevelopmentautomatedThe workflow now creates a PR instead of direct merge, complying with branch protection rules.