Skip to content

Commit 2cb450d

Browse files
authored
Make expired content linter rule (GHD038) a warning, not an error (#56247)
1 parent ae0676e commit 2cb450d

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

content/contributing/collaborating-on-github-docs/using-the-content-linter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ Some linting rules return warnings or errors based on HTML comments that you can
118118

119119
#### Syntax for expiring and expired content
120120

121-
Rules `GHD038` and `GHD039` check for content that has been manually given an expiration date. Fourteen days before the specified date, the content linter will return a warning that the content is expiring soon. Starting on the specified date, the content linter will return an error and flag the content for remediation.
121+
Rules `GHD038` and `GHD039` check for content that has been manually given an expiration date. Fourteen days before the specified date, the content linter will return a warning that the content is expiring soon. Starting on the specified date, the content linter will return a warning and flag the content for remediation.
122122

123123
You can add an expiration date to content by wrapping it in HTML tags that contain an expiration date in the format: `<!-- expires yyyy-mm-dd --> <!-- end expires yyyy-mm-dd -->`
124124

data/reusables/contributing/content-linter-rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
| GHD022 | liquid-ifversion-versions | Liquid `ifversion`, `elsif`, and `else` tags should be valid and not contain unsupported versions. | error | liquid, versioning |
6060
| GHD035 | rai-reusable-usage | RAI articles and reusables can only reference reusable content in the data/reusables/rai directory | error | feature, rai |
6161
| GHD036 | image-no-gif | Image must not be a gif, styleguide reference: contributing/style-guide-and-content-model/style-guide.md#images | error | images |
62-
| GHD038 | expired-content | Expired content must be remediated. | error | expired |
62+
| GHD038 | expired-content | Expired content must be remediated. | warning | expired |
6363
| GHD039 | expiring-soon | Content that expires soon should be proactively addressed. | warning | expired |
6464
| [GHD040](https://github.com/github/docs/blob/main/src/content-linter/README.md) | table-liquid-versioning | Tables must use the correct liquid versioning format | error | tables |
6565
| GHD041 | third-party-action-pinning | Code examples that use third-party actions must always pin to a full length commit SHA | error | feature, actions |

src/content-linter/style/github-docs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ const githubDocsConfig = {
137137
},
138138
'expired-content': {
139139
// GHD038
140-
severity: 'error',
140+
severity: 'warning',
141141
'partial-markdown-files': true,
142142
},
143143
'expiring-soon': {

0 commit comments

Comments
 (0)