Skip to content

Create individual issue view using Block Kit API #7

Description

@carwin

Draft / Concept

image

Accompanying block array

{
	"blocks": [
		{
			"type": "header",
			"text": {
				"type": "plain_text",
				"text": "ansi-regex"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "_Regular Expression Denial of Service (ReDoS)_"
			}
		},
		{
			"type": "section",
			"text": {
				"type": "mrkdwn",
				"text": "*Vulnerability:*\n <https://snyk.io|CWE-400> - <https://snyk.io | CVE-2021-3807> - <https://snyk.io | CVSS 7.5>"
			}
		},
		{
			"type": "section",
			"fields": [
				{
					"type": "mrkdwn",
					"text": "*Score:*\n485"
				},
				{
					"type": "mrkdwn",
					"text": "*Priority:*\n:red_circle: High\n  "
				},
				{
					"type": "mrkdwn",
					"text": "*Snyk Identifier:*\nSNYK-JS-ANSIREGEX-1583908"
				},
				{
					"type": "mrkdwn",
					"text": "*Introduced through:*\nesdoc@1.1.0"
				}
			]
		},
		{
			"type": "actions",
			"elements": [
				{
					"type": "button",
					"text": {
						"type": "plain_text",
						"emoji": true,
						"text": "View on Snyk.io"
					},
					"style": "primary",
					"value": "click_me_123"
				},
				{
					"type": "button",
					"text": {
						"type": "plain_text",
						"emoji": true,
						"text": "Ignore"
					},
					"style": "danger",
					"value": "click_me_123"
				}
			]
		}
	]
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions