Skip to content

Commit

Permalink
added contentType field
Browse files Browse the repository at this point in the history
  • Loading branch information
nenadnovovicqc committed Sep 13, 2024
1 parent 486c154 commit 757733e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/testing/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ export abstract class BaseEvaluator<TestCaseType, OutputType>
export interface HumanReviewField {
name: string;
value: string;
contentType?: string;
}

/**
Expand Down
7 changes: 7 additions & 0 deletions src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ export enum ThirdPartyEnvVar {
GITHUB_TOKEN = 'GITHUB_TOKEN',
}

export enum HumanReviewFieldContentType {
TEXT = 'text',
LINK = 'link',
HTML = 'html',
MARKDOWN = 'markdown',
}

export const readEnv = (key: string): string | undefined => {
return process.env[key];
};
Expand Down

0 comments on commit 757733e

Please sign in to comment.