2023-04-10 15:36:59 +00:00
|
|
|
# Copyright (c) HashiCorp, Inc.
|
|
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
|
2022-01-26 21:32:47 +00:00
|
|
|
rules:
|
|
|
|
# Check `release-note` in changelog entries.
|
|
|
|
# https://semgrep.dev/s/DyRW
|
|
|
|
- id: "changelog-release-note"
|
|
|
|
patterns:
|
|
|
|
- pattern: "```$CHANGE_TYPE"
|
|
|
|
- pattern-not-inside: "```release-note"
|
|
|
|
# This is probably the right way to write this rule, but semgrep doesn't
|
|
|
|
# like it: https://github.com/returntocorp/semgrep/issues/4565
|
|
|
|
# - pattern-not: "```release-note:..."
|
|
|
|
message: "Missing `relelease-note`"
|
|
|
|
languages:
|
|
|
|
- "generic"
|
|
|
|
severity: "ERROR"
|
|
|
|
fix: "```release-note:$CHANGE_TYPE"
|
|
|
|
paths:
|
|
|
|
include:
|
|
|
|
- ".changelog"
|