Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ntrnl 377 add environment variables to substitute reference to cabinet office or co words #64

Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/config/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { getEnvironmentValue } from '../utils/getEnvironmentValue';

export const SERVICE_NAME = 'GitHub Requests';
export const ORG_NAME = 'The Cabinet Office';
DanielMurray97 marked this conversation as resolved.
Show resolved Hide resolved

export const PATH_SSL_PRIVATE_KEY = getEnvironmentValue('PATH_SSL_PRIVATE_KEY', 'false');
export const PATH_SSL_CERTIFICATE = getEnvironmentValue('PATH_SSL_CERTIFICATE', 'false');
Expand Down
1 change: 1 addition & 0 deletions src/config/nunjucks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ export const configureNunjucks = (app: express.Application, viewsPath: string) =
nunjucksEnv.addGlobal('CDN_HOST', config.CDN_HOST);
nunjucksEnv.addGlobal('SERVICE_URL', config.SERVICE_URL);
nunjucksEnv.addGlobal('SERVICE_NAME', config.SERVICE_NAME);
nunjucksEnv.addGlobal('ORG_NAME', config.ORG_NAME);
};
2 changes: 1 addition & 1 deletion src/views/add-member.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h1 class="govuk-heading-l">Add a GitHub Member</h1>

<p class="govuk-body">
When a user requires access to our GitHub organisations (e.g they have joined The Cabinet Office) they should be added to the cabinetoffice GitHub organisation.
When a user requires access to our GitHub organisations (e.g they have joined {{ ORG_NAME }}) they should be added to the {{ ORG_NAME }} GitHub organisation.
DanielMurray97 marked this conversation as resolved.
Show resolved Hide resolved
</p>

{% include "include/error-list.html" %}
Expand Down
2 changes: 1 addition & 1 deletion src/views/add-team-member.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<h1 class="govuk-heading-l">Add Member(s) to Team.</h1>

<p class="govuk-body">
When user(s) has access to our GitHub organisations and they wish to be added to a team within the cabinetoffice GitHub organisation.
When user(s) has access to our GitHub organisations and they wish to be added to a team within {{ ORG_NAME }} GitHub organisation.
</p>

{% include "include/error-list.html" %}
Expand Down
2 changes: 1 addition & 1 deletion src/views/confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<h2 class="govuk-heading-m">What happens next</h2>

<p class="govuk-body">
We’ve sent your request to cabinetoffice internal developer platform.
We’ve sent your request to {{ ORG_NAME }} internal developer platform.
</p>
<p class="govuk-body">
They will contact you either to confirm your request, or to ask for more information.
Expand Down