We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53983db commit fd811c5Copy full SHA for fd811c5
.github/workflows/major-version-check.yml
@@ -55,9 +55,15 @@ jobs:
55
56
const content = Buffer.from(changesetContent.content, changesetContent.encoding).toString();
57
58
- if (/major/.test(content)) {
59
- hasMajorChangeset = true;
60
- break;
+ // Only check for "major" in the YAML frontmatter section (between --- markers)
+ // This avoids false positives from descriptive text mentioning "major"
+ const frontmatterMatch = content.match(/^---\r?\n([\s\S]*?)\r?\n---\s*$/m);
61
+ if (frontmatterMatch) {
62
+ const frontmatter = frontmatterMatch[1];
63
+ if (/:\s*["']?major["']?/.test(frontmatter)) {
64
+ hasMajorChangeset = true;
65
+ break;
66
+ }
67
}
68
69
0 commit comments