Skip to content

Commit

Permalink
feat: update comment icon links
Browse files Browse the repository at this point in the history
  • Loading branch information
getinnocuous committed Nov 30, 2023
1 parent 31cf839 commit 4db4b95
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 20 deletions.
28 changes: 16 additions & 12 deletions cmd/comment.md
Original file line number Diff line number Diff line change
@@ -1,60 +1,64 @@
# <img width="24" alt="mapped" src="https://github.com/overmindtech/ovm-cli/assets/8799341/311e1bb0-e3da-4499-8db3-b97ec7674484"> Expected Changes
# <img width="24" alt="mapped" src="https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/item.svg"> Expected Changes

{{range .ExpectedChanges }}

<details>
<summary><img width="14" alt="{{ .StatusAlt }}" src="{{ .StatusIcon }}"> {{ .Type }} › {{ .Title }}</summary>

{{if .Diff }}

```diff
{{ .Diff }}
```

{{else}}
(no changed attributes)
{{end}}

</details>
{{else}}
No expected changes found.
{{end}}


## <img width="20" alt="unmapped" src="https://github.com/overmindtech/ovm-cli/assets/8799341/46002c31-0c19-45c5-92ac-2a339e25b00e"> Unmapped Changes
## <img width="20" alt="unmapped" src="https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/unmapped.svg"> Unmapped Changes

> [!NOTE]
> These changes couldn't be mapped to a real cloud resource and therefore won't be included in the blast radius calculation.

{{range .UnmappedChanges }}

<details>
<summary><img width="14" alt="{{ .StatusAlt }}" src="{{ .StatusIcon }}"> {{ .Type }} › {{ .Title }}</summary>

{{if .Diff }}

```diff
{{ .Diff }}
```

{{else}}
(no changed attributes)
{{end}}

</details>
{{else}}
No unmapped changes found.
{{end}}



# Blast Radius

| <img width="16" alt="items" src="https://github.com/overmindtech/ovm-cli/assets/8799341/311e1bb0-e3da-4499-8db3-b97ec7674484"> Items | <img width="16" alt="edges" src="https://github.com/overmindtech/ovm-cli/assets/8799341/437dcecd-117d-474d-a6fd-1aa241fb0fd0"> Edges |
|---|---|
| {{ .BlastItems }} | {{ .BlastEdges }}
| <img width="16" alt="items" src="https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/item.svg"> Items | <img width="16" alt="edges" src="https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/edge.svg"> Edges |
| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- |
| {{ .BlastItems }} | {{ .BlastEdges }} |

[Open in Overmind]({{ .ChangeUrl }})



{{if .Risks }}
# <img width="24" alt="warning" src="https://github.com/overmindtech/ovm-cli/assets/8799341/fd3b183f-92b3-4aab-987d-40452f92bdbb"> Risks

# <img width="24" alt="warning" src="https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/risks.svg"> Risks

{{range .Risks }}

## <img width="18" alt="{{ .SeverityAlt }}" src="{{ .SeverityIcon }}"> Impact on Target Groups [High]

The various target groups including \"944651592624.eu-west-2.elbv2-target-group.k8s-default-nats-4650f3a363\", \"944651592624.eu-west-2.elbv2-target-group.k8s-default-smartloo-fd2416d9f8\", etc., that work alongside the load balancer for traffic routing may be indirectly affected if the security group change causes networking issues. This is especially important if these target groups rely on different ports other than 8080 for health checks or for directing incoming requests to backend services.
Expand Down
16 changes: 8 additions & 8 deletions cmd/getchange.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,23 @@ func GetChange(ctx context.Context, ready chan bool) int {
},
sdp.ItemDiffStatus_ITEM_DIFF_STATUS_UNCHANGED: {
StatusAlt: "unchanged",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/item.png",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/item.svg",
},
sdp.ItemDiffStatus_ITEM_DIFF_STATUS_CREATED: {
StatusAlt: "created",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/created.png",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/created.svg",
},
sdp.ItemDiffStatus_ITEM_DIFF_STATUS_UPDATED: {
StatusAlt: "updated",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/changed.png",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/changed.svg",
},
sdp.ItemDiffStatus_ITEM_DIFF_STATUS_DELETED: {
StatusAlt: "deleted",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/deleted.png",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/deleted.svg",
},
sdp.ItemDiffStatus_ITEM_DIFF_STATUS_REPLACED: {
StatusAlt: "replaced",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/replaced.png",
StatusIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/replaced.svg",
},
}

Expand All @@ -197,17 +197,17 @@ func GetChange(ctx context.Context, ready chan bool) int {
},
sdp.Risk_SEVERITY_LOW: {
SeverityAlt: "low",
SeverityIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/low.png",
SeverityIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/low.svg",
SeverityText: "Low",
},
sdp.Risk_SEVERITY_MEDIUM: {
SeverityAlt: "medium",
SeverityIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/medium.png",
SeverityIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/medium.svg",
SeverityText: "Medium",
},
sdp.Risk_SEVERITY_HIGH: {
SeverityAlt: "high",
SeverityIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/ac4feb1b9dd73b5c42c5a515d12517b551d2886b/assets/high.png",
SeverityIcon: "https://raw.githubusercontent.com/overmindtech/ovm-cli/main/assets/high.svg",
SeverityText: "High",
},
}
Expand Down

0 comments on commit 4db4b95

Please sign in to comment.