Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix: replace bun/TypeScript format check with cargo fmt in pr-standards.yml#159

Merged
RandyMcMillan merged 1 commit into
copilot/fix-action-run-step-13from
copilot/fix-action-run-issues
May 3, 2026
Merged

fix: replace bun/TypeScript format check with cargo fmt in pr-standards.yml#159
RandyMcMillan merged 1 commit into
copilot/fix-action-run-step-13from
copilot/fix-action-run-issues

Conversation

Copy link
Copy Markdown

Copilot AI commented May 3, 2026

The check-format job in pr-standards.yml was copied from a Node.js/TypeScript project and ran bun install + bun run script/format.ts — neither of which exist in this Rust repo, causing the job to immediately fail.

Changes

  • .github/workflows/pr-standards.yml: Replaced the bun setup, bun install, and TypeScript format script steps with dtolnay/rust-toolchain@stable (with rustfmt component) and cargo fmt --all --check, consistent with how formatting is enforced in ci.yml.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@RandyMcMillan RandyMcMillan marked this pull request as ready for review May 3, 2026 03:19
Copilot AI review requested due to automatic review settings May 3, 2026 03:19
@RandyMcMillan RandyMcMillan merged commit f5ee026 into copilot/fix-action-run-step-13 May 3, 2026
29 of 43 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the PR Standards workflow so its format check uses the Rust toolchain and cargo fmt instead of Bun/TypeScript commands that do not exist in this repository. It aligns the formatting job with the repo’s Rust-based CI setup, but the workflow still has a functional gap because it runs under pull_request_target.

Changes:

  • Removed Bun setup and the nonexistent TypeScript formatting script from check-format.
  • Added dtolnay/rust-toolchain@stable with the rustfmt component.
  • Replaced the custom “run formatter then inspect git diff” logic with cargo fmt --all --check.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +21 to +22
- name: Check Rust formatting
run: cargo fmt --all --check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants