Skip to content

Commit

Permalink
Improve banner and content options
Browse files Browse the repository at this point in the history
  • Loading branch information
attiasas committed Oct 29, 2023
1 parent 5d0e9da commit 4338057
Show file tree
Hide file tree
Showing 25 changed files with 155 additions and 85 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
some content
```
<details>
<summary>Note</summary>
<summary> <b>Note:</b> </summary>


---
<div align='center'>
Expand All @@ -18,8 +19,10 @@ some content

</div>


</details>


---
<div align='center'>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
some content
```
<details>
<summary>Note</summary>
<summary> <b>Note:</b> </summary>


---
<div align='center'>
Expand All @@ -18,8 +19,10 @@ some content

</div>


</details>


---
<div align='center'>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
some content
```

---
Note:

---

---
**Frogbot** also supports **Contextual Analysis, Secret Detection, IaC and SAST Vulnerabilities Scanning**. This features are included as part of the [JFrog Advanced Security](https://jfrog.com/advanced-security) package, which isn't enabled on your system.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

</div>

## Test Build
## **Custom title**

```
some content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
some content
```
<details>
<summary>Note</summary>
<summary> <b>Note:</b> </summary>


---
<div align='center'>
Expand All @@ -18,8 +19,10 @@ some content

</div>


</details>


---
<div align='center'>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
some content
```
<details>
<summary>Note</summary>
<summary> <b>Note:</b> </summary>


---
<div align='center'>
Expand All @@ -18,8 +19,10 @@ some content

</div>


</details>


---
<div align='center'>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@

</div>

## Test Build
## **Custom title**

```
some content
```
<details>
<summary>Note</summary>
<summary> <b>Note:</b> </summary>


---
<div align='center'>
Expand All @@ -19,8 +20,10 @@ some content

</div>


</details>


---
<div align='center'>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
**🚨 Frogbot scanned this pull request and found the below:**

**Test Build**
---
## **Custom title**

---

```
some content
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
some content
```

---
Note:

---

---
**Frogbot** also supports **Contextual Analysis, Secret Detection, IaC and SAST Vulnerabilities Scanning**. This features are included as part of the [JFrog Advanced Security](https://jfrog.com/advanced-security) package, which isn't enabled on your system.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
</div>

<details>
<summary>Note</summary>
<summary> <b>Note:</b> </summary>


---
<div align='center'>
Expand All @@ -14,8 +15,10 @@

</div>


</details>


---
<div align='center'>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
</div>

<details>
<summary>Note</summary>
<summary> <b>Note:</b> </summary>


---
<div align='center'>
Expand All @@ -14,8 +15,10 @@

</div>


</details>


---
<div align='center'>

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<div align='center'>

[![](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://github.com/jfrog/frogbot#readme)

</div>

## **Custom title**
<details>
<summary> <b>Note:</b> </summary>


---
<div align='center'>

**Frogbot** also supports **Contextual Analysis, Secret Detection, IaC and SAST Vulnerabilities Scanning**. This features are included as part of the [JFrog Advanced Security](https://jfrog.com/advanced-security) package, which isn't enabled on your system.

</div>


</details>


---
<div align='center'>

[🐸 JFrog Frogbot](https://github.com/jfrog/frogbot#readme)

</div>
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
**👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.**

---
Note:

---

---
**Frogbot** also supports **Contextual Analysis, Secret Detection, IaC and SAST Vulnerabilities Scanning**. This features are included as part of the [JFrog Advanced Security](https://jfrog.com/advanced-security) package, which isn't enabled on your system.

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
**👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.**

---
## **Custom title**

---

---
Note:

---

---
**Frogbot** also supports **Contextual Analysis, Secret Detection, IaC and SAST Vulnerabilities Scanning**. This features are included as part of the [JFrog Advanced Security](https://jfrog.com/advanced-security) package, which isn't enabled on your system.

---
[🐸 JFrog Frogbot](https://github.com/jfrog/frogbot#readme)
4 changes: 2 additions & 2 deletions utils/outputwriter/outputcontent.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func GetPRSummaryContent(content string, issuesExists, isComment bool, writer Ou
comment.WriteString(writer.Image(getPRSummaryBanner(issuesExists, isComment, writer.VcsProvider())))
customCommentTitle := writer.PullRequestCommentTitle()
if customCommentTitle != "" {
comment.WriteString(customCommentTitle)
WriteContent(&comment, writer.MarkAsTitle(MarkAsBold(customCommentTitle), 2))
}
if issuesExists {
WriteContent(&comment, content)
Expand Down Expand Up @@ -84,7 +84,7 @@ func untitledForJasMsg(writer OutputWriter) string {
if writer.AvoidExtraMessages() || writer.IsEntitledForJas() {
return ""
}
return writer.MarkAsCollapsible("Note", fmt.Sprintf("%s\n%s", SectionDivider(), writer.MarkInCenter(jasFeaturesMsgWhenNotEnabled)))
return writer.MarkAsDetails("Note:", 0, fmt.Sprintf("%s\n%s", SectionDivider(), writer.MarkInCenter(jasFeaturesMsgWhenNotEnabled)))
}

func footer(writer OutputWriter) string {
Expand Down
Loading

0 comments on commit 4338057

Please sign in to comment.