Skip to content
Open
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
2 changes: 1 addition & 1 deletion packages/join-block/join.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/**
* Plugin Name: Common Knowledge Join Flow
* Description: Common Knowledge join flow plugin.
* Version: 1.4.2
* Version: 1.4.3
* Author: Common Knowledge <hello@commonknowledge.coop>
* Text Domain: common-knowledge-join-flow
* License: GPLv2 or later
Expand Down
4 changes: 3 additions & 1 deletion packages/join-block/readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Tags: membership, subscription, join
Contributors: commonknowledgecoop
Requires at least: 5.4
Tested up to: 6.8
Stable tag: 1.4.2
Stable tag: 1.4.3
Requires PHP: 8.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Expand Down Expand Up @@ -107,6 +107,8 @@ Need help? Contact us at [hello@commonknowledge.coop](mailto:hello@commonknowled

== Changelog ==

= 1.4.3 =
* Remove hard-coded "Unconfirmed" default tag previously appended to every new Zetkin person
= 1.4.2 =
*
= 1.4.1 =
Expand Down
1 change: 0 additions & 1 deletion packages/join-block/src/Services/ZetkinService.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ private static function addPerson($baseUrl, $orgId, $clientId, $clientSecret, $j

$existingTags = self::getTags($baseUrl, $orgId, $accessToken);

$addTags[] = "Unconfirmed";
$addTagIds = [];
foreach ($addTags as $tag) {
$existingTag = self::findOrCreateTag($baseUrl, $orgId, $existingTags, $tag, $accessToken);
Expand Down
2 changes: 1 addition & 1 deletion packages/join-flow/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const init = () => {
const sentryDsn = getEnvStr("SENTRY_DSN")
Sentry.init({
dsn: sentryDsn,
release: "1.4.1"
release: "1.4.3"
});

if (getEnv('USE_CHARGEBEE')) {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This is a monorepo containing packages that together provide a full membership a
- `packages/join-block` — A WordPress Gutenberg plugin containing the join form block(s) and the backend logic that processes memberships, payments, and CRM integrations.
- `packages/join-e2e` — End-to-end tests (Puppeteer).

**Current version:** 1.4.2
**Current version:** 1.4.3

---

Expand Down
13 changes: 12 additions & 1 deletion scripts/bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ PROJECT_ROOT="$(cd "$SCRIPT_DIR/.." && pwd)"
README_TXT="$PROJECT_ROOT/packages/join-block/readme.txt"
JOIN_PHP="$PROJECT_ROOT/packages/join-block/join.php"
INDEX_TSX="$PROJECT_ROOT/packages/join-flow/src/index.tsx"
README_MD="$PROJECT_ROOT/readme.md"

if [ ! -f "$README_TXT" ]; then
print_error "readme.txt not found at $README_TXT"
Expand All @@ -36,6 +37,11 @@ if [ ! -f "$INDEX_TSX" ]; then
exit 1
fi

if [ ! -f "$README_MD" ]; then
print_error "readme.md not found at $README_MD"
exit 1
fi

CURRENT_VERSION=$(grep "^Stable tag:" "$README_TXT" | sed 's/Stable tag: //')

if [ -z "$CURRENT_VERSION" ]; then
Expand Down Expand Up @@ -73,7 +79,7 @@ if [ ${#CHANGELOG_ENTRIES[@]} -eq 0 ]; then
print_warning "No changelog entries provided"
fi

print_step "Updating version to $NEW_VERSION in 3 files..."
print_step "Updating version to $NEW_VERSION in 4 files..."

print_step "1. Updating readme.txt (Stable tag and changelog)"
sed -i.bak "s/^Stable tag: .*/Stable tag: $NEW_VERSION/" "$README_TXT"
Expand Down Expand Up @@ -112,12 +118,17 @@ print_step "3. Updating index.tsx (Sentry release)"
sed -i.bak "s/release: \".*\"/release: \"$NEW_VERSION\"/" "$INDEX_TSX"
rm -f "$INDEX_TSX.bak"

print_step "4. Updating readme.md (Current version)"
sed -i.bak "s/^\*\*Current version:\*\* .*/**Current version:** $NEW_VERSION/" "$README_MD"
rm -f "$README_MD.bak"

print_step "Version bump complete!"
echo ""
echo "Files updated:"
echo " - packages/join-block/readme.txt"
echo " - packages/join-block/join.php"
echo " - packages/join-flow/src/index.tsx"
echo " - readme.md"
echo ""
echo "Next steps:"
echo " 1. Review changes: git diff"
Expand Down
Loading