From 9ca0aa72de4b6cbf3b456ce75f61721b22dc87d1 Mon Sep 17 00:00:00 2001 From: Kayode Ezike Date: Tue, 11 Jun 2024 07:42:16 -0400 Subject: [PATCH] renames CRED_STATUS_REPO_OWNER env var to CRED_STATUS_OWNER_ACCOUNT_NAME --- .env.example | 2 +- README.md | 4 ++-- src/config.js | 2 +- src/test-fixtures/.env.testing | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.env.example b/.env.example index c010d1e..4c6dcf8 100644 --- a/.env.example +++ b/.env.example @@ -12,7 +12,7 @@ CONSOLE_LOG_LEVEL=silly # default is silly, i.e. log everything - see the README LOG_LEVEL=silly # default is silly # Git specific environment variables -CRED_STATUS_REPO_OWNER=digitalcredentials +CRED_STATUS_OWNER_ACCOUNT_NAME=digitalcredentials CRED_STATUS_REPO_NAME=credential-status-test-jc CRED_STATUS_REPO_ID=12345678 # only required when CRED_STATUS_SERVICE = 'gitlab' CRED_STATUS_META_REPO_NAME=credential-status-metadata-test-jc diff --git a/README.md b/README.md index d4d5147..56ad6c1 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ This service provides support for managing credential status in a variety of Git | Key | Description | Type | Required | | --- | --- | --- | --- | | `CRED_STATUS_SERVICE` | name of the Git service used to manage credential status data | `github` \| `gitlab` | yes | -| \* `CRED_STATUS_REPO_OWNER` | name of the owner account (personal or organization) in the Git service used to manage credential status data | string | yes | +| \* `CRED_STATUS_OWNER_ACCOUNT_NAME` | name of the owner account (personal or organization) in the Git service used to manage credential status data | string | yes | | \* `CRED_STATUS_REPO_NAME` | name of the status credential repository | string | yes | | \* `CRED_STATUS_REPO_ID` | ID of the status credential repository | string | yes if `CRED_STATUS_SERVICE` = `gitlab` | | \* `CRED_STATUS_META_REPO_NAME` | name of the credential status metadata repository | string | yes | @@ -56,7 +56,7 @@ This service provides support for managing credential status in a variety of Git | `CONSOLE_LOG_LEVEL` | console log level (see [Logging](#logging)) | `error` \| `warn`\| `info` \| `http` \| `verbose` \| `debug` \| `silly` | no (default: `silly`) | | `LOG_LEVEL` | log level for application (see [Logging](#logging)) | `error` \| `warn`\| `info` \| `http` \| `verbose` \| `debug` \| `silly` | no (default: `silly`) | -\* You'll have to create Git repositories for `CRED_STATUS_REPO_NAME` and `CRED_STATUS_META_REPO_NAME` under the ownership of `CRED_STATUS_REPO_OWNER`, as they will be used to manage credential status. Full details of the implementation are [here](https://github.com/digitalcredentials/status-list-manager-git). +\* You'll have to create Git repositories for `CRED_STATUS_REPO_NAME` and `CRED_STATUS_META_REPO_NAME` under the ownership of `CRED_STATUS_OWNER_ACCOUNT_NAME`, as they will be used to manage credential status. Full details of the implementation are [here](https://github.com/digitalcredentials/status-list-manager-git). ## Signing Key diff --git a/src/config.js b/src/config.js index 5ae4a4e..1a13cc2 100644 --- a/src/config.js +++ b/src/config.js @@ -50,7 +50,7 @@ function getGitHubEnvs(env) { credStatusMetaRepoAccessToken: env.CRED_STATUS_META_REPO_ACCESS_TOKEN, credStatusRepoName: env.CRED_STATUS_REPO_NAME, credStatusMetaRepoName: env.CRED_STATUS_META_REPO_NAME, - credStatusOwnerAccountName: env.CRED_STATUS_REPO_OWNER + credStatusOwnerAccountName: env.CRED_STATUS_OWNER_ACCOUNT_NAME }; } diff --git a/src/test-fixtures/.env.testing b/src/test-fixtures/.env.testing index f2408e3..f6271a2 100644 --- a/src/test-fixtures/.env.testing +++ b/src/test-fixtures/.env.testing @@ -2,7 +2,7 @@ # the CRED_STATUS_* values are used to instantiate the status list manager CRED_STATUS_SERVICE=github -CRED_STATUS_REPO_OWNER=jchartrand +CRED_STATUS_OWNER_ACCOUNT_NAME=jchartrand CRED_STATUS_REPO_NAME=status-test-three CRED_STATUS_META_REPO_NAME=status-test-meta-three CRED_STATUS_REPO_ACCESS_TOKEN=