@programinglive/commiter 1.1.5 → 1.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [1.1.6](https://github.com/programinglive/commiter/compare/v1.1.5...v1.1.6) (2025-11-05)
6
+
7
+
8
+ ### 🐛 Bug Fixes
9
+
10
+ * revert to simple release notes staging to avoid git ref conflicts ([2f6a40e](https://github.com/programinglive/commiter/commit/2f6a40ed7259cffdb0b1de1633af3e43df475044))
11
+
5
12
  ### [1.1.5](https://github.com/programinglive/commiter/compare/v1.1.4...v1.1.5) (2025-11-05)
6
13
 
7
14
 
@@ -4,6 +4,7 @@ This document summarizes every published version of `@programinglive/commiter`.
4
4
 
5
5
  | Version | Date | Highlights |
6
6
  |---------|------|------------|
7
+ | 1.1.6 | 2025-11-05 | revert to simple release notes staging to avoid git ref conflicts (2f6a40e) |
7
8
  | 1.1.5 | 2025-11-05 | include release notes in release commit via amendment (3f2afa8) |
8
9
  | 1.1.4 | 2025-11-05 | simplify release notes staging to avoid git ref conflicts (d4077aa) |
9
10
  | 1.1.3 | 2025-11-05 | See CHANGELOG for details. |
@@ -28,6 +29,13 @@ This document summarizes every published version of `@programinglive/commiter`.
28
29
 
29
30
 
30
31
 
32
+
33
+ ## 1.1.6 – 🐛 Bug Fixes
34
+
35
+ Released on **2025-11-05**.
36
+
37
+ - revert to simple release notes staging to avoid git ref conflicts (2f6a40e)
38
+
31
39
  ## 1.1.5 – ✨ Features
32
40
 
33
41
  Released on **2025-11-05**.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@programinglive/commiter",
3
- "version": "1.1.5",
3
+ "version": "1.1.6",
4
4
  "description": "Commiter keeps repositories release-ready by enforcing conventional commits, generating icon-rich changelog entries, and orchestrating semantic version bumps without manual toil. It bootstraps Husky hooks, commitlint rules, and release scripts that inspect history, detect framework-specific test commands, run them automatically, tag git releases, coordinate npm publishing, surface release metrics, enforce project-specific checks, and give maintainers observability across distributed teams. Plus!",
5
5
  "main": "index.js",
6
6
  "bin": {
@@ -173,17 +173,6 @@ function runRelease({
173
173
 
174
174
  const releaseNotesPath = dependencies.releaseNotesPath || path.join('docs', 'release-notes', 'RELEASE_NOTES.md');
175
175
  const updateNotes = dependencies.updateReleaseNotes || ((options = {}) => updateReleaseNotes({ rootDir: cwd, ...options }));
176
- const gitAdd = dependencies.gitAdd || ((files) => spawnSync('git', ['add', ...files], { stdio: 'inherit', cwd }));
177
- const gitCommitAmend = dependencies.gitCommitAmend || (() => spawnSync('git', ['commit', '--amend', '--no-edit'], { stdio: 'inherit', cwd }));
178
- const gitTag = dependencies.gitTag || ((tagName, tagMessage) => {
179
- const args = tagMessage
180
- ? ['tag', '-f', '-a', tagName, '-m', tagMessage]
181
- : ['tag', '-f', tagName];
182
- return spawnSync('git', args, { stdio: 'inherit', cwd });
183
- });
184
- const getCommitMessage = dependencies.getCommitMessage || (() => spawnSync('git', ['log', '-1', '--pretty=%s'], { cwd, encoding: 'utf8' }));
185
- const buildTagName = dependencies.buildTagName || ((version) => `v${version}`);
186
- const loadPackage = dependencies.loadPackageJson || ((dir) => loadPackageJson(dir));
187
176
 
188
177
  let notesUpdated = false;
189
178
  try {
@@ -193,40 +182,9 @@ function runRelease({
193
182
  }
194
183
 
195
184
  if (notesUpdated) {
196
- const gitAddResult = gitAdd([releaseNotesPath]);
185
+ const gitAddResult = spawnSync('git', ['add', releaseNotesPath], { stdio: 'inherit', cwd });
197
186
  if (!gitAddResult || typeof gitAddResult.status !== 'number' || gitAddResult.status !== 0) {
198
- console.warn('⚠️ Release notes updated but failed to stage changes. Please add them manually.');
199
- return releaseResult;
200
- }
201
-
202
- const gitCommitResult = gitCommitAmend();
203
- if (!gitCommitResult || typeof gitCommitResult.status !== 'number' || gitCommitResult.status !== 0) {
204
- console.warn('⚠️ Release notes updated but failed to amend release commit. Please amend manually.');
205
- return releaseResult;
206
- }
207
-
208
- const packageJson = loadPackage(cwd);
209
- const version = packageJson && packageJson.version;
210
- if (!version) {
211
- console.warn('⚠️ Cannot retag release: package.json version missing. Please update tag manually.');
212
- return releaseResult;
213
- }
214
-
215
- const tagName = buildTagName(version);
216
- let tagMessage;
217
- try {
218
- const commitMessageResult = getCommitMessage();
219
- if (commitMessageResult && typeof commitMessageResult.status === 'number' && commitMessageResult.status === 0) {
220
- const output = typeof commitMessageResult.stdout === 'string' ? commitMessageResult.stdout : '';
221
- tagMessage = output.trim();
222
- }
223
- } catch (error) {
224
- console.warn(`⚠️ Unable to read release commit message: ${error.message}`);
225
- }
226
-
227
- const gitTagResult = gitTag(tagName, tagMessage);
228
- if (!gitTagResult || typeof gitTagResult.status === 'number' && gitTagResult.status !== 0) {
229
- console.warn(`⚠️ Failed to retag ${tagName}. Please update the tag manually before pushing.`);
187
+ console.warn('⚠️ Release notes updated but failed to stage. Please add manually: git add ' + releaseNotesPath);
230
188
  }
231
189
  }
232
190