diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d9ab25d6..a0b8f7a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,6 +3,8 @@ on: push: branches: - main + - develop + - main-hotfix pull_request: {} jobs: tests: diff --git a/.github/workflows/make_release_pr.yml b/.github/workflows/make_release_pr.yml index 4c0890c1..9a4528b9 100644 --- a/.github/workflows/make_release_pr.yml +++ b/.github/workflows/make_release_pr.yml @@ -18,9 +18,9 @@ jobs: owner: frappe repo: lms title: |- - "chore: merge 'develop' into 'main'" + "chore: merge 'main-hotfix' into 'main'" body: "Automated weekly release" base: main - head: develop + head: main-hotfix env: GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index e053c9b8..111c5918 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -4,7 +4,10 @@ on: pull_request: workflow_dispatch: push: - branches: [ main ] + branches: + - main + - develop + - main-hotfix permissions: # Do not change this as GITHUB_TOKEN is being used by roulette diff --git a/.mergify.yml b/.mergify.yml new file mode 100644 index 00000000..098cfd0a --- /dev/null +++ b/.mergify.yml @@ -0,0 +1,30 @@ +pull_request_rules: + - name: backport to develop + conditions: + - label="backport develop" + actions: + backport: + branches: + - develop + assignees: + - "{{ author }}" + + - name: backport to main-hotfix + conditions: + - label="backport main-hotfix" + actions: + backport: + branches: + - main-hotfix + assignees: + - "{{ author }}" + + - name: backport to main + conditions: + - label="backport main" + actions: + backport: + branches: + - main + assignees: + - "{{ author }}"