From b63486beee5381750236508ab6a249aee917c26d Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Tue, 14 May 2024 14:31:28 +0200 Subject: [PATCH 1/2] Added mergify rule --- .github/mergify.yml | 23 +++++++++++++++++++++++ .github/workflows/release.yml | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .github/mergify.yml diff --git a/.github/mergify.yml b/.github/mergify.yml new file mode 100644 index 0000000..4e61965 --- /dev/null +++ b/.github/mergify.yml @@ -0,0 +1,23 @@ +extends: .github + +# https://docs.mergify.io/conditions.html +# https://docs.mergify.io/actions.html +pull_request_rules: +- name: "auto merge Readme PRs" + conditions: + - and: + - or: + - "author=cloudpossebot" + - "author=github-actions[bot]" + - "author=dependabot[bot]" + - "author=renovate[bot]" + - and: + - and: + - -merged + - -closed + - and: + - "files=README.md" + - "#files=1" + actions: + merge: + method: "squash" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1b1241a..6aac2ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,5 +10,5 @@ permissions: jobs: perform: - uses: cloudposse/github-actions-workflows-github-action-composite/.github/workflows/release.yml@release-pr-commenter + uses: cloudposse/github-actions-workflows-github-action-composite/.github/workflows/release.yml@main secrets: inherit From 9dc70fbc2ecd045a05991c94d16c0dd1ef73900f Mon Sep 17 00:00:00 2001 From: Igor Rodionov Date: Tue, 14 May 2024 16:31:17 +0200 Subject: [PATCH 2/2] Added comment to mergify config --- .github/mergify.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/mergify.yml b/.github/mergify.yml index 4e61965..ca70715 100644 --- a/.github/mergify.yml +++ b/.github/mergify.yml @@ -15,6 +15,7 @@ pull_request_rules: - and: - -merged - -closed + # If README.md is the only file changed in the PR - and: - "files=README.md" - "#files=1"