1
0
mirror of synced 2025-12-19 18:10:59 -05:00

Make expired content linter rule (GHD038) a warning, not an error (#56247)

This commit is contained in:
Kevin Heis
2025-06-23 15:50:50 -07:00
committed by GitHub
parent ae0676e1db
commit 2cb450d342
3 changed files with 3 additions and 3 deletions

View File

@@ -118,7 +118,7 @@ Some linting rules return warnings or errors based on HTML comments that you can
#### Syntax for expiring and expired content
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.
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.
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 -->`

View File

@@ -59,7 +59,7 @@
| GHD022 | liquid-ifversion-versions | Liquid `ifversion`, `elsif`, and `else` tags should be valid and not contain unsupported versions. | error | liquid, versioning |
| GHD035 | rai-reusable-usage | RAI articles and reusables can only reference reusable content in the data/reusables/rai directory | error | feature, rai |
| GHD036 | image-no-gif | Image must not be a gif, styleguide reference: contributing/style-guide-and-content-model/style-guide.md#images | error | images |
| GHD038 | expired-content | Expired content must be remediated. | error | expired |
| GHD038 | expired-content | Expired content must be remediated. | warning | expired |
| GHD039 | expiring-soon | Content that expires soon should be proactively addressed. | warning | expired |
| [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 |
| GHD041 | third-party-action-pinning | Code examples that use third-party actions must always pin to a full length commit SHA | error | feature, actions |

View File

@@ -137,7 +137,7 @@ const githubDocsConfig = {
},
'expired-content': {
// GHD038
severity: 'error',
severity: 'warning',
'partial-markdown-files': true,
},
'expiring-soon': {