From 51a876374d85c442cd4a2bc49f02ae2690b43617 Mon Sep 17 00:00:00 2001 From: TP Honey Date: Mon, 7 Feb 2022 10:37:30 +0000 Subject: [PATCH] (fix) improve card layout --- docs/card.data.json | 20 ++++++++++++++++++++ docs/card.json | 8 ++++---- docs/sample_data.json | 20 -------------------- 3 files changed, 24 insertions(+), 24 deletions(-) create mode 100644 docs/card.data.json delete mode 100644 docs/sample_data.json diff --git a/docs/card.data.json b/docs/card.data.json new file mode 100644 index 0000000..4af1fe1 --- /dev/null +++ b/docs/card.data.json @@ -0,0 +1,20 @@ +{ + "NumIssues":1, + "Issues": [{ + "line": "*****", + "lineNumber": 12, + "offender": "*****", + "offenderEntropy": -1, + "commit": "e435b441a5c2847340633bd0f84b5eed8e32edcd", + "repo": ".", + "repoURL": "", + "leakURL": "", + "rule": "AWS Access Key", + "commitMessage": "commit message\n", + "author": "Eoin McAfee", + "email": "email@github.com", + "file": ".drone.yml", + "date": "2022-01-24T16:35:57Z", + "tags": "key, AWS" + }] + } \ No newline at end of file diff --git a/docs/card.json b/docs/card.json index bac38f8..8b8e9fa 100644 --- a/docs/card.json +++ b/docs/card.json @@ -53,6 +53,10 @@ { "type": "FactSet", "facts": [ + { + "title": "File:", + "value": "${file}" + }, { "title": "Line:", "value": "${formatNumber(lineNumber, 0)}" @@ -77,10 +81,6 @@ "title": "Email:", "value": "${email}" }, - { - "title": "File:", - "value": " ${file}" - }, { "title": "Date:", "value": "${date}" diff --git a/docs/sample_data.json b/docs/sample_data.json deleted file mode 100644 index 208a41d..0000000 --- a/docs/sample_data.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "NumIssues":1, - "Issues": [{ - "line": "*****", - "lineNumber": 12, - "offender": "*****", - "offenderEntropy": -1, - "commit": "e435b441a5c2847340633bd0f84b5eed8e32edcd", - "repo": ".", - "repoURL": "", - "leakURL": "", - "rule": "AWS Access Key", - "commitMessage": "commit message\n", - "author": "Eoin McAfee", - "email": "email@github.com", - "file": ".drone.yml", - "date": "2022-01-24T16:35:57Z", - "tags": "key, AWS" - }] -} \ No newline at end of file