Skip to content

Commit

Permalink
Rephrasing no errors found message (#632)
Browse files Browse the repository at this point in the history
  • Loading branch information
eranturgeman authored Mar 4, 2024
1 parent 438e442 commit 8a702e2
Show file tree
Hide file tree
Showing 15 changed files with 17 additions and 17 deletions.
Binary file modified resources/v2/noVulnerabilityBannerMR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified resources/v2/noVulnerabilityBannerPR.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<div align='center'>

[![👍 Frogbot scanned this merge request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[![👍 Frogbot scanned this merge request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

</div>

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

[![👍 Frogbot scanned this merge request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[![👍 Frogbot scanned this merge request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

</div>

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

[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

</div>

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

[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

</div>

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

[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

</div>

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

[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)
[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)

</div>

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.**
**👍 Frogbot scanned this pull request and did not find any new security issues.**


---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.**
**👍 Frogbot scanned this pull request and did not find any new security issues.**

---
Note:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
**👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.**
**👍 Frogbot scanned this pull request and did not find any new security issues.**

---
## **Custom title**
Expand Down
4 changes: 2 additions & 2 deletions utils/outputwriter/icons.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,13 @@ func GetIconTag(imageSource ImageSource) string {
func GetSimplifiedTitle(is ImageSource) string {
switch is {
case NoVulnerabilityPrBannerSource:
return "👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies."
return "👍 Frogbot scanned this pull request and did not find any new security issues."
case VulnerabilitiesPrBannerSource:
return "🚨 Frogbot scanned this pull request and found the below:"
case VulnerabilitiesFixPrBannerSource:
return "🚨 This automated pull request was created by Frogbot and fixes the below:"
case NoVulnerabilityMrBannerSource:
return "👍 Frogbot scanned this merge request and found that it did not add vulnerable dependencies."
return "👍 Frogbot scanned this merge request and did not find any new security issues."
case VulnerabilitiesMrBannerSource:
return "🚨 Frogbot scanned this merge request and found the below:"
case VulnerabilitiesFixMrBannerSource:
Expand Down
6 changes: 3 additions & 3 deletions utils/outputwriter/icons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@ func TestGetSeverityTagNotApplicable(t *testing.T) {
}

func TestGetVulnerabilitiesBanners(t *testing.T) {
assert.Equal(t, "<div align='center'>\n\n[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n", GetBanner(NoVulnerabilityPrBannerSource))
assert.Equal(t, "<div align='center'>\n\n[![👍 Frogbot scanned this merge request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n", GetBanner(NoVulnerabilityMrBannerSource))
assert.Equal(t, "<div align='center'>\n\n[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n", GetBanner(NoVulnerabilityPrBannerSource))
assert.Equal(t, "<div align='center'>\n\n[![👍 Frogbot scanned this merge request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n", GetBanner(NoVulnerabilityMrBannerSource))
assert.Equal(t, "<div align='center'>\n\n[![🚨 Frogbot scanned this pull request and found the below:](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/vulnerabilitiesBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n", GetBanner(VulnerabilitiesPrBannerSource))
assert.Equal(t, "<div align='center'>\n\n[![🚨 Frogbot scanned this merge request and found the below:](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/vulnerabilitiesBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n", GetBanner(VulnerabilitiesMrBannerSource))
assert.Equal(t, "<div align='center'>\n\n[![🚨 This automated pull request was created by Frogbot and fixes the below:](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/vulnerabilitiesFixBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n", GetBanner(VulnerabilitiesFixPrBannerSource))
assert.Equal(t, "<div align='center'>\n\n[![🚨 This automated merge request was created by Frogbot and fixes the below:](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/vulnerabilitiesFixBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n", GetBanner(VulnerabilitiesFixMrBannerSource))
}

func TestGetSimplifiedTitle(t *testing.T) {
assert.Equal(t, "👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.", GetSimplifiedTitle(NoVulnerabilityPrBannerSource))
assert.Equal(t, "👍 Frogbot scanned this pull request and did not find any new security issues.", GetSimplifiedTitle(NoVulnerabilityPrBannerSource))
assert.Equal(t, "🚨 Frogbot scanned this pull request and found the below:", GetSimplifiedTitle(VulnerabilitiesPrBannerSource))
assert.Equal(t, "🚨 This automated pull request was created by Frogbot and fixes the below:", GetSimplifiedTitle(VulnerabilitiesFixPrBannerSource))
assert.Equal(t, "", GetSimplifiedTitle("none"))
Expand Down
2 changes: 1 addition & 1 deletion utils/outputwriter/simplifiedoutput_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func TestSimpleImage(t *testing.T) {
{
name: "no vulnerability pr banner",
source: NoVulnerabilityPrBannerSource,
expectedOutput: "**👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.**",
expectedOutput: "**👍 Frogbot scanned this pull request and did not find any new security issues.**",
},
{
name: "vulnerabilities pr banner",
Expand Down
4 changes: 2 additions & 2 deletions utils/outputwriter/standardoutput_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func TestStandardImage(t *testing.T) {
{
name: "no vulnerability pr banner",
source: NoVulnerabilityPrBannerSource,
expectedOutput: "<div align='center'>\n\n[![👍 Frogbot scanned this pull request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n",
expectedOutput: "<div align='center'>\n\n[![👍 Frogbot scanned this pull request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerPR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n",
},
{
name: "vulnerabilities pr banner",
Expand All @@ -97,7 +97,7 @@ func TestStandardImage(t *testing.T) {
{
name: "no vulnerability mr banner",
source: NoVulnerabilityMrBannerSource,
expectedOutput: "<div align='center'>\n\n[![👍 Frogbot scanned this merge request and found that it did not add vulnerable dependencies.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n",
expectedOutput: "<div align='center'>\n\n[![👍 Frogbot scanned this merge request and did not find any new security issues.](https://raw.githubusercontent.com/jfrog/frogbot/master/resources/v2/noVulnerabilityBannerMR.png)](https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot)\n\n</div>\n",
},
{
name: "vulnerabilities mr banner",
Expand Down

0 comments on commit 8a702e2

Please sign in to comment.