Skip to content

Commit 8bc3738

Browse files
committed
Add DiagnosticTag type and tags property
1 parent 29d5e4c commit 8bc3738

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎src/diagnostics.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ import { Language } from "./languages";
66
import { getActionsLogger } from "./logging";
77
import { getCodeQLDatabasePath } from "./util";
88

9+
/**
10+
* Known tags for diagnostics. There is currently only "internal-error",
11+
* but others may be added in the future.
12+
*/
13+
export type DiagnosticTag = "internal-error";
14+
915
/** Represents a diagnostic message for the tool status page, etc. */
1016
export interface DiagnosticMessage {
1117
/** ISO 8601 timestamp */
@@ -23,6 +29,8 @@ export interface DiagnosticMessage {
2329
* descriptor object should be nested under in SARIF.
2430
*/
2531
extractorName?: string;
32+
/** An array of tags for the diagnostic. */
33+
tags?: DiagnosticTag[];
2634
};
2735
/** GitHub flavored Markdown formatted message. Should include inline links to any help pages. */
2836
markdownMessage?: string;

0 commit comments

Comments
 (0)