diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-12 13:53:15 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2021-09-12 13:53:15 -0400 |
| commit | 317b2590bf125ba3ceb1dba14d91d296f115846b (patch) | |
| tree | 4482555558323325066c78c8b258bfe07f949c72 /src/metadata.ts | |
| parent | 4e14261c50311096a8a1d0a29689708f4320a9a9 (diff) | |
| download | ao-coverage-317b2590bf125ba3ceb1dba14d91d296f115846b.tar.gz ao-coverage-317b2590bf125ba3ceb1dba14d91d296f115846b.tar.bz2 ao-coverage-317b2590bf125ba3ceb1dba14d91d296f115846b.zip | |
Refactor upload processing
Diffstat (limited to 'src/metadata.ts')
| -rw-r--r-- | src/metadata.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/metadata.ts b/src/metadata.ts index 0877031..b7dbf19 100644 --- a/src/metadata.ts +++ b/src/metadata.ts @@ -3,6 +3,7 @@ import winston from "winston"; import loggerConfig from "./util/logger"; import { BranchNotFoundError } from "./errors"; +import { GradientStyle } from "./formats"; interface Branch { head: string; @@ -32,6 +33,8 @@ export interface EnvConfig { uploadLimit: number; hostDir: string; publicDir: string; + stage1: number; + stage2: number; } class Metadata { @@ -59,6 +62,13 @@ class Metadata { return this.config.publicDir; } + getGradientStyle(): GradientStyle { + return { + stage1: this.config.stage1, + stage2: this.config.stage2 + }; + } + async getHeadCommit( organization: string, repository: string, |
