From 97ce5f0f5db4ea08ed9af88119f99b3653d080ec Mon Sep 17 00:00:00 2001 From: Monty Taylor Date: Sun, 18 Aug 2013 15:27:17 -0400 Subject: [PATCH] Add cookiecutter templates repo Cookiecutter is a project that creates skeleton projects from a set of templates. Since there are at least a few different files to set up for an openstack-compliant project, let's maintain a set of templates. After this has landed, we should add support to manage_projects to use cookiecutter to create the initial empty repo. Change-Id: Iad67d289df1d37c1e8172e18b4903ca8ab278fa5 --- .../gerritbot/files/gerritbot_channel_config.yaml | 1 + .../gerrit/acls/openstack-dev/cookiecutter.config | 12 ++++++++++++ modules/openstack_project/files/zuul/layout.yaml | 6 ++++++ .../templates/review.projects.yaml.erb | 3 +++ 4 files changed, 22 insertions(+) create mode 100644 modules/openstack_project/files/gerrit/acls/openstack-dev/cookiecutter.config diff --git a/modules/gerritbot/files/gerritbot_channel_config.yaml b/modules/gerritbot/files/gerritbot_channel_config.yaml index 35ddd4c3f1..f36fb7c053 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-dev/cookiecutter - openstack-dev/hacking - openstack-dev/pbr - openstack-infra/askbot-theme diff --git a/modules/openstack_project/files/gerrit/acls/openstack-dev/cookiecutter.config b/modules/openstack_project/files/gerrit/acls/openstack-dev/cookiecutter.config new file mode 100644 index 0000000000..dfc83b1c66 --- /dev/null +++ b/modules/openstack_project/files/gerrit/acls/openstack-dev/cookiecutter.config @@ -0,0 +1,12 @@ +[access "refs/heads/*"] + label-Approved = +0..+1 group cookiecutter-core + label-Code-Review = -2..+2 group cookiecutter-core +[access "refs/tags/*"] + create = group cookiecutter-core + pushTag = group cookiecutter-core +[project] + state = active +[receive] + requireChangeId = true +[submit] + mergeContent = true diff --git a/modules/openstack_project/files/zuul/layout.yaml b/modules/openstack_project/files/zuul/layout.yaml index b49e909277..c15f4a5540 100644 --- a/modules/openstack_project/files/zuul/layout.yaml +++ b/modules/openstack_project/files/zuul/layout.yaml @@ -1289,6 +1289,12 @@ projects: experimental: - gate-grenade-devstack-vm-stable + - name: openstack-dev/cookiecutter + check: + - gate-noop + gate: + - gate-noop + - name: openstack-dev/hacking check: - gate-hacking-pep8 diff --git a/modules/openstack_project/templates/review.projects.yaml.erb b/modules/openstack_project/templates/review.projects.yaml.erb index 502cb8e6ba..3ee8248bcc 100644 --- a/modules/openstack_project/templates/review.projects.yaml.erb +++ b/modules/openstack_project/templates/review.projects.yaml.erb @@ -366,6 +366,9 @@ - project: openstack-dev/heat-cfnclient description: CloudFormation compatibile Heat client upstream: git://github.com/steveb/heat-cfnclient.git +- project: openstack-dev/cookiecutter + description: Cookiecutter Template for new OpenStack projects + upstream: git://github.com/emonty/cookiecutter-openstack.git - project: stackforge/pycadf description: CADF Python module - project: stackforge/tuskar