Skip to content

Commit d7b6b94

Browse files
committed
fix: catalog header pattern;forum rule as warning
1 parent 764eb8a commit d7b6b94

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

repolinter-rulesets/community-plus.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ rules:
8888
section of the [Open By Default repository](https://github.com/newrelic/open-by-default#contribute)
8989
policyUrl: https://nerdlife.datanerd.us/new-relic/security-guidelines-for-publishing-source-code
9090
readme-contains-forum-topic:
91-
level: error
91+
level: warning
9292
rule:
9393
type: file-contents
9494
options:
9595
globsAll:
9696
- README*
97-
fail-on-non-existent: true
97+
fail-on-non-existent: false
9898
flags: i
9999
content: forum\.newrelic\.com
100100
human-readable-content: a link to the appropriate forum.newrelic.com topic

repolinter-rulesets/community-project.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,13 @@ rules:
8888
section of the [Open By Default repository](https://github.com/newrelic/open-by-default#contribute)
8989
policyUrl: https://nerdlife.datanerd.us/new-relic/security-guidelines-for-publishing-source-code
9090
readme-contains-forum-topic:
91-
level: error
91+
level: warning
9292
rule:
9393
type: file-contents
9494
options:
9595
globsAll:
9696
- README*
97-
fail-on-non-existent: true
97+
fail-on-non-existent: false
9898
flags: i
9999
content: forum\.newrelic\.com
100100
human-readable-content: a link to the appropriate forum.newrelic.com topic

repolinter-rulesets/new-relic-one-catalog-project.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"globsAll": ["README*"],
5151
"nocase": true,
5252
"lineCount": 1,
53-
"patterns": ["<a href=\"https:\\/\\/opensource\\.newrelic\\.com\\/oss-category\\/#new-relic-one-catalog-project\"><picture><source media=\"\\(prefers-color-scheme: dark\\)\" srcset=\"https:\\/\\/github\\.com\\/newrelic\\/opensource-website\\/raw\\/main\\/src\\/images\\/categories\\/dark\\/New_Relic_One_Catalog_Project\\.png\"><source media=\"\\(prefers-color-scheme: light\\)\" srcset=\"https:\\/\\/github\\.com\\/newrelic\\/opensource-website\\/raw\\/main\\/src\\/images\\/categories\\/New_Relic_One_Catalog_Project\\.png\"><img alt=\"New Relic Open Source catalog project banner\\.\" src=\"https:\\/\\/github\\.com\\/newrelic\\/opensource-website\\/raw\\/main\\/src\\/images\\/categories\\/New_Relic_One_Catalog_Project\\.png\"><\\/picture><\\/a>"],
53+
"patterns": ["<a href=\"https:\\/\\/opensource\\.newrelic\\.com\\/oss-category\\/#one-catalog\"><picture><source media=\"\\(prefers-color-scheme: dark\\)\" srcset=\"https:\\/\\/github\\.com\\/newrelic\\/opensource-website\\/raw\\/main\\/src\\/images\\/categories\\/dark\\/New_Relic_One_Catalog_Project\\.png\"><source media=\"\\(prefers-color-scheme: light\\)\" srcset=\"https:\\/\\/github\\.com\\/newrelic\\/opensource-website\\/raw\\/main\\/src\\/images\\/categories\\/New_Relic_One_Catalog_Project\\.png\"><img alt=\"New Relic Open Source catalog project banner\\.\" src=\"https:\\/\\/github\\.com\\/newrelic\\/opensource-website\\/raw\\/main\\/src\\/images\\/categories\\/New_Relic_One_Catalog_Project\\.png\"><\\/picture><\\/a>"],
5454
"human-readable-pattern": "Open source NR1 Catalog header (see https://opensource.newrelic.com/oss-category)",
5555
"flags": "i",
5656
"succeed-on-non-existent": false
@@ -64,7 +64,7 @@
6464
"newlines": { "end": 2 }
6565
}
6666
},
67-
"policyInfo": "The README of a community plus project should have a NR1 Catalog header at the start of the README. If you already have a NR1 Catalog header and this rule is failing, your header may be out of date, and you should update your header with the suggested one below",
67+
"policyInfo": "The README of a catalog project should have a NR1 Catalog header at the start of the README. If you already have a NR1 Catalog header and this rule is failing, your header may be out of date, and you should update your header with the suggested one below",
6868
"policyUrl": "https://opensource.newrelic.com/oss-category/"
6969
},
7070
"readme-contains-security-section": {
@@ -98,12 +98,12 @@
9898
"policyUrl": "https://nerdlife.datanerd.us/new-relic/security-guidelines-for-publishing-source-code"
9999
},
100100
"readme-contains-forum-topic": {
101-
"level": "error",
101+
"level": "warning",
102102
"rule": {
103103
"type": "file-contents",
104104
"options": {
105105
"globsAll": ["README*"],
106-
"fail-on-non-existent": true,
106+
"fail-on-non-existent": false,
107107
"flags": "i",
108108
"content": "forum\\.newrelic\\.com",
109109
"human-readable-content": "a link to the appropriate forum.newrelic.com topic"

0 commit comments

Comments
 (0)