revert: rollback to 9.8.0-beta.15 and enhance release configuration

- Roll back version from 9.8.0 to 9.8.0-beta.15 across all manifests
- Remove 9.8.0 changelog entries to prepare for clean release
- Enhance release-it configuration with intelligent stable tag detection
  - Add getLastStableTag() function to exclude pre-release versions
  - Configure changelog to only include commits since last stable release
  - Improve release workflow for cleaner version management
This commit is contained in:
Quorafind 2025-09-04 14:54:28 +08:00
parent d8ba377988
commit dee72cdc7a
6 changed files with 68 additions and 42 deletions

View file

@ -1,5 +1,64 @@
require('dotenv').config();
const { execSync } = require('child_process');
const semver = require('semver');
// 智能获取上一个正式版本标签(排除预发布版本)
function getLastStableTag() {
try {
// 获取所有标签
const allTags = execSync('git tag -l', { encoding: 'utf8' })
.trim()
.split('\n')
.filter(Boolean);
// 过滤出在当前分支历史中的标签,并排除预发布版本
const stableTags = [];
for (const tag of allTags) {
try {
// 检查标签是否可以从 HEAD 访问到
execSync(`git merge-base --is-ancestor ${tag} HEAD`, { encoding: 'utf8' });
// 尝试解析版本号(移除可能的 'v' 前缀)
const versionString = tag.replace(/^v/, '');
const version = semver.valid(versionString);
// 只保留正式版本(排除带有预发布标识的版本)
if (version && !semver.prerelease(version)) {
stableTags.push({ tag, version });
}
} catch (e) {
// 标签不在当前分支历史中,跳过
}
}
if (stableTags.length === 0) {
console.log('No stable version tags found, using HEAD~30');
return 'HEAD~30';
}
// 按照 semver 排序,从高到低
const sortedTags = stableTags.sort((a, b) => {
return semver.rcompare(a.version, b.version);
});
const latestStableTag = sortedTags[0];
console.log(`Using last stable version tag: ${latestStableTag.tag} (version: ${latestStableTag.version})`);
// 显示将包含的提交数量
try {
const commitCount = execSync(`git rev-list --count ${latestStableTag.tag}..HEAD`, { encoding: 'utf8' }).trim();
console.log(`Will include ${commitCount} commits since ${latestStableTag.tag}`);
} catch (e) {
// 忽略错误,这只是信息性输出
}
return latestStableTag.tag;
} catch (error) {
console.warn('Warning: Could not determine last stable tag, using HEAD~30', error.message);
return 'HEAD~30';
}
}
module.exports = {
interactive: true,
hooks: {
@ -37,7 +96,11 @@ module.exports = {
]
},
infile: "CHANGELOG.md",
header: "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\n"
header: "# Changelog\n\nAll notable changes to this project will be documented in this file.\n\n",
// 限制 git log 的提交范围,从上一个正式版开始(排除 beta 版本)
gitRawCommitsOpts: {
from: getLastStableTag() // 智能获取上一个正式版本
}
},
"./scripts/ob-bumper.mjs": {
indent: 2,

View file

@ -3,42 +3,6 @@
All notable changes to this project will be documented in this file.
## [9.8.0](https://github.com/Quorafind/Obsidian-Task-Genius/compare/9.8.0-beta.15...9.8.0) (2025-09-04)
### Features
* **projects:** add completed/total task counts to project badges ([1848f3d](https://github.com/Quorafind/Obsidian-Task-Genius/commit/1848f3d4926534b4170118c7ce552d36c5ff3c58))
* **projects:** add progress bar to Projects view ([cfdd402](https://github.com/Quorafind/Obsidian-Task-Genius/commit/cfdd40225e87777dee37140d8c08c043b4956353))
* **settings:** add global Ctrl+K/Cmd+K shortcut for search ([612a979](https://github.com/Quorafind/Obsidian-Task-Genius/commit/612a979f103b52079cf1d7de620025c870b544e7))
* **views:** add region-based organization with drag-and-drop sorting ([393fb48](https://github.com/Quorafind/Obsidian-Task-Genius/commit/393fb48c0188e29837bd6c7738a9ec2bccb24ca7))
### Bug Fixes
* **filter:** improve filter input performance with increased debounce delays ([8dd02bf](https://github.com/Quorafind/Obsidian-Task-Genius/commit/8dd02bf00c6b1e95bf340a3a1e4522387895a740))
* **habits:** prevent all habits being checked when selecting one ([28a061e](https://github.com/Quorafind/Obsidian-Task-Genius/commit/28a061eff4e93b48f97ad3d60b9176b2e24acd04))
* **quick-capture:** resolve tag duplication in autocomplete suggestions ([05d9022](https://github.com/Quorafind/Obsidian-Task-Genius/commit/05d90223847ce042a8616dbcde3f862332b03673))
* **settings:** correct event reason from 'view-deleted' to 'view-updated' ([9e595e7](https://github.com/Quorafind/Obsidian-Task-Genius/commit/9e595e7ae9c514fb222e510a2b0d8c783308e15d))
* **task-view:** resolve text display sync issues in markdown rendering ([99861bd](https://github.com/Quorafind/Obsidian-Task-Genius/commit/99861bdb9a151daccc34a351d91ece7540453403))
### Performance
* optimize view settings updates to avoid full refresh ([e26e6d5](https://github.com/Quorafind/Obsidian-Task-Genius/commit/e26e6d54c63c4a60db73a58acd8b99c06ca91e4e))
### Refactors
* remove inline styles and innerHTML from quadrant-column component ([48b3b8e](https://github.com/Quorafind/Obsidian-Task-Genius/commit/48b3b8ecf97d4e4da1e21119ec0cfd7beec66aa6))
* **styles:** extract inline styles to CSS files ([e93c78b](https://github.com/Quorafind/Obsidian-Task-Genius/commit/e93c78bc2ecd996635cdd87b22b1244081430f06))
* use Obsidian's setIcon instead of manual SVG creation ([cc9d1d5](https://github.com/Quorafind/Obsidian-Task-Genius/commit/cc9d1d5320cd4679dde35222a67a2beee63e6cdf))
### Documentation
* add bug review and fix documentation ([88f0d16](https://github.com/Quorafind/Obsidian-Task-Genius/commit/88f0d16e81315b8879b4fb74f8693e6d1a26e7a0))
### Styles
* apply prettier formatting to task view components ([27f4457](https://github.com/Quorafind/Obsidian-Task-Genius/commit/27f4457bf4bffef641e78237ee5d5df7ff926689))
## [9.7.6](https://github.com/Quorafind/Obsidian-Task-Progress-Bar/compare/9.7.5...9.7.6) (2025-08-18)
### Bug Fixes

View file

@ -1,7 +1,7 @@
{
"id": "obsidian-task-progress-bar",
"name": "Task Genius",
"version": "9.8.0",
"version": "9.8.0-beta.15",
"minAppVersion": "0.15.2",
"description": "Comprehensive task management that includes progress bars, task status cycling, and advanced task tracking features.",
"author": "Boninall",

View file

@ -1,7 +1,7 @@
{
"id": "obsidian-task-progress-bar",
"name": "Task Genius",
"version": "9.8.0",
"version": "9.7.7",
"minAppVersion": "0.15.2",
"description": "Comprehensive task management that includes progress bars, task status cycling, and advanced task tracking features.",
"author": "Boninall",

View file

@ -1,6 +1,6 @@
{
"name": "task-genius",
"version": "9.8.0",
"version": "9.8.0-beta.15",
"description": "Comprehensive task management plugin for Obsidian with progress bars, task status cycling, and advanced task tracking features.",
"main": "main.js",
"scripts": {

View file

@ -133,6 +133,5 @@
"9.8.0-beta.12": "0.15.2",
"9.8.0-beta.13": "0.15.2",
"9.8.0-beta.14": "0.15.2",
"9.8.0-beta.15": "0.15.2",
"9.8.0": "0.15.2"
"9.8.0-beta.15": "0.15.2"
}