From f450937508a45cc7a967602564449a65c48e22eb Mon Sep 17 00:00:00 2001 From: Matthew Treinish Date: Wed, 26 Mar 2014 15:00:27 -0400 Subject: [PATCH] Add new project_name variable to cookiecutter This commit adds a new cookiecutter variable to specify the targeted lp project that specs in the added repo are targetted against. For example if the repo_name was nova-specs project_name would be nova or for qa-specs it would be tempest. --- cookiecutter.json | 1 + {{cookiecutter.repo_name}}/CONTRIBUTING.rst | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cookiecutter.json b/cookiecutter.json index 67f6ecc..f4291f9 100644 --- a/cookiecutter.json +++ b/cookiecutter.json @@ -3,4 +3,5 @@ "repo_group": "openstack", "repo_name": "replace with the name for the git repo", "project_short_description": "OpenStack Boilerplate contains all the boilerplate you need to create an OpenStack package." + "project_name": "replace with the lp project used for the specs in the repo", } diff --git a/{{cookiecutter.repo_name}}/CONTRIBUTING.rst b/{{cookiecutter.repo_name}}/CONTRIBUTING.rst index c8b869b..c41aa75 100644 --- a/{{cookiecutter.repo_name}}/CONTRIBUTING.rst +++ b/{{cookiecutter.repo_name}}/CONTRIBUTING.rst @@ -14,4 +14,4 @@ Pull requests submitted through GitHub will be ignored. Bugs should be filed on Launchpad, not GitHub: - https://bugs.launchpad.net/{{ cookiecutter.repo_name }} + https://bugs.launchpad.net/{{ cookiecutter.project_name }}