Skip to content

Commit

Permalink
Merge branch 'develop' of github.com:opencrvs/opencrvs-countryconfig …
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
rikukissa committed Aug 6, 2024
2 parents 01ed425 + 131b4b4 commit d10f67f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/clear-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ jobs:
name: 'Reset data'
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-22.04
outputs:
outcome: ${{ steps.reset-data.outcome }}
timeout-minutes: 60
steps:
- name: Clone country config resource package
Expand All @@ -45,6 +47,7 @@ jobs:
known_hosts: ${{ env.KNOWN_HOSTS }}

- name: Reset data
id: reset-data
env:
HOST: ${{ vars.DOMAIN }}
ENV: ${{ vars.ENVIRONMENT_TYPE }}
Expand Down
9 changes: 6 additions & 3 deletions infrastructure/environments/github.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,11 @@ export async function listEnvironmentSecrets(
{
owner: owner,
repository_id: repositoryId,
environment_name: environmentName
environment_name: environmentName,
per_page: 100
}
)

return response.data.secrets.map((secret) => ({
...secret,
type: 'SECRET',
Expand All @@ -263,7 +265,8 @@ export async function listRepositorySecrets(
'GET /repos/{owner}/{repo}/actions/secrets',
{
owner: owner,
repo: repositoryName
repo: repositoryName,
per_page: 100
}
)
return response.data.secrets.map((secret) => ({
Expand All @@ -281,9 +284,9 @@ export async function listEnvironmentVariables(
const response = await octokit.request(
'GET /repositories/{repository_id}/environments/{environment_name}/variables',
{
per_page: 30,
repository_id: repositoryId,
environment_name: environmentName,
per_page: 100,
headers: {
'X-GitHub-Api-Version': '2022-11-28'
}
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 0 additions & 6 deletions src/form/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,6 @@ export enum IntegratingSystemType {
Other = 'OTHER'
}

export declare enum THEME_MODE {
DARK = 'dark'
}

export interface IPreviewGroup {
id: string
label: MessageDescriptor
Expand Down Expand Up @@ -569,7 +565,6 @@ export interface IFormFieldBase {
mapping?: IFormFieldMapping
hideAsterisk?: boolean
hideHeader?: boolean
mode?: THEME_MODE
hidden?: boolean
previewGroup?: string
nestedFields?: { [key: string]: IFormField[] }
Expand All @@ -593,7 +588,6 @@ export interface IFormFieldBase {
ignoreFieldLabelOnErrorMessage?: boolean
ignoreBottomMargin?: boolean
customQuestionMappingId?: string
ignoreMediaQuery?: boolean
}

export interface Conditional {
Expand Down

0 comments on commit d10f67f

Please sign in to comment.