Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

🤖 A GitHub action that suggests formatting changes with Prettier on pull requests, making it easier to maintain consistent code style and readability ✨

License

Notifications You must be signed in to change notification settings

takanome-dev/prettify-action

Repository files navigation

🧹 Prettify Action ✨

Licence Badge Licence Badge


🤖 A GitHub action that suggests formatting changes with Prettier on pull requests, making it easier to maintain consistent code style sparkles and readability ✨ 🚀

The initial idea for this action was taken from JoshuaKGoldberg/template-typescript-node-package opened by @JoshuaKGoldberg. We wanted to make it easier for non-coding contributors to contribute to open source projects, and we thought that this would be a great way to do it.

🚧 Status

This action is currently early in the development cycle. This action is not yet functional but is being actively developed. Please "watch" the project and leave a star and help us build this action. We welcome contributions of all sizes, from small bug fixes to new features, ideas, and suggestions.

🚨 Turns out that there is an action that does the same thing 😅 Check it out at reviewdog-action-prettier 🚨

💡 Motivation

This GitHub action was created to streamline the contribution process for non-coding contributors. We understand that running formatting checks and pushing changes can be tedious, and we want to make it easier for everyone to contribute to open source projects. By using this action, contributors can focus on the content of their contributions, while we take care of the formatting. With automatic suggestions for Prettier formatting changes, we can help maintain consistent code style and readability, without adding extra work for contributors.

🚀 Usage

⚡ Quick Start

  1. Create a new workflow file in your repository at .github/workflows/prettify.yml with the following contents:
name: Prettify Action

on:
  pull_request:
    types: [opened, synchronize, reopened]

jobs:
  prettify:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v3
        with:
          ref: ${{ github.event.pull_request.head.ref }}
          repository: ${{ github.event.pull_request.head.repo.full_name }}
          fetch-depth: 0

      - name: Prettify
        uses: takanome-dev/prettify-action@beta
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}

⚖️ License

The scripts and documentation in this project are released under the MIT License

About

🤖 A GitHub action that suggests formatting changes with Prettier on pull requests, making it easier to maintain consistent code style and readability ✨

Topics

Resources

License

Stars

Watchers

Forks