Commit c0ef4cd
authored
fix: allow conventional commit for pr title gen (#1666)
## Problem
Pull request descriptions generated by the AI assistant don't follow project-specific commit conventions, making them inconsistent with team standards and potentially causing issues with automated tooling that expects conventional commit formats.
## Changes
- Added `getCommitConventions()` call to retrieve project-specific commit convention settings
- Integrated conventional commit format hints into the AI prompt when conventional commits are enabled
- Updated the system prompt to include guidance on using conventional commit prefixes (feat, fix, docs, chore, etc.)
- Added `conventionalCommits` flag to telemetry tracking for monitoring adoption
The AI will now generate PR titles that follow conventional commit format when the project has this convention enabled, improving consistency across the codebase.1 parent ddd2484 commit c0ef4cd
1 file changed
Lines changed: 16 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1254 | 1254 | | |
1255 | 1255 | | |
1256 | 1256 | | |
1257 | | - | |
1258 | | - | |
1259 | | - | |
1260 | | - | |
1261 | | - | |
1262 | | - | |
| 1257 | + | |
| 1258 | + | |
| 1259 | + | |
| 1260 | + | |
| 1261 | + | |
| 1262 | + | |
| 1263 | + | |
| 1264 | + | |
1263 | 1265 | | |
1264 | 1266 | | |
1265 | 1267 | | |
| |||
1283 | 1285 | | |
1284 | 1286 | | |
1285 | 1287 | | |
| 1288 | + | |
| 1289 | + | |
| 1290 | + | |
| 1291 | + | |
| 1292 | + | |
| 1293 | + | |
1286 | 1294 | | |
1287 | 1295 | | |
1288 | 1296 | | |
| |||
1295 | 1303 | | |
1296 | 1304 | | |
1297 | 1305 | | |
| 1306 | + | |
1298 | 1307 | | |
1299 | 1308 | | |
1300 | 1309 | | |
| |||
1326 | 1335 | | |
1327 | 1336 | | |
1328 | 1337 | | |
| 1338 | + | |
1329 | 1339 | | |
1330 | 1340 | | |
1331 | 1341 | | |
| |||
0 commit comments