Skip to content

ci: add /format comment command for PRs - #195

Merged
ascorbic merged 1 commit into
mainfrom
ci/format-command
Apr 3, 2026
Merged

ascorbic merged 1 commit into
mainfrom
ci/format-command

Conversation

@ascorbic

@ascorbic ascorbic commented Apr 3, 2026

Copy link
Copy Markdown
Member

What does this PR do?

Adds a GitHub Action that lets maintainers comment /format on a PR to auto-format the code and commit the result using the EmDashBot app token.

Closes #

Type of change

  • Bug fix
  • Feature (link to Discussion: )
  • Refactor
  • Documentation
  • Performance
  • Tests
  • Chore

How it works

  • Triggered by /format in a PR comment
  • Uses the bot app token (APP_ID/APP_PRIVATE_KEY) to check out the PR branch
  • Runs pnpm format, commits as emdashbot[bot] if there are changes
  • Reacts with 👀 when starting, then 🚀 if changes were pushed or 👍 if already formatted
  • No-ops gracefully when formatting produces no diff

Checklist

  • I have read CONTRIBUTING.md
  • My changes follow the project's code style
  • I have added tests that prove my fix/feature works
  • I have updated documentation as needed
  • All existing tests pass
  • This PR contains AI-generated code

@changeset-bot

changeset-bot Bot commented Apr 3, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: c59b6e5

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Apr 3, 2026

Copy link
Copy Markdown

Open in StackBlitz

@emdash-cms/admin

npm i https://pkg.pr.new/@emdash-cms/admin@195

@emdash-cms/auth

npm i https://pkg.pr.new/@emdash-cms/auth@195

@emdash-cms/blocks

npm i https://pkg.pr.new/@emdash-cms/blocks@195

@emdash-cms/cloudflare

npm i https://pkg.pr.new/@emdash-cms/cloudflare@195

emdash

npm i https://pkg.pr.new/emdash@195

create-emdash

npm i https://pkg.pr.new/create-emdash@195

@emdash-cms/gutenberg-to-portable-text

npm i https://pkg.pr.new/@emdash-cms/gutenberg-to-portable-text@195

@emdash-cms/x402

npm i https://pkg.pr.new/@emdash-cms/x402@195

@emdash-cms/plugin-ai-moderation

npm i https://pkg.pr.new/@emdash-cms/plugin-ai-moderation@195

@emdash-cms/plugin-atproto

npm i https://pkg.pr.new/@emdash-cms/plugin-atproto@195

@emdash-cms/plugin-audit-log

npm i https://pkg.pr.new/@emdash-cms/plugin-audit-log@195

@emdash-cms/plugin-color

npm i https://pkg.pr.new/@emdash-cms/plugin-color@195

@emdash-cms/plugin-embeds

npm i https://pkg.pr.new/@emdash-cms/plugin-embeds@195

@emdash-cms/plugin-forms

npm i https://pkg.pr.new/@emdash-cms/plugin-forms@195

@emdash-cms/plugin-webhook-notifier

npm i https://pkg.pr.new/@emdash-cms/plugin-webhook-notifier@195

commit: c59b6e5

@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
emdash-playground c59b6e5 Apr 03 2026, 06:42 PM

@ascorbic
ascorbic merged commit d3cf93f into main Apr 3, 2026
21 checks passed
@ascorbic
ascorbic deleted the ci/format-command branch April 3, 2026 18:45
@erezrokah

Copy link
Copy Markdown
Contributor

Hi @ascorbic I did a follow up to this PR #201 do you mind taking a look?

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.

2 participants