Skip to content

Commit e990f58

Browse files
author
Lasim
committed
chore(all): exclude release commits from changelog
1 parent 803bf21 commit e990f58

File tree

4 files changed

+43
-9
lines changed

4 files changed

+43
-9
lines changed

.github/copilot-instructions.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,26 @@ When generating commit messages, always follow this format:
1212
```
1313

1414
### Required Scopes
15-
- `frontend` - For Vue.js frontend application changes
16-
- `backend` - For Fastify backend API changes
17-
- `satellite` - For DeployStack satellite application changes
18-
- `shared` - For shared utilities and common code
19-
- `all` - For changes affecting multiple services or project-wide changes
20-
- `ci` - For CI/CD pipeline and workflow changes
15+
- `frontend` - For changes ONLY in `services/frontend/`
16+
- `backend` - For changes ONLY in `services/backend/`
17+
- `satellite` - For changes ONLY in `services/satellite/`
18+
- `shared` - For changes ONLY in `services/shared/`
19+
- `all` - **USE THIS when changes span multiple services** (e.g., changes in both `services/backend/` AND `services/satellite/`)
20+
- `ci` - For CI/CD pipeline and workflow changes (`.github/` directory)
2121
- `deps` - For dependency updates
2222

23+
### Scope Selection Rules
24+
1. **Count the affected service directories** - look at which `services/*` folders have changes
25+
2. If changes are in **exactly ONE** service → use that service's scope
26+
3. If changes are in **TWO OR MORE** services → use `all` scope
27+
4. Root-level config changes affecting all services → use `all` scope
28+
2329
### Examples of Good Commit Messages
2430
- `feat(frontend): add user authentication flow`
2531
- `fix(backend): resolve database connection pooling issue`
2632
- `feat(satellite): implement MCP server process management`
2733
- `refactor(shared): extract common validation utilities`
34+
- `chore(all): exclude release commits from changelog` ← changes in 2+ services (e.g., backend/ + frontend/, or all three)
2835
- `docs(all): update installation and setup instructions`
2936
- `chore(deps): update all dependencies to latest versions`
3037

services/backend/.release-it.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ module.exports = {
1818
'@release-it/conventional-changelog': {
1919
preset: 'angular',
2020
infile: 'CHANGELOG.md',
21-
whatBump: false
21+
whatBump: false,
22+
writerOpts: {
23+
transform: (commit) => {
24+
// Exclude release commits from changelog
25+
if (commit.type === 'chore' && commit.subject && commit.subject.startsWith('release v')) {
26+
return false;
27+
}
28+
return commit;
29+
}
30+
}
2231
}
2332
}
2433
};

services/frontend/.release-it.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,16 @@ module.exports = {
2323
'@release-it/conventional-changelog': {
2424
preset: 'angular',
2525
infile: 'CHANGELOG.md',
26-
whatBump: false
26+
whatBump: false,
27+
writerOpts: {
28+
transform: (commit) => {
29+
// Exclude release commits from changelog
30+
if (commit.type === 'chore' && commit.subject && commit.subject.startsWith('release v')) {
31+
return false;
32+
}
33+
return commit;
34+
}
35+
}
2736
}
2837
}
2938
};

services/satellite/.release-it.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,16 @@ module.exports = {
1818
'@release-it/conventional-changelog': {
1919
preset: 'angular',
2020
infile: 'CHANGELOG.md',
21-
whatBump: false
21+
whatBump: false,
22+
writerOpts: {
23+
transform: (commit) => {
24+
// Exclude release commits from changelog
25+
if (commit.type === 'chore' && commit.subject && commit.subject.startsWith('release v')) {
26+
return false;
27+
}
28+
return commit;
29+
}
30+
}
2231
}
2332
}
2433
};

0 commit comments

Comments
 (0)