Skip to content

Commit 285d4eb

Browse files
author
Laurence Joseph Pakenham-Smith
authored
Merge pull request #373 from NHSDigital/master
Update edge from master
2 parents 2b02125 + 86895d1 commit 285d4eb

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

ansible/collections/ansible_collections/nhsd/apigee/plugins/module_utils/models/ansible/apply_pull_request_namespace.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,14 @@ def apply_namespace(cls, manifest, values):
4141
# here we want:
4242
# canary-api-internal-dev -> canary-api-pr-1234
4343
# canary-api-internal-dev-sandbox -> canary-api-pr-1234-sandbox
44+
# Canary API (Internal Development) -> [PR 1234] Canary API (Internal Development)
4445
old = "internal-dev"
4546
new = values["pull_request"]
47+
display = new.replace('-', ' ').upper()
4648
for env in manifest.apigee.environments:
4749
for product in env.products:
4850
product.name = product.name.replace(old, new, 1)
51+
product.displayName = f"[{display}] {product.displayName}"
4952
product.proxies = [
5053
proxy.replace(old, new, 1)
5154
if proxy.startswith(api_name)

0 commit comments

Comments
 (0)