Skip to content

Commit

Permalink
Fix changelog work for the newest release
Browse files Browse the repository at this point in the history
  • Loading branch information
farost committed Feb 28, 2024
1 parent b406f73 commit f350133
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 15 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,27 @@ jobs:
distribution: 'temurin'
java-version: '17'

# Set environment variables
- name: Export Properties
id: properties
shell: bash
run: |
CHANGELOG="$(cat << 'EOM' | sed -e 's/^[[:space:]]*$//g' -e '/./,$!d'
${{ github.event.release.body }}
EOM
)"
echo "changelog<<EOF" >> $GITHUB_OUTPUT
echo "$CHANGELOG" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
# Update Unreleased section with the current release note
- name: Patch Changelog
if: ${{ steps.properties.outputs.changelog != '' }}
env:
CHANGELOG: ${{ steps.properties.outputs.changelog }}
run: |
./gradlew patchChangelog --release-note="`cat << EOM
${{ github.event.release.body }}
EOM`"
./gradlew patchChangelog --release-note="$CHANGELOG"
- run: ./gradlew buildPlugin

Expand Down
24 changes: 13 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

# typeql-plugin-jetbrains Changelog

## Unreleased
## [Unreleased]
### Added
- `.typeql` to supported extensions.
- TypeDB Studio's color schemes available for import (check out the [official GitHub repo](https://github.com/typedb-osi/typeql-plugin-jetbrains)).

## 0.2.0 - 2024-02-28
- Add .typeql to supported extensions.
- Update TypeQL grammar based on the recent official releases.
- Improve syntax highlighting, coloring, and referencing.
- Add TypeDB Studio's color schemes available for import (check out the [official GitHub repo](https://github.com/typedb-osi/typeql-plugin-jetbrains)).
- Fix incorrect syntax error highlighting.
- Enhance referencing, including override constraints like owns as, plays as, relates as.
- Improve Go To Declaration and Find Usages features work.
- Fix Rename feature and a set of errors connected to it.
### Fixed
- Updated TypeQL grammar based on the recent official releases.
- Improved syntax highlighting, coloring, and referencing.
- Fixed incorrect syntax error highlighting.
- Enhanced referencing, including override constraints like owns as, plays as, relates as.
- Improved Go To Declaration and Find Usages features work.
- Stabilized Rename feature and a set of errors connected to it.

## 0.1.1
- Add basic TypeQL support for `.tql` files.
### Added
- Basic TypeQL support
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
// Gradle IntelliJ Plugin
id("org.jetbrains.intellij") version "1.15.0"
// Gradle Changelog Plugin
id("org.jetbrains.changelog") version "2.1.2"
id("org.jetbrains.changelog") version "2.2.0"
// Gradle Qodana Plugin
id("org.jetbrains.qodana") version "0.1.13"
}
Expand Down

0 comments on commit f350133

Please sign in to comment.