Skip to content
Merged
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
34 changes: 24 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,14 +232,28 @@ jobs:
} >> $GITHUB_OUTPUT

- name: Notify Discord
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK_URL }}
nodetail: true
title: "PrintQue v${{ steps.get_version.outputs.version }} Released"
description: |
**What's Changed**
${{ steps.changelog.outputs.changelog }}
env:
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
VERSION: ${{ steps.get_version.outputs.version }}
CHANGELOG: ${{ steps.changelog.outputs.changelog }}
REPO: ${{ github.repository }}
run: |
RELEASE_URL="https://github.com/${REPO}/releases/tag/v${VERSION}"

# Build the embed JSON
EMBED=$(jq -n \
--arg title "PrintQue v${VERSION} Released" \
--arg desc "**What's Changed**\n${CHANGELOG}\n\n**Download:** [GitHub Release](${RELEASE_URL})" \
--argjson color 51283 \
'{title: $title, description: $desc, color: $color}')

**Download:** [GitHub Release](https://github.com/${{ github.repository }}/releases/tag/v${{ steps.get_version.outputs.version }})
color: 0x00C853
# Post to Discord forum channel — thread_name creates a new forum post/thread.
# The releases channel must be a Forum channel for this to work.
jq -n \
--arg thread_name "PrintQue v${VERSION}" \
--argjson embed "$EMBED" \
'{thread_name: $thread_name, embeds: [$embed]}' \
| curl -sS -f -X POST \
-H "Content-Type: application/json" \
-d @- \
"${DISCORD_WEBHOOK_URL}?wait=true"
4 changes: 4 additions & 0 deletions app/src/components/printers/EditPrinterDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,10 @@ export function EditPrinterDialog({ printer, open, onOpenChange }: EditPrinterDi
</div>
{printer.type === 'bambu' && (
<>
<p className="text-sm text-muted-foreground">
You can find the IP address and access code on the printer under Settings → LAN
mode.
</p>
<div className="grid gap-2">
<Label htmlFor="edit-device-id">Serial Number / Device ID</Label>
<Input
Expand Down
4 changes: 4 additions & 0 deletions app/src/routes/printers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ function PrintersPage() {
</div>
{formData.type === 'bambu' && (
<>
<p className="text-sm text-muted-foreground">
You can find the IP address and access code on the printer under Settings →
LAN mode.
</p>
<div className="grid gap-2">
<Label htmlFor="serial">Serial Number</Label>
<Input
Expand Down
4 changes: 2 additions & 2 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export default {
'type-empty': [2, 'never'],
// Max header length
'header-max-length': [2, 'always', 100],
// Relax body line length — automated trailers (Co-authored-by, etc.) often exceed 100 chars
'body-max-line-length': [1, 'always', 200],
// Disable body line length — URLs and automated trailers regularly exceed any fixed limit
'body-max-line-length': [0],
},
};