Skip to content

Commit

Permalink
renames CRED_STATUS_REPO_OWNER env var to CRED_STATUS_OWNER_ACCOUNT_NAME
Browse files Browse the repository at this point in the history
  • Loading branch information
kezike committed Jun 11, 2024
1 parent 5b58e0f commit 9ca0aa7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/test-fixtures/.env.testing
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down

0 comments on commit 9ca0aa7

Please sign in to comment.