Skip to content

feat(deploy): Add QR code to PR comments#7

Merged
anneschuth merged 1 commit into
mainfrom
feat/qr-code-in-comment
Feb 2, 2026
Merged

feat(deploy): Add QR code to PR comments#7
anneschuth merged 1 commit into
mainfrom
feat/qr-code-in-comment

Conversation

@robbertbos

Copy link
Copy Markdown
Member

Description

Add QR code feature to PR comments for easy mobile testing of preview deployments.

  • New input: qr-code (default: true) - include QR code in PR comment
  • QR code generated locally using qrencode (no external API calls, privacy-friendly)
  • Embedded as base64 data URI in the comment

Also adds development tooling:

  • Test workflow for component testing (QR generation, input validation, payload construction)
  • Justfile for common development tasks (auto-manages Podman for local testing)

Type of Change

  • Bug fix
  • New feature
  • Breaking change (changes to action inputs/outputs)
  • Documentation update

Checklist

  • I have tested these changes locally
  • I have updated the documentation (if applicable)
  • My changes follow the existing code style
  • I have added/updated comments where necessary

Testing

  • Tested QR generation locally with qrencode
  • Ran test workflow with just test (act + Podman)
  • Verified base64 PNG output is valid

Breaking Changes

None. The qr-code input only applies when comment-on-pr: true.

Comment thread .github/workflows/test-components.yml Fixed
Comment thread .github/workflows/test-components.yml Fixed
Comment thread .github/workflows/test-components.yml Fixed
@robbertbos robbertbos force-pushed the feat/qr-code-in-comment branch 4 times, most recently from d37169a to bd2b294 Compare January 31, 2026 15:47
@robbertbos robbertbos self-assigned this Jan 31, 2026
@robbertbos robbertbos force-pushed the feat/qr-code-in-comment branch 5 times, most recently from b3a9b46 to c0e769f Compare January 31, 2026 16:25

@anneschuth anneschuth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider changing the qr-code input default from true to false. Users who already have comment-on-pr: true would unexpectedly get QR codes in their PR comments after upgrading to a new v1.x release. Making it opt-in is safer for a minor version bump — users who want QR codes can explicitly set qr-code: true.

If you agree, the changes needed are:

  1. deploy/action.yml: change default: 'true' to default: 'false' for the qr-code input
  2. deploy/README.md: update the default value in the inputs table

- Replace external QR service with local qrencode generation
- QR code embedded as base64 data URI (no external API calls)
- Add test workflow for QR generation, input validation, payload construction
- Add justfile for development tasks (auto-manages podman)
- Update CONTRIBUTING.md with simplified testing instructions
@anneschuth anneschuth force-pushed the feat/qr-code-in-comment branch from c0e769f to d9b345e Compare February 2, 2026 11:52
@anneschuth anneschuth merged commit 9a4b5ff into main Feb 2, 2026
7 checks passed
@anneschuth anneschuth deleted the feat/qr-code-in-comment branch February 2, 2026 11:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants