From 4f9e4799bfa188c2064e91e65b752665a42ab776 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Wed, 13 Jul 2022 22:23:45 +0200 Subject: [PATCH 1/2] workflows: open pr on branch push --- .github/workflows/auto-pull-request.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/auto-pull-request.yaml diff --git a/.github/workflows/auto-pull-request.yaml b/.github/workflows/auto-pull-request.yaml new file mode 100644 index 0000000..e314be9 --- /dev/null +++ b/.github/workflows/auto-pull-request.yaml @@ -0,0 +1,20 @@ +name: Pull Request on Branch Push + +on: + push: + branches-ignore: + - develop + - release + +jobs: + auto-pull-request: + name: Open pull request + runs-on: ubuntu-latest + steps: + - name: pull-request-action + uses: vsoch/pull-request-action@1.0.19 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + PULL_REQUEST_BRANCH: "develop" + PULL_REQUEST_DRAFT: true + PASS_IF_EXISTS: true From db85c2b7936a0d7b3357fd2a40c814aa2140d174 Mon Sep 17 00:00:00 2001 From: alterNERDtive Date: Wed, 13 Jul 2022 22:25:13 +0200 Subject: [PATCH 2/2] auto-pull-request workflow: fixed branch name --- .github/workflows/auto-pull-request.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-pull-request.yaml b/.github/workflows/auto-pull-request.yaml index e314be9..30b2ce7 100644 --- a/.github/workflows/auto-pull-request.yaml +++ b/.github/workflows/auto-pull-request.yaml @@ -3,7 +3,7 @@ name: Pull Request on Branch Push on: push: branches-ignore: - - develop + - devel - release jobs: @@ -15,6 +15,6 @@ jobs: uses: vsoch/pull-request-action@1.0.19 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PULL_REQUEST_BRANCH: "develop" + PULL_REQUEST_BRANCH: "devel" PULL_REQUEST_DRAFT: true PASS_IF_EXISTS: true