diff --git a/services/obs/api/patches/0005-Filter-GitHub-events-with-skip-CI-in-the-title.patch b/services/obs/api/patches/0005-Filter-GitHub-events-with-skip-CI-in-the-title.patch new file mode 100644 index 0000000..5a49e6a --- /dev/null +++ b/services/obs/api/patches/0005-Filter-GitHub-events-with-skip-CI-in-the-title.patch @@ -0,0 +1,13 @@ +diff --git a/services/obs/api/scm_webhook.rb b/services/obs/api/scm_webhook.rb +index ca59682..71898e9 100644 +--- a/services/obs/api/scm_webhook.rb ++++ b/services/obs/api/scm_webhook.rb +@@ -25,7 +25,7 @@ class SCMWebhook + end + + def updated_pull_request? +- (github_pull_request? && @payload[:action] == 'synchronize') || ++ (github_pull_request? && @payload[:action] == 'synchronize') && !(@payload.fetch(:title, '').include?('skip CI')) || + (gitlab_merge_request? && @payload[:action] == 'update') || + (gitea_pull_request? && @payload[:action] == 'synchronized') + end