{"action":"closed","issue":{"url":"https://api.github.com/repos/buildbot/buildbot/issues/3442","repository_url":"https://api.github.com/repos/buildbot/buildbot","labels_url":"https://api.github.com/repos/buildbot/buildbot/issues/3442/labels{/name}","comments_url":"https://api.github.com/repos/buildbot/buildbot/issues/3442/comments","events_url":"https://api.github.com/repos/buildbot/buildbot/issues/3442/events","html_url":"https://github.com/buildbot/buildbot/issues/3442","id":243151770,"number":3442,"title":"master/www/hook/github.py: implement ci skipping","user":{"login":"iblis17","id":761623,"avatar_url":"https://avatars7.githubusercontent.com/u/761623?v=4","gravatar_id":"","url":"https://api.github.com/users/iblis17","html_url":"https://github.com/iblis17","followers_url":"https://api.github.com/users/iblis17/followers","following_url":"https://api.github.com/users/iblis17/following{/other_user}","gists_url":"https://api.github.com/users/iblis17/gists{/gist_id}","starred_url":"https://api.github.com/users/iblis17/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iblis17/subscriptions","organizations_url":"https://api.github.com/users/iblis17/orgs","repos_url":"https://api.github.com/users/iblis17/repos","events_url":"https://api.github.com/users/iblis17/events{/privacy}","received_events_url":"https://api.github.com/users/iblis17/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-07-15T04:16:39Z","updated_at":"2017-07-15T04:22:58Z","closed_at":"2017-07-15T04:22:58Z","body":"```patch\r\n--- github.py.orig      2017-07-15 11:58:37.892774000 +0800\r\n+++ github.py   2017-07-15 12:03:17.179259000 +0800\r\n@@ -196,6 +196,13 @@\r\n             log.msg(\"Branch `{}' deleted, ignoring\".format(branch))\r\n             return changes\r\n\r\n+        # check [ci skip] or [skip ci]\r\n+        head_msg = payload['head_commit']['message']\r\n+        if re.search(r'\\[ *skip *ci *\\]', head_msg):\r\n+            return changes\r\n+        elif re.search(r'\\[ *ci *skip *\\]', head_msg):\r\n+            return changes\r\n+\r\n         for commit in payload['commits']:\r\n             files = []\r\n             for kind in ('added', 'modified', 'removed'):\r\n```"}}
{"actor":{"display_login":"rodrigc"}}