Skip to content

Commit

Permalink
Merge pull request #128 from snyk/feat/sync-analysis-context
Browse files Browse the repository at this point in the history
feat: align analysis context
  • Loading branch information
pkey authored Mar 4, 2022
2 parents c43c279 + 2d8bf4f commit 5bfc9dd
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/interfaces/analysis-options.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,24 @@ export enum AnalysisSeverity {

export interface AnalysisContext {
analysisContext?: {
initiator: 'IDE' | 'CLI' | 'GIT' | 'unknown';
flow?: string;
org?: {
name: string;
displayName: string;
publicId: string;
flags: Record<string, boolean>;
};
project?: {
name: string;
publicId: string;
type: string;
};
//TODO: this should be removed - leaving here for backwards compatibility
orgPublicId?: string;
orgDisplayName?: string;
projectPublicId?: string;
projectName?: string;
initiator: 'IDE' | 'CLI';
flow?: string;
};
}

Expand Down

0 comments on commit 5bfc9dd

Please sign in to comment.