From 84b979f62a938a33e70fdcee5eeebf818ffe33ac Mon Sep 17 00:00:00 2001 From: Marco Villegas Date: Wed, 3 Aug 2016 15:56:45 -0500 Subject: [PATCH] Issue #2778659: Do not notify initial push of release branches --- drupalorg_versioncontrol/drupalorg_versioncontrol.module | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drupalorg_versioncontrol/drupalorg_versioncontrol.module b/drupalorg_versioncontrol/drupalorg_versioncontrol.module index 445eec3..875d2af 100644 --- a/drupalorg_versioncontrol/drupalorg_versioncontrol.module +++ b/drupalorg_versioncontrol/drupalorg_versioncontrol.module @@ -238,6 +238,10 @@ function drupalorg_versioncontrol_versioncontrol_project_issue_git_issue_notific $valid_branch_name_regex = '/^((\d+)(\.(\d+))?\.x)-(\d+)\.x$/'; } if (preg_match($valid_branch_name_regex, $ref->refname)) { + if ($ref->eventCreatedMe()) { + // Do not allow new release branches to notify when they are initially pushed. + $valid_issue_nids = array(); + } // Allow notifications on any issue if the branch looks like a release branch. return; } -- 2.8.1