From 2552984a86d3c5274154826f239a583b20b166ca Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 11 Mar 2024 12:29:13 +0900 Subject: [PATCH] Skip documentation changes Many contributors just include the word `documentation` in titles, but not utilize `[DOC]` tag or `Documentation` label. --- .github/workflows/annocheck.yml | 2 ++ .github/workflows/baseruby.yml | 2 ++ .github/workflows/check_dependencies.yml | 2 ++ .github/workflows/codeql-analysis.yml | 2 ++ .github/workflows/compilers.yml | 2 ++ .github/workflows/macos.yml | 2 ++ .github/workflows/mingw.yml | 2 ++ .github/workflows/prism.yml | 2 ++ .github/workflows/rjit-bindgen.yml | 2 ++ .github/workflows/rjit.yml | 2 ++ .github/workflows/spec_guards.yml | 2 ++ .github/workflows/ubuntu.yml | 2 ++ .github/workflows/wasm.yml | 2 ++ .github/workflows/windows.yml | 2 ++ .github/workflows/yjit-macos.yml | 4 ++++ .github/workflows/yjit-ubuntu.yml | 2 ++ 16 files changed, 34 insertions(+) diff --git a/.github/workflows/annocheck.yml b/.github/workflows/annocheck.yml index 69798ed8b9cf0b..bf490202aab1d1 100644 --- a/.github/workflows/annocheck.yml +++ b/.github/workflows/annocheck.yml @@ -39,7 +39,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/baseruby.yml b/.github/workflows/baseruby.yml index 2b024de4994190..6bb5c37731a42d 100644 --- a/.github/workflows/baseruby.yml +++ b/.github/workflows/baseruby.yml @@ -35,7 +35,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/check_dependencies.yml b/.github/workflows/check_dependencies.yml index 83808784f6673c..ed3d8fbace05ce 100644 --- a/.github/workflows/check_dependencies.yml +++ b/.github/workflows/check_dependencies.yml @@ -37,7 +37,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 4482ac931477bd..170eb120c21d7a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -41,7 +41,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/compilers.yml b/.github/workflows/compilers.yml index 46e1ac5e2659c8..f074141134dd9f 100644 --- a/.github/workflows/compilers.yml +++ b/.github/workflows/compilers.yml @@ -219,7 +219,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml index e4aa733f6e866b..99f9257751c1d0 100644 --- a/.github/workflows/macos.yml +++ b/.github/workflows/macos.yml @@ -48,7 +48,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/mingw.yml b/.github/workflows/mingw.yml index 824de656aac08d..67564958c1efe3 100644 --- a/.github/workflows/mingw.yml +++ b/.github/workflows/mingw.yml @@ -57,7 +57,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/prism.yml b/.github/workflows/prism.yml index 3ebccf976ed9b2..87862b8a34b46e 100644 --- a/.github/workflows/prism.yml +++ b/.github/workflows/prism.yml @@ -47,7 +47,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/rjit-bindgen.yml b/.github/workflows/rjit-bindgen.yml index fef9ce8fe13499..eb023ecd534527 100644 --- a/.github/workflows/rjit-bindgen.yml +++ b/.github/workflows/rjit-bindgen.yml @@ -38,7 +38,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/rjit.yml b/.github/workflows/rjit.yml index 86610d6bc009a6..5fe25c0afbb909 100644 --- a/.github/workflows/rjit.yml +++ b/.github/workflows/rjit.yml @@ -47,7 +47,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/spec_guards.yml b/.github/workflows/spec_guards.yml index 95d34448301665..cc6ee3f81a3591 100644 --- a/.github/workflows/spec_guards.yml +++ b/.github/workflows/spec_guards.yml @@ -27,7 +27,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 4f9050a4c1f3bd..279fb4ade8022e 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -54,7 +54,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml index 26a14c58703b4d..eef1c5ea4e759b 100644 --- a/.github/workflows/wasm.yml +++ b/.github/workflows/wasm.yml @@ -53,7 +53,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index efc40ee87273c3..6e2a4485ab0941 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -42,7 +42,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/yjit-macos.yml b/.github/workflows/yjit-macos.yml index 2637f9fd23a7de..685dc495c71772 100644 --- a/.github/workflows/yjit-macos.yml +++ b/.github/workflows/yjit-macos.yml @@ -29,7 +29,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} @@ -69,7 +71,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}} diff --git a/.github/workflows/yjit-ubuntu.yml b/.github/workflows/yjit-ubuntu.yml index ab4ba4d9e262c9..cb11061a155cc8 100644 --- a/.github/workflows/yjit-ubuntu.yml +++ b/.github/workflows/yjit-ubuntu.yml @@ -117,7 +117,9 @@ jobs: if: >- ${{!(false || contains(github.event.head_commit.message, '[DOC]') + || contains(github.event.head_commit.message, 'Documentation') || contains(github.event.pull_request.title, '[DOC]') + || contains(github.event.pull_request.title, 'Documentation') || contains(github.event.pull_request.labels.*.name, 'Documentation') || (github.event_name == 'push' && github.actor == 'dependabot[bot]') )}}