Skip to content

Commit

Permalink
feat(Carta Giovani Nazionale): [#176442968] Adds CGN Feature Flag #2714
Browse files Browse the repository at this point in the history
  • Loading branch information
CrisTofani authored Jan 12, 2021
1 parent 519fe9c commit 5f9edcb
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ BPD_TEST_OVERLAY=NO
BPD_API_URL_PREFIX=https://prod.cstar.pagopa.it
BPD_API_SIT='https://bpd-dev.azure-api.net'
BPD_API_UAT='https://test.cstar.pagopa.it'
# CGN configuration
CGN_ENABLED=NO



2 changes: 2 additions & 0 deletions .env.local
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,6 @@ BPD_TEST_OVERLAY=NO
BPD_API_URL_PREFIX='http://127.0.0.1:3000/bonus'
BPD_API_SIT='https://bpd-dev.azure-api.net'
BPD_API_UAT='https://test.cstar.pagopa.it'
# CGN configuration
CGN_ENABLED=NO

2 changes: 2 additions & 0 deletions .env.production
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,5 @@ BPD_TEST_OVERLAY=NO
BPD_API_URL_PREFIX=https://prod.cstar.pagopa.it
BPD_API_SIT='https://bpd-dev.azure-api.net'
BPD_API_UAT='https://test.cstar.pagopa.it'
# CGN configuration
CGN_ENABLED=NO
3 changes: 2 additions & 1 deletion scripts/changelog/ts/changelog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const allowedScope = new Map<string, string>([
const projectToScope = new Map<number, string>([
[2449547, "Bonus Vacanze"],
[2463683, "My Portal"],
[2477137, "Bonus Pagamenti Digitali"]
[2477137, "Bonus Pagamenti Digitali"],
[2476636, "Carta Giovani Nazionale"]
]);

const cleanChangelogRegex = /^(fix(\(.+\))?!?: |feat(\(.+\))?!?: |chore(\(.+\))?!?: )?(.*)$/;
Expand Down
3 changes: 3 additions & 0 deletions ts/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ export const bpdApiUatUrlPrefix: string = Config.BPD_API_UAT;
export const isPlaygroundsEnabled: boolean =
Config.PLAYGROUNDS_ENABLED === "YES";

// CGN Feature Flag
export const cgnEnabled: boolean = Config.CGN_ENABLED === "YES";

// version of ToS
export const tosVersion: NonNegativeNumber = 2.1 as NonNegativeNumber;

Expand Down

0 comments on commit 5f9edcb

Please sign in to comment.