Skip to content

Emdash begone#972

Open
NomDeTom wants to merge 3 commits into
meshtastic:masterfrom
NomDeTom:emdash-begone
Open

Emdash begone#972
NomDeTom wants to merge 3 commits into
meshtastic:masterfrom
NomDeTom:emdash-begone

Conversation

@NomDeTom

@NomDeTom NomDeTom commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Removes all em-dashes from this repo, and introduces another PR-level check that prevents new ones from being put in.

Summary by CodeRabbit

  • New Features

    • Added support for the SPA06 pressure and temperature telemetry sensor.
  • Documentation

    • Standardized dash punctuation across configuration, protocol, build, workflow, and README documentation.
  • Chores

    • Added an automated check to detect non-ASCII dash characters in supported project files and flag them during pull requests.

@coderabbitai

coderabbitai Bot commented Jul 1, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: a147c1b7-bedf-40f5-be3d-c4d6d12c8388

📥 Commits

Reviewing files that changed from the base of the PR and between 83f1d9a and 599194d.

📒 Files selected for processing (1)
  • .github/workflows/ascii-dash.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ascii-dash.yml

📝 Walkthrough

Walkthrough

The change normalizes dash punctuation across documentation and workflow text, adds a pull-request workflow to reject Unicode dashes in selected files, and adds SPA06 = 54 to TelemetrySensorType.

Changes

Dash normalization and telemetry update

Layer / File(s) Summary
Proto and options documentation normalization
meshtastic/*.proto, meshtastic/*.options
Comments across ATAK, admin, mesh, beacon, and module configuration definitions use normalized dash punctuation without changing message structures or options.
Telemetry sensor enum extension
meshtastic/telemetry.proto
Adds TelemetrySensorType.SPA06 = 54 and normalizes the ICM42607P documentation.
KMP workflow and documentation normalization
.github/workflows/snapshot-kmp.yml, packages/kmp/README.md, packages/kmp/build.gradle.kts
Normalizes dash punctuation in snapshot workflow messages and KMP documentation comments.
ASCII dash validation workflow
.github/workflows/ascii-dash.yml
Adds a pull-request check that detects Unicode dash characters in selected file types and fails on matches.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: vidplace7, jp-bennett

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description states the goal, but it does not follow the required template or include the checklist and issue link. Add the required PR template sections, include the related issue link, and complete the checklist items before merging.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title is concise and accurately reflects the main change: removing em dashes and adding a guard against new ones.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@NomDeTom
NomDeTom marked this pull request as draft July 1, 2026 22:14
@NomDeTom
NomDeTom changed the base branch from master to develop July 1, 2026 22:15
@NomDeTom
NomDeTom marked this pull request as ready for review July 1, 2026 22:15
@NomDeTom
NomDeTom changed the base branch from develop to master July 14, 2026 12:22

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🧹 Nitpick comments (1)
.github/workflows/ascii-dash.yml (1)

20-21: 🔒 Security & Privacy | 🔵 Trivial | ⚡ Quick win

Disable unnecessary checkout credential persistence.

This job performs no authenticated Git operations, so set persist-credentials: false to avoid leaving the token available to later steps. (github.com)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In @.github/workflows/ascii-dash.yml around lines 20 - 21, Update the “Checkout
code” step using actions/checkout@v4 to set persist-credentials to false,
ensuring the checkout token is not retained for subsequent workflow steps.

Source: Linters/SAST tools

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.github/workflows/ascii-dash.yml:
- Around line 28-32: Update the git grep check in the workflow so exit code 1
continues to mean no matches, while any other nonzero exit is treated as a
command failure and causes the job to fail. Preserve the existing error and exit
behavior when dash matches are found.

---

Nitpick comments:
In @.github/workflows/ascii-dash.yml:
- Around line 20-21: Update the “Checkout code” step using actions/checkout@v4
to set persist-credentials to false, ensuring the checkout token is not retained
for subsequent workflow steps.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 6df6fb36-293b-4fc8-8862-4dfe0218f409

📥 Commits

Reviewing files that changed from the base of the PR and between 9a120bb and 21e842e.

📒 Files selected for processing (12)
  • .github/workflows/ascii-dash.yml
  • .github/workflows/snapshot-kmp.yml
  • meshtastic/admin.proto
  • meshtastic/atak.options
  • meshtastic/atak.proto
  • meshtastic/mesh.options
  • meshtastic/mesh.proto
  • meshtastic/mesh_beacon.proto
  • meshtastic/module_config.proto
  • meshtastic/telemetry.proto
  • packages/kmp/README.md
  • packages/kmp/build.gradle.kts
🚧 Files skipped from review as they are similar to previous changes (8)
  • meshtastic/mesh.options
  • meshtastic/mesh_beacon.proto
  • meshtastic/atak.options
  • meshtastic/telemetry.proto
  • meshtastic/admin.proto
  • meshtastic/module_config.proto
  • .github/workflows/snapshot-kmp.yml
  • meshtastic/atak.proto

Comment thread .github/workflows/ascii-dash.yml Outdated

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In @.trunk/actions:
- Line 1: Replace the machine-local absolute symlinks with portable repository
state: for .trunk/actions, .trunk/logs, .trunk/notifications, .trunk/out, and
.trunk/tools, use relative links only when their targets are repository-managed;
otherwise remove these generated entries from version control and recreate them
during Trunk setup.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: 6390bc83-6725-441f-b321-c4370e904817

📥 Commits

Reviewing files that changed from the base of the PR and between 21e842e and 83f1d9a.

📒 Files selected for processing (6)
  • .github/workflows/ascii-dash.yml
  • .trunk/actions
  • .trunk/logs
  • .trunk/notifications
  • .trunk/out
  • .trunk/tools
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ascii-dash.yml

Comment thread .trunk/actions Outdated
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.

1 participant