Skip to content

A GitHub action for styling changed files on pull_request

Notifications You must be signed in to change notification settings

noyobo/prettier-bot

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Prettier Bot

Build Status

A GitHub action for styling changed files on pull_request

Usage

name: prettier-check

on:
  pull_request: # Must run on pull requests
    branches:
      - main

permissions:
  contents: read
  pull-requests: write
  issues: write

jobs:
  prettier-bot:
    name: Prettier Bot
    runs-on: ubuntu-latest

    steps:
      - name: Checkout
        uses: actions/checkout@v4

      - name: Prettier Bot
        uses: noyobo/prettier-bot@v1

Default Behavior

  • Matched changed files on the pull request
    • file extensions: .js,.jsx,.ts,.tsx,.json,.json5,.css,.less,.scss,.sass,.html,.md,.mdx,.vue,.yaml,.yml
  • Use root .prettierrc file for prettier configuration
  • Use root .prettierignore file for prettier ignore

About

A GitHub action for styling changed files on pull_request

Resources

Stars

Watchers

Forks

Packages

No packages published