update release note
This commit is contained in:
parent
aabbd350fd
commit
971746ef6a
35
.github/scripts/get-changelog.js
vendored
Normal file
35
.github/scripts/get-changelog.js
vendored
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
#!/usr/bin/env node
|
||||||
|
|
||||||
|
const fs = require('fs');
|
||||||
|
const path = require('path');
|
||||||
|
|
||||||
|
// Get version from command line argument
|
||||||
|
const version = process.argv[2];
|
||||||
|
if (!version) {
|
||||||
|
console.error('Please provide version as argument');
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Read CHANGELOG.md
|
||||||
|
const changelogPath = path.join(process.cwd(), 'CHANGELOG.md');
|
||||||
|
const content = fs.readFileSync(changelogPath, 'utf8');
|
||||||
|
|
||||||
|
// Split content into sections by h2 headers
|
||||||
|
const sections = content.split(/\n## /);
|
||||||
|
|
||||||
|
// Find the section for the specified version
|
||||||
|
const versionSection = sections.find(section => section.trim().startsWith(version));
|
||||||
|
|
||||||
|
if (!versionSection) {
|
||||||
|
console.error(`No changelog found for version ${version}`);
|
||||||
|
process.exit(1);
|
||||||
|
}
|
||||||
|
|
||||||
|
// Extract content between this version and next version
|
||||||
|
const lines = versionSection
|
||||||
|
.split('\n')
|
||||||
|
.slice(1) // Remove the version line itself
|
||||||
|
.join('\n')
|
||||||
|
.trim();
|
||||||
|
|
||||||
|
console.log(lines);
|
||||||
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@ -37,17 +37,18 @@ jobs:
|
|||||||
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
|
cp main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
|
||||||
zip -r ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip ${{ env.PLUGIN_NAME }}
|
zip -r ${{ env.PLUGIN_NAME }}-${{ steps.build.outputs.tag_name }}.zip ${{ env.PLUGIN_NAME }}
|
||||||
ls
|
ls
|
||||||
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
|
echo "tag_name=$(git tag --sort version:refname | tail -n 1)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Get release notes
|
- name: Get release notes
|
||||||
id: release_notes
|
id: release_notes
|
||||||
run: |
|
run: |
|
||||||
CHANGELOG=$(sed -n -e "/## ${{ steps.bundle.outputs.tag_name }}/,/## /p" CHANGELOG.md | sed '/## /d')
|
chmod +x .github/scripts/get-changelog.js
|
||||||
if [ -z "$CHANGELOG" ]; then
|
CHANGELOG=$(node .github/scripts/get-changelog.js ${{ steps.bundle.outputs.tag_name }})
|
||||||
echo "Error: No release notes found for this version in CHANGELOG.md"
|
if [ -z "$CHANGELOG" ]; then
|
||||||
exit 1
|
echo "Error: No release notes found for this version in CHANGELOG.md"
|
||||||
fi
|
exit 1
|
||||||
echo "::set-output name=body::${CHANGELOG}"
|
fi
|
||||||
|
echo "changelog=$CHANGELOG" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
@ -59,4 +60,4 @@ jobs:
|
|||||||
main.js
|
main.js
|
||||||
manifest.json
|
manifest.json
|
||||||
styles.css
|
styles.css
|
||||||
body: ${{ steps.release_notes.outputs.body }}
|
body: ${{ steps.release_notes.outputs.changelog }}
|
||||||
|
|||||||
16
CHANGELOG.md
16
CHANGELOG.md
@ -1,20 +1,6 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
## v0.0.1
|
## 0.0.2
|
||||||
|
|
||||||
### Added
|
|
||||||
- Initial release of obsidian-infio-copilot plugin
|
|
||||||
- Basic functionality for AI-powered assistance in Obsidian
|
|
||||||
- Interactive chat with selected notes
|
|
||||||
- Smart autocomplete based on your notes
|
|
||||||
- Enhanced user experience with customizable prompts
|
|
||||||
- Integration with Obsidian's search functionality
|
|
||||||
|
|
||||||
### Fixed
|
|
||||||
- Bug fixes and improvements
|
|
||||||
|
|
||||||
|
|
||||||
## v0.0.2
|
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
- Fixed memory leak in chat interface
|
- Fixed memory leak in chat interface
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"id": "infio-copilot",
|
"id": "infio-copilot",
|
||||||
"name": "Infio Copilot",
|
"name": "Infio Copilot",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"minAppVersion": "0.15.0",
|
"minAppVersion": "0.15.0",
|
||||||
"description": "A Cursor-inspired AI assistant for Obsidian that offers smart autocomplete and interactive chat with your selected notes",
|
"description": "A Cursor-inspired AI assistant for Obsidian that offers smart autocomplete and interactive chat with your selected notes",
|
||||||
"author": "Felix.D",
|
"author": "Felix.D",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "obsidian-infio-copilot",
|
"name": "obsidian-infio-copilot",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"description": "A Cursor-inspired AI assistant for Obsidian that offers smart autocomplete and interactive chat with your selected notes",
|
"description": "A Cursor-inspired AI assistant for Obsidian that offers smart autocomplete and interactive chat with your selected notes",
|
||||||
"main": "main.js",
|
"main": "main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user