Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ jobs:
let insertAt = lines.findIndex((l, i) => i > 0 && l.startsWith("## "));
if (insertAt === -1) insertAt = lines.length;

const entry = `## [${NEW}] – ${DATE}\n\n### Changed\n\n${DESCRIPTION} (PR #${PR})\n\n[${NEW}]: https://github.com/${REPO}/releases/tag/v${NEW}\n`;
const entry = `## [${NEW}] – ${DATE}\n\n### Changed\n\n${DESCRIPTION} (PR #${PR})\n\n[${NEW}]: https://github.com/${REPO}/releases/tag/${NEW}\n`;
lines.splice(insertAt, 0, entry);
fs.writeFileSync("CHANGELOG.md", lines.join("\n"));
'
Expand All @@ -181,7 +181,7 @@ jobs:
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add package.json manifest.json versions.json CHANGELOG.md
git commit -m "chore: release v${{ steps.version.outputs.new_version }} [skip ci]"
git commit -m "chore: release ${{ steps.version.outputs.new_version }} [skip ci]"
git push

- name: Build release artifacts
Expand All @@ -195,8 +195,8 @@ jobs:
NEW: ${{ steps.version.outputs.new_version }}
DESCRIPTION: ${{ steps.changelog_entry.outputs.description }}
run: |
gh release create "v${NEW}" \
--title "v${NEW}" \
gh release create "${NEW}" \
--title "${NEW}" \
--notes "${DESCRIPTION}" \
main.js manifest.json

Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),

Fix release workflow bump detection: correct broken regex (`\[xX\]` → `\[[xX]\]`), use temp file + `awk` markers for reliable multiline PR body handling, replace `echo | grep` with here-strings, and fall back to full-body scan when markers are missing. (PR #6)

[1.0.1]: https://github.com/nilsandrey/TextToolsPlugin/releases/tag/v1.0.1
[1.0.1]: https://github.com/nilsandrey/TextToolsPlugin/releases/tag/1.0.1
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The CHANGELOG.md links for the already-published releases 1.0.0 and 1.0.1 now point to releases/tag/1.0.0 and releases/tag/1.0.1 respectively. However, the release tags for these versions were created by the old workflow using the v prefix (i.e., v1.0.0 and v1.0.1). Since no GitHub releases exist at the bare 1.0.0 / 1.0.1 tag URLs, these two links will be broken for all readers of the CHANGELOG.

To fix this, either:

  1. Manually create tag aliases 1.0.0 and 1.0.1 in the GitHub repository that point to the same commits as v1.0.0 and v1.0.1, or
  2. Keep the existing release reference links pointing to the v-prefixed tags (i.e., revert the CHANGELOG.md changes for these two entries), so that only new releases going forward use the bare semver tag format.

Copilot uses AI. Check for mistakes.

## [1.0.0] – 2024-01-01

Expand All @@ -30,4 +30,4 @@ Fix release workflow bump detection: correct broken regex (`\[xX\]` → `\[[xX]\
- Settings UI for default pad character, line-number separator, pad toggle, GUID casing, case-sensitive filtering, filter history, and text slots.
- Full multi-selection support: all commands operate on every active editor selection independently.

[1.0.0]: https://github.com/nilsandrey/TextToolsPlugin/releases/tag/v1.0.0
[1.0.0]: https://github.com/nilsandrey/TextToolsPlugin/releases/tag/1.0.0
Copy link

Copilot AI Mar 8, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same issue as the 1.0.1 link above: this link points to releases/tag/1.0.0, but the actual GitHub release for version 1.0.0 was published with the v-prefixed tag v1.0.0. The 1.0.0 tag does not exist, so this link will be broken. The existing release reference links for already-published versions should either continue to use the v-prefixed tag format they were published under, or new non-v tag aliases need to be created for those releases.

Copilot uses AI. Check for mistakes.