From 12e89e8ecc19f3653b647404e64c7fb0cd2e9fb9 Mon Sep 17 00:00:00 2001 From: MartynasKi Date: Thu, 28 Aug 2025 16:17:23 +0300 Subject: [PATCH 1/3] added master to prod auto-pr --- .github/workflows/auto-pr-to-production.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/auto-pr-to-production.yml diff --git a/.github/workflows/auto-pr-to-production.yml b/.github/workflows/auto-pr-to-production.yml new file mode 100644 index 0000000..ef24eb8 --- /dev/null +++ b/.github/workflows/auto-pr-to-production.yml @@ -0,0 +1,21 @@ +name: Auto PR to production +on: + push: + branches: ["master"] + +jobs: + pull-request: + name: Open PR to production + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/checkout@v3 + name: checkout + + - uses: repo-sync/pull-request@v2 + name: pull-request + with: + destination_branch: "production" + pr_title: "Pulling ${{ github.ref_name }} => production" + pr_body: "*An automated PR*:\nfrom ${{ github.ref_name }} => production" + github_token: ${{ secrets.GITHUB_TOKEN }} From 2127072f9d6a446f7c420f9df8bbb20358597ee8 Mon Sep 17 00:00:00 2001 From: MartynasKi Date: Thu, 28 Aug 2025 16:20:16 +0300 Subject: [PATCH 2/3] first feature branch --- change.txt | 1 + 1 file changed, 1 insertion(+) create mode 100644 change.txt diff --git a/change.txt b/change.txt new file mode 100644 index 0000000..272d1ae --- /dev/null +++ b/change.txt @@ -0,0 +1 @@ +dummy file :) \ No newline at end of file From 198391014a791bbfe203994d027463b6d39c3ae3 Mon Sep 17 00:00:00 2001 From: MartynasKi Date: Thu, 28 Aug 2025 16:25:27 +0300 Subject: [PATCH 3/3] auto-pr permissions --- .github/workflows/auto-pr-to-production.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/auto-pr-to-production.yml b/.github/workflows/auto-pr-to-production.yml index ef24eb8..16977ae 100644 --- a/.github/workflows/auto-pr-to-production.yml +++ b/.github/workflows/auto-pr-to-production.yml @@ -1,8 +1,13 @@ name: Auto PR to production + on: push: branches: ["master"] +permissions: + contents: write + pull-requests: write + jobs: pull-request: name: Open PR to production