You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
issuesContent = '*Unable to extract detailed issues*';
74
74
}
75
75
76
-
const commentBody = `## ⚠️ Parameter Group Version Check
77
-
78
-
The following parameter groups may need version increments:
79
-
80
-
${issuesContent}
81
-
82
-
**Why this matters:**
83
-
Modifying PG struct fields without incrementing the version can cause settings corruption when users flash new firmware. The \`pgLoad()\` function validates versions and will use defaults if there's a mismatch, preventing corruption.
84
-
85
-
**When to increment the version:**
86
-
- ✅ Adding/removing fields
87
-
- ✅ Changing field types or sizes
88
-
- ✅ Reordering fields
89
-
- ✅ Adding/removing packing attributes
90
-
- ❌ Only changing default values in \`PG_RESET_TEMPLATE\`
91
-
- ❌ Only changing comments
92
-
93
-
**Reference:**
94
-
- [Parameter Group Documentation](../docs/development/parameter_groups/)
95
-
- Example: [PR #11236](https://github.com/iNavFlight/inav/pull/11236) (field removal requiring version increment)
96
-
97
-
---
98
-
*This is an automated check. False positives are possible. If you believe the version increment is not needed, please explain in a comment.*`;
76
+
const commentBody = '## ⚠️ Parameter Group Version Check\n\n' +
77
+
'The following parameter groups may need version increments:\n\n' +
78
+
issuesContent + '\n\n' +
79
+
'**Why this matters:**\n' +
80
+
'Modifying PG struct fields without incrementing the version can cause settings corruption when users flash new firmware. The `pgLoad()` function validates versions and will use defaults if there\'s a mismatch, preventing corruption.\n\n' +
81
+
'**When to increment the version:**\n' +
82
+
'- ✅ Adding/removing fields\n' +
83
+
'- ✅ Changing field types or sizes\n' +
84
+
'- ✅ Reordering fields\n' +
85
+
'- ✅ Adding/removing packing attributes\n' +
86
+
'- ❌ Only changing default values in `PG_RESET_TEMPLATE`\n' +
87
+
'- ❌ Only changing comments\n\n' +
88
+
'**Reference:**\n' +
89
+
'- [Parameter Group Documentation](../docs/development/parameter_groups/)\n' +
90
+
'- Example: [PR #11236](https://github.com/iNavFlight/inav/pull/11236) (field removal requiring version increment)\n\n' +
91
+
'---\n' +
92
+
'*This is an automated check. False positives are possible. If you believe the version increment is not needed, please explain in a comment.*';
0 commit comments