Skip to content

Commit 6f5364d

Browse files
authored
release: 2.33.0 (#740)
1 parent 388577c commit 6f5364d

File tree

8 files changed

+121
-76
lines changed

8 files changed

+121
-76
lines changed

CHANGELOG.md

Lines changed: 72 additions & 52 deletions
Large diffs are not rendered by default.

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ members = ["crates/*"]
33
resolver = "2"
44

55
[workspace.package]
6-
version = "2.32.0"
6+
version = "2.33.0"
77
edition = "2024"
88
rust-version = "1.90.0"
99
authors = ["Squawk Team & Contributors"]
@@ -60,13 +60,13 @@ snapbox = { version = "0.6.0", features = ["diff", "term-svg", "cmd"] }
6060

6161
# local
6262
# we have to make the versions explicit otherwise `cargo publish` won't work
63-
squawk-github = { path = "./crates/squawk_github", version = "2.32.0" }
64-
squawk-ide = { path = "./crates/squawk_ide", version = "2.32.0" }
65-
squawk-lexer = { path = "./crates/squawk_lexer", version = "2.32.0" }
66-
squawk-parser = { path = "./crates/squawk_parser", version = "2.32.0" }
67-
squawk-syntax = { path = "./crates/squawk_syntax", version = "2.32.0" }
68-
squawk-linter = { path = "./crates/squawk_linter", version = "2.32.0" }
69-
squawk-server = { path = "./crates/squawk_server", version = "2.32.0" }
63+
squawk-github = { path = "./crates/squawk_github", version = "2.33.0" }
64+
squawk-ide = { path = "./crates/squawk_ide", version = "2.33.0" }
65+
squawk-lexer = { path = "./crates/squawk_lexer", version = "2.33.0" }
66+
squawk-parser = { path = "./crates/squawk_parser", version = "2.33.0" }
67+
squawk-syntax = { path = "./crates/squawk_syntax", version = "2.33.0" }
68+
squawk-linter = { path = "./crates/squawk_linter", version = "2.33.0" }
69+
squawk-server = { path = "./crates/squawk_server", version = "2.33.0" }
7070

7171
[workspace.lints.clippy]
7272
collapsible_else_if = "allow"

crates/squawk_github/src/app.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use serde_json::Value;
1111
use std::time::Duration;
1212
use std::time::{SystemTime, UNIX_EPOCH};
1313

14-
pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.32.0";
14+
pub(crate) const SQUAWK_USER_AGENT: &str = "squawk/2.33.0";
1515

1616
#[derive(Debug, Serialize)]
1717
struct CommentBody {

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
{
1919
squawk = final.rustPlatform.buildRustPackage {
2020
pname = "squawk";
21-
version = "2.32.0";
21+
version = "2.33.0";
2222

2323
cargoLock = {
2424
lockFile = ./Cargo.lock;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "squawk-cli",
3-
"version": "2.32.0",
3+
"version": "2.33.0",
44
"description": "linter for PostgreSQL, focused on migrations",
55
"repository": "[email protected]:sbdchd/squawk.git",
66
"author": "Squawk Team & Contributors",

s/update-version

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,33 @@ main() {
3535

3636
echo "Updating CHANGELOG.md..."
3737
CURRENT_DATE=$(date +"%Y-%m-%d")
38-
sed -i '' "s/^## \[Unreleased\]$/## [Unreleased]\n\n## v$NEW_VERSION - $CURRENT_DATE/" CHANGELOG.md
39-
38+
LATEST_TAG=$(git tag --sort=-version:refname | head -1)
39+
40+
if [ -z "$LATEST_TAG" ]; then
41+
echo "Error: No previous git tag found"
42+
exit 1
43+
fi
44+
45+
echo "Fetching commits since $LATEST_TAG..."
46+
COMMITS_FILE=$(mktemp)
47+
git log ${LATEST_TAG}..HEAD --pretty=format:"- %s" > "$COMMITS_FILE"
48+
49+
TEMP_CHANGELOG=$(mktemp)
50+
awk -v date="$CURRENT_DATE" -v version="$NEW_VERSION" -v commits_file="$COMMITS_FILE" '
51+
/^## \[Unreleased\]$/ {
52+
print $0
53+
print ""
54+
print "## v" version " - " date
55+
print ""
56+
while ((getline line < commits_file) > 0) {
57+
print line
58+
}
59+
close(commits_file)
60+
next
61+
}
62+
{ print }
63+
' CHANGELOG.md > "$TEMP_CHANGELOG" && mv "$TEMP_CHANGELOG" CHANGELOG.md
64+
4065
echo "Opening CHANGELOG.md for editing..."
4166
${EDITOR:-vi} CHANGELOG.md
4267
}

squawk-vscode/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"icon": "icon.png",
1010
"author": "Squawk Team & Contributors",
1111
"license": "(Apache-2.0 OR MIT)",
12-
"version": "2.32.0",
12+
"version": "2.33.0",
1313
"engines": {
1414
"vscode": "^1.101.0"
1515
},

0 commit comments

Comments
 (0)