Skip to content

Commit 8295f2f

Browse files
committed
fix: update Packagist API to use correct maintainer username
- Changed username from 'kreuzberg-dev' to 'Goldziher' (the actual package maintainer) - Added error message logging to help debug API failures - Tested locally and confirmed v4.3.2 now appears on Packagist - Updated PACKAGIST_API_TOKEN secret in GitHub Actions
1 parent d7176de commit 8295f2f

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ repos:
3636

3737
# Python: ruff (linting + formatting) + mypy (type checking)
3838
- repo: https://github.com/astral-sh/ruff-pre-commit
39-
rev: v0.15.0
39+
rev: v0.15.1
4040
hooks:
4141
- id: ruff
4242
args: [--fix]
@@ -70,7 +70,7 @@ repos:
7070

7171
# Node.js/TypeScript: biome (formatting + linting)
7272
- repo: https://github.com/biomejs/pre-commit
73-
rev: v2.3.14
73+
rev: v2.3.15
7474
hooks:
7575
- id: biome-check
7676
files: ^(crates/kreuzberg-node|crates/kreuzberg-wasm)/

scripts/publish/php/publish-packagist.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,15 @@ if [[ -n "$PACKAGIST_API_TOKEN" ]]; then
3333
--retry 3 \
3434
--retry-delay 5 \
3535
--request POST \
36-
"https://packagist.org/api/update-package?username=kreuzberg-dev&apiToken=${PACKAGIST_API_TOKEN}" \
36+
"https://packagist.org/api/update-package?username=Goldziher&apiToken=${PACKAGIST_API_TOKEN}" \
3737
--data "{\"repository\": {\"url\": \"https://github.com/kreuzberg-dev/kreuzberg\"}}" \
3838
--header "Content-Type: application/json" 2>&1 || echo '{"status":"error"}')
3939

4040
if echo "$UPDATE_RESPONSE" | jq -e '.status == "success"' >/dev/null 2>&1; then
4141
echo "::notice::✓ Packagist update triggered successfully"
4242
else
43-
echo "::warning::Failed to trigger Packagist update via API, falling back to webhook"
43+
echo "::warning::Failed to trigger Packagist update via API: ${UPDATE_RESPONSE}"
44+
echo "::warning::Falling back to webhook"
4445
fi
4546
fi
4647

0 commit comments

Comments
 (0)