From df73201864f087b85e8ec00c924acf3e193fb616 Mon Sep 17 00:00:00 2001
From: "James E. Blair" <jeblair@openstack.org>
Date: Thu, 21 Mar 2013 09:58:50 -0700
Subject: [PATCH] Add openstack-infra/askbot-theme.

Change-Id: I6940e49deaa2889e30327c202272176477f82593
Reviewed-on: https://review.openstack.org/25021
Reviewed-by: Anita Kuno <akuno@lavabit.com>
Reviewed-by: Elizabeth Krumbach <lyz@princessleia.com>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
---
 .../gerritbot/files/gerritbot_channel_config.yaml   |  1 +
 .../gerrit/acls/openstack-infra/askbot-theme.config | 13 +++++++++++++
 modules/openstack_project/files/zuul/layout.yaml    |  6 ++++++
 .../templates/review.projects.yaml.erb              |  3 +++
 4 files changed, 23 insertions(+)
 create mode 100644 modules/openstack_project/files/gerrit/acls/openstack-infra/askbot-theme.config

diff --git a/modules/gerritbot/files/gerritbot_channel_config.yaml b/modules/gerritbot/files/gerritbot_channel_config.yaml
index f1013bc18d..1a72ac437a 100644
--- a/modules/gerritbot/files/gerritbot_channel_config.yaml
+++ b/modules/gerritbot/files/gerritbot_channel_config.yaml
@@ -4,6 +4,7 @@ openstack-infra:
       - change-merged
       - x-vrif-minus-2
     projects:
+      - openstack-infra/askbot-theme
       - openstack-infra/config
       - openstack-infra/devstack-gate
       - openstack-infra/gerrit
diff --git a/modules/openstack_project/files/gerrit/acls/openstack-infra/askbot-theme.config b/modules/openstack_project/files/gerrit/acls/openstack-infra/askbot-theme.config
new file mode 100644
index 0000000000..e50e94850d
--- /dev/null
+++ b/modules/openstack_project/files/gerrit/acls/openstack-infra/askbot-theme.config
@@ -0,0 +1,13 @@
+[access "refs/heads/*"]
+        label-Code-Review = -2..+2 group askbot-theme-core
+        label-Approved = +0..+1 group askbot-theme-core
+[access "refs/tags/*"]
+        create = group askbot-theme-core
+        pushTag = group askbot-theme-core
+[project]
+        state = active
+[receive]
+        requireChangeId = true
+[submit]
+        mergeContent = true
+        action = cherry pick
diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml
index 89f83fe163..bf5070ea05 100644
--- a/modules/openstack_project/files/zuul/layout.yaml
+++ b/modules/openstack_project/files/zuul/layout.yaml
@@ -146,6 +146,12 @@ projects:
       - zuul-tarball:
         - zuul-pypi-upload
 
+  - name: openstack-infra/askbot-theme
+    check:
+      - gate-noop
+    gate:
+      - gate-noop
+
   - name: openstack-infra/nose-html-output
     check:
       - gate-noop
diff --git a/modules/openstack_project/templates/review.projects.yaml.erb b/modules/openstack_project/templates/review.projects.yaml.erb
index 760a5aac88..24becafbb2 100644
--- a/modules/openstack_project/templates/review.projects.yaml.erb
+++ b/modules/openstack_project/templates/review.projects.yaml.erb
@@ -14,6 +14,9 @@
   upstream: git://github.com/heat-api/heat-cfntools.git
 - project: openstack/heat
 - project: openstack/python-heatclient
+- project: openstack-infra/askbot-theme
+  description: Theme for ask.openstack.org.
+  upstream: https://bitbucket.org/askbot/openstack-theme
 - project: openstack-infra/devstack-gate
 - project: openstack-infra/gerrit
   description: Fork of Gerrit used by OpenStack