Merge "Remove hardcoded direct-release project list"
diff --git a/jeepyb/projects.py b/jeepyb/projects.py
index 4cf9ffe..64d00d9 100644
--- a/jeepyb/projects.py
+++ b/jeepyb/projects.py
@@ -55,67 +55,11 @@
def is_direct_release(project_full_name):
try:
- direct = 'direct-release' in registry[project_full_name]['options']
- # return ...
+ return 'direct-release' in registry[project_full_name]['options']
except KeyError:
- direct = False
- # return False
-
- return direct or _hardcoded_is_direct_release(project_full_name)
+ return False
def docimpact_target(project_full_name):
return registry.get_project_item(project_full_name, 'docimpact-group',
'unknown')
-
-
-# The following functions should be deleted when projects.yaml will be updated
-
-def _hardcoded_is_direct_release(project_full_name):
- """Test against a list of projects who directly release changes.
-
- This function should be removed when projects.yaml will be updated.
- To specify direct_release you just need add option 'direct_relese' to your
- project declaration in projects.yaml
-
- Example:
- - project: some/project
- options:
- - direct-release
- description: Best project ever.
- """
- return project_full_name in [
- 'openstack-dev/devstack',
- 'openstack-infra/askbot-theme',
- 'openstack-infra/config',
- 'openstack-infra/devstack-gate',
- 'openstack-infra/gerrit',
- 'openstack-infra/gerritbot',
- 'openstack-infra/gerritlib',
- 'openstack-infra/gitdm',
- 'openstack-infra/lodgeit',
- 'openstack-infra/meetbot',
- 'openstack-infra/nose-html-output',
- 'openstack-infra/publications',
- 'openstack-infra/reviewday',
- 'openstack-infra/statusbot',
- 'openstack/api-site',
- 'openstack/openstack-manuals',
- 'openstack/tempest',
- 'openstack/tripleo-heat-templates',
- 'openstack/tripleo-image-elements',
- 'openstack/tripleo-incubator',
- 'stackforge/cookbook-openstack-block-storage',
- 'stackforge/cookbook-openstack-common',
- 'stackforge/cookbook-openstack-compute',
- 'stackforge/cookbook-openstack-dashboard',
- 'stackforge/cookbook-openstack-identity',
- 'stackforge/cookbook-openstack-image',
- 'stackforge/cookbook-openstack-metering',
- 'stackforge/cookbook-openstack-network',
- 'stackforge/cookbook-openstack-object-storage',
- 'stackforge/cookbook-openstack-ops-database',
- 'stackforge/cookbook-openstack-ops-messaging',
- 'stackforge/cookbook-openstack-orchestration',
- 'stackforge/openstack-chef-repo',
- ]