From 2f7d9e805b6c0cc30e6909bd92f650f848ff31e4 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 20 Apr 2026 07:04:05 +0000 Subject: [PATCH] Update workflow to create PR instead of direct merge for protected development 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> --- .../workflows/merge-main-to-development.yml | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/.github/workflows/merge-main-to-development.yml b/.github/workflows/merge-main-to-development.yml index c6ccb86c1c..88a9350f12 100644 --- a/.github/workflows/merge-main-to-development.yml +++ b/.github/workflows/merge-main-to-development.yml @@ -16,13 +16,19 @@ jobs: - name: Checkout repo uses: actions/checkout@v6 with: - ref: development + ref: main token: ${{ secrets.GITHUB_TOKEN }} fetch-depth: 0 - - name: Merge main into development - uses: devmasx/merge-branch@v1.4.0 + - name: Create Pull Request + uses: peter-evans/create-pull-request@v7 with: - type: now - from_branch: main - target_branch: development - github_token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + token: ${{ secrets.GITHUB_TOKEN }} + branch: sync-main-to-development + base: development + title: "chore: sync main to development" + body: | + Automated PR to sync changes from `main` to `development`. + + This PR is created automatically when changes are pushed to `main`. + labels: automated + delete-branch: true \ No newline at end of file